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 me-no-dev
parent 659e9a51dd
commit cf93d473fb

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 */