From 061eb6fa6b196ed3d17121acb8282d626fdd6a69 Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Wed, 25 Nov 2015 17:09:44 -0800 Subject: 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. --- stmhal/stm32_it.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stmhal/stm32_it.h') diff --git a/stmhal/stm32_it.h b/stmhal/stm32_it.h index 5b17428b3..b84a7f9e0 100644 --- a/stmhal/stm32_it.h +++ b/stmhal/stm32_it.h @@ -74,6 +74,6 @@ void PendSV_Handler(void); void SysTick_Handler(void); #ifdef USE_USB_FS void OTG_FS_IRQHandler(void); -#elif defined(USE_USB_HS) || defined(USE_USB_HS_IN_FS) +#elif defined(USE_USB_HS) void OTG_HS_IRQHandler(void); #endif -- cgit v1.2.3