Connectivity line USB driver now enumerating correctly.

This commit is contained in:
Gareth McMullin
2011-03-14 20:31:32 +13:00
parent 7faea389e8
commit bf0d1a7b41
3 changed files with 24 additions and 13 deletions

View File

@@ -131,6 +131,12 @@ static int usb_standard_set_address(struct usb_setup_data *req, u8 **buf,
_usbd_device.current_address = req->wValue;
/* Special workaround for STM32F10[57] that require the address
* to be set here. This is undocumented!
*/
if(_usbd_device.driver == &stm32f107_usb_driver)
_usbd_device.driver->set_address(req->wValue);
return 1;
}