From 5f6cca335a0a21a9b658787dd98e215461943f6d Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 18 Aug 2012 15:39:59 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4579 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/OTGv1/usb_lld.c | 4 ++-- 1 file 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;