diff --git a/cores/arduino/stm32/usb_host/usbh_conf.c b/cores/arduino/stm32/usb_host/usbh_conf.c index 59092db816..793c8a6f5d 100644 --- a/cores/arduino/stm32/usb_host/usbh_conf.c +++ b/cores/arduino/stm32/usb_host/usbh_conf.c @@ -23,7 +23,9 @@ #include "usbh_core.h" #include "Arduino.h" -#include "stm32f4xx_hal_hcd.h" +#ifndef HAL_HCD_MODULE_ENABLED + #error "HAL_HCD_MODULE_ENABLED is required" +#endif /* USER CODE BEGIN Includes */