Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4e4f213

Browse files
committedOct 4, 2020
fix include
1 parent 5943451 commit 4e4f213

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

Diff for: ‎cores/arduino/stm32/usb_host/usbh_conf.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@
1717
*
1818
******************************************************************************
1919
*/
20+
#ifdef USBHOST
2021
/* USER CODE END Header */
2122

2223
/* Includes ------------------------------------------------------------------*/
2324
#include "usbh_core.h"
2425
#include "Arduino.h"
2526

26-
#include "stm32f4xx_hal_hcd.h"
27+
#ifndef HAL_HCD_MODULE_ENABLED
28+
#error "HAL_HCD_MODULE_ENABLED is required"
29+
#endif
2730

2831
/* USER CODE BEGIN Includes */
2932

@@ -569,3 +572,5 @@ USBH_StatusTypeDef USBH_Get_USB_Status(HAL_StatusTypeDef hal_status)
569572
}
570573

571574
#endif // !defined(USBCON)
575+
576+
#endif /* USBHOST */

0 commit comments

Comments
 (0)
Please sign in to comment.