diff --git a/cores/esp32/esp32-hal-tinyusb.c b/cores/esp32/esp32-hal-tinyusb.c index ab66e3d8e28..c34af2a9ef6 100644 --- a/cores/esp32/esp32-hal-tinyusb.c +++ b/cores/esp32/esp32-hal-tinyusb.c @@ -20,7 +20,6 @@ #include "hal/usb_hal.h" #include "hal/gpio_ll.h" -#include "hal/usb_serial_jtag_ll.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" @@ -40,6 +39,7 @@ #include "esp32s2/rom/usb/usb_dc.h" #include "esp32s2/rom/usb/chip_usb_dw_wrapper.h" #elif CONFIG_IDF_TARGET_ESP32S3 +#include "hal/usb_serial_jtag_ll.h" #include "esp32s3/rom/usb/usb_persist.h" #include "esp32s3/rom/usb/usb_dc.h" #include "esp32s3/rom/usb/chip_usb_dw_wrapper.h"