diff options
Diffstat (limited to 'os')
| -rw-r--r-- | os/hal/platforms/STM32/OTGv1/usb_lld.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/os/hal/platforms/STM32/OTGv1/usb_lld.c b/os/hal/platforms/STM32/OTGv1/usb_lld.c index 70247a66b..e1f0ef833 100644 --- a/os/hal/platforms/STM32/OTGv1/usb_lld.c +++ b/os/hal/platforms/STM32/OTGv1/usb_lld.c @@ -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;
 | 
