From 4e4f21330ad4018bc3b1fe9866d706188989f560 Mon Sep 17 00:00:00 2001 From: Victor Mateus Oliveira Date: Sat, 3 Oct 2020 23:53:34 -0300 Subject: [PATCH] fix include --- cores/arduino/stm32/usb_host/usbh_conf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cores/arduino/stm32/usb_host/usbh_conf.c b/cores/arduino/stm32/usb_host/usbh_conf.c index 59092db816..b67d2d588d 100644 --- a/cores/arduino/stm32/usb_host/usbh_conf.c +++ b/cores/arduino/stm32/usb_host/usbh_conf.c @@ -17,13 +17,16 @@ * ****************************************************************************** */ +#ifdef USBHOST /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #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 */ @@ -569,3 +572,5 @@ USBH_StatusTypeDef USBH_Get_USB_Status(HAL_StatusTypeDef hal_status) } #endif // !defined(USBCON) + +#endif /* USBHOST */