Skip to content

Commit 4e4f213

Browse files
committed
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy