Skip to content

Commit cf93d47

Browse files
bobobo1618me-no-dev
authored andcommitted
Make esp32-hal-tinyusb.h conditional on tinyusb (#4155)
1 parent 659e9a5 commit cf93d47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/esp32/esp32-hal-tinyusb.h

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "esp32-hal.h"
1717

1818
#if CONFIG_IDF_TARGET_ESP32S2
19+
#if CONFIG_USB_ENABLED
1920

2021
#ifdef __cplusplus
2122
extern "C" {
@@ -98,4 +99,5 @@ uint8_t tinyusb_get_free_out_endpoint(void);
9899
}
99100
#endif
100101

102+
#endif /* CONFIG_USB_ENABLED */
101103
#endif /* CONFIG_IDF_TARGET_ESP32S2 */

0 commit comments

Comments
 (0)