diff options
author | Dave Hylands <dhylands@gmail.com> | 2015-11-25 17:09:44 -0800 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-11-26 16:17:26 +0000 |
commit | 061eb6fa6b196ed3d17121acb8282d626fdd6a69 (patch) | |
tree | effef96ab49b2bbfa6b171368010f2d7fb55fa06 /stmhal/stm32_it.c | |
parent | 7dec35d7cc64d98d3e4583d612f76f8fd5b536e1 (diff) | |
download | micropython-061eb6fa6b196ed3d17121acb8282d626fdd6a69.tar.gz micropython-061eb6fa6b196ed3d17121acb8282d626fdd6a69.zip |
stmahl: Fix usbd_conf.c for devices which don't have USB_HS at all.
The STMCube examples define both USE_USB_HS and USE_USB_HS_IN_FS when they
use the HS in FS mode.
The STM32F401 doesn't have a USB_HS at all, so the USB_OTG_HS instance
doesn't even exist.
Diffstat (limited to 'stmhal/stm32_it.c')
-rw-r--r-- | stmhal/stm32_it.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/stm32_it.c b/stmhal/stm32_it.c index f86eb041e9..5f96c6083b 100644 --- a/stmhal/stm32_it.c +++ b/stmhal/stm32_it.c @@ -301,7 +301,7 @@ void SysTick_Handler(void) { #if defined(USE_USB_FS) #define OTG_XX_IRQHandler OTG_FS_IRQHandler #define OTG_XX_WKUP_IRQHandler OTG_FS_WKUP_IRQHandler -#elif defined(USE_USB_HS) || defined(USE_USB_HS_IN_FS) +#elif defined(USE_USB_HS) #define OTG_XX_IRQHandler OTG_HS_IRQHandler #define OTG_XX_WKUP_IRQHandler OTG_HS_WKUP_IRQHandler #endif @@ -352,7 +352,7 @@ void OTG_XX_WKUP_IRQHandler(void) { #ifdef USE_USB_FS /* Clear EXTI pending Bit*/ __HAL_USB_FS_EXTI_CLEAR_FLAG(); -#elif defined(USE_USB_HS) || defined(USE_USB_HS_IN_FS) +#elif defined(USE_USB_HS) /* Clear EXTI pending Bit*/ __HAL_USB_HS_EXTI_CLEAR_FLAG(); #endif |