Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4e4f213

Browse files
fix include
1 parent 5943451 commit 4e4f213

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎cores/arduino/stm32/usb_host/usbh_conf.c‎

Lines changed: 6 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /