git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4579 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2012-08-18 15:39:59 +00:00
parent f50d9fb048
commit 5f6cca335a
1 changed files with 2 additions and 2 deletions

View File

@ -761,9 +761,8 @@ CH_IRQ_HANDLER(STM32_OTG2_HANDLER) {
void usb_lld_init(void) {
/* Driver initialization.*/
usbObjectInit(&USBD1);
#if STM32_USB_USE_OTG1
usbObjectInit(&USBD1);
USBD1.thd_ptr = NULL;
USBD1.thd_wait = NULL;
USBD1.otg = OTG_FS;
@ -784,6 +783,7 @@ void usb_lld_init(void) {
#endif
#if STM32_USB_USE_OTG2
usbObjectInit(&USBD2);
USBD2.thd_ptr = NULL;
USBD2.thd_wait = NULL;
USBD2.otg = OTG_HS;