aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-08-18 15:39:59 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-08-18 15:39:59 +0000
commit5f6cca335a0a21a9b658787dd98e215461943f6d (patch)
treeadfa35df16cfd9f25cae2cb9dcf45593b98bdca4 /os/hal/platforms
parentf50d9fb0480b9ce521e80af21ffbff79e0ca5b44 (diff)
downloadChibiOS-5f6cca335a0a21a9b658787dd98e215461943f6d.tar.gz
ChibiOS-5f6cca335a0a21a9b658787dd98e215461943f6d.tar.bz2
ChibiOS-5f6cca335a0a21a9b658787dd98e215461943f6d.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4579 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r--os/hal/platforms/STM32/OTGv1/usb_lld.c4
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;