Make esp32-hal-tinyusb.h conditional on tinyusb (#4155)

This commit is contained in:
bobobo1618
2020-10-14 14:26:51 +02:00
committed by GitHub
parent b7c3607b5b
commit 9f8b433196

View File

@ -16,6 +16,7 @@
#include "esp32-hal.h"
#if CONFIG_IDF_TARGET_ESP32S2
#if CONFIG_USB_ENABLED
#ifdef __cplusplus
extern "C" {
@ -98,4 +99,5 @@ uint8_t tinyusb_get_free_out_endpoint(void);
}
#endif
#endif /* CONFIG_USB_ENABLED */
#endif /* CONFIG_IDF_TARGET_ESP32S2 */