Remove extra USBDevice constructor

Remove the second USBDevice constructor since it does not provide
any new functionality.
pull/9768/head
Russ Butler 2018-04-30 18:58:38 -05:00 committed by Russ Butler
parent e3219cd016
commit ced82dd16b
2 changed files with 1 additions and 39 deletions

View File

@ -1246,34 +1246,7 @@ USBDevice::USBDevice(USBPhy *phy, uint16_t vendor_id, uint16_t product_id, uint1
_device.state = Powered;
_device.configuration = 0;
_device.suspended = false;
};
USBDevice::USBDevice(uint16_t vendor_id, uint16_t product_id, uint16_t product_release)
{
this->vendor_id = vendor_id;
this->product_id = product_id;
this->product_release = product_release;
memset(_endpoint_info, 0, sizeof(_endpoint_info));
memset(&_transfer, 0, sizeof(_transfer));
_transfer.user_callback = None;
_setup_ready = false;
_abort_control = false;
_phy = get_usb_phy();
_initialized = false;
_connected = false;
_current_interface = 0;
_current_alternate = 0;
_locked = 0;
_post_process = NULL;
/* Set initial device state */
_device.state = Powered;
_device.configuration = 0;
_device.suspended = false;
};
}
uint32_t USBDevice::endpoint_max_packet_size(usb_ep_t endpoint)
{

View File

@ -72,17 +72,6 @@ public:
uint16_t wLength;
};
/**
* Instantiate a new USBDevice with the given parameters
*
* This function uses a target's built in USBPhy.
*
* @param vendor_id The USB vendor ID
* @param product_id The USB product ID
* @param product_release The device release number
*/
USBDevice(uint16_t vendor_id, uint16_t product_id, uint16_t product_release);
/**
* Instantiate a new USBDevice with the given parameters
*