diff --git a/components/esp_driver_usb_serial_jtag/CMakeLists.txt b/components/esp_driver_usb_serial_jtag/CMakeLists.txt index ca7b6a30ce..e9b99f5084 100644 --- a/components/esp_driver_usb_serial_jtag/CMakeLists.txt +++ b/components/esp_driver_usb_serial_jtag/CMakeLists.txt @@ -12,7 +12,7 @@ endif() if(${target} STREQUAL "linux") set(priv_requires esp_ringbuf esp_timer) else() - set(priv_requires esp_driver_gpio esp_ringbuf esp_pm esp_timer) + set(priv_requires esp_driver_gpio esp_ringbuf esp_pm esp_timer esp_hal_usb) endif() idf_component_register(SRCS ${srcs} diff --git a/components/esp_driver_usb_serial_jtag/test_apps/.build-test-rules.yml b/components/esp_driver_usb_serial_jtag/test_apps/.build-test-rules.yml index 796eb4eaa0..313abe4710 100644 --- a/components/esp_driver_usb_serial_jtag/test_apps/.build-test-rules.yml +++ b/components/esp_driver_usb_serial_jtag/test_apps/.build-test-rules.yml @@ -14,6 +14,7 @@ components/esp_driver_usb_serial_jtag/test_apps/usb_serial_jtag: - vfs - esp_driver_gpio - esp_driver_usb_serial_jtag + - esp_hal_usb components/esp_driver_usb_serial_jtag/test_apps/usb_serial_jtag_vfs: disable: @@ -28,3 +29,4 @@ components/esp_driver_usb_serial_jtag/test_apps/usb_serial_jtag_vfs: depends_components: - vfs - esp_driver_usb_serial_jtag + - esp_hal_usb diff --git a/components/esp_hal_usb/CMakeLists.txt b/components/esp_hal_usb/CMakeLists.txt index c069c78e43..e2af7d7064 100644 --- a/components/esp_hal_usb/CMakeLists.txt +++ b/components/esp_hal_usb/CMakeLists.txt @@ -7,10 +7,13 @@ endif() set(includes "include") set(srcs) +if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${target}/include") + list(APPEND includes "${target}/include") +endif() + # USB-DWC related source files and USB FSLS PHY wrapper if(CONFIG_SOC_USB_OTG_SUPPORTED) list(APPEND srcs "usb_dwc_hal.c" "usb_wrap_hal.c" "${target}/usb_dwc_periph.c") - list(APPEND includes "${target}/include") endif() # USB UTMI PHY @@ -18,6 +21,11 @@ if(CONFIG_SOC_USB_UTMI_PHY_NUM GREATER 0) list(APPEND srcs "usb_utmi_hal.c") endif() +# USB Serial JTAG +if(CONFIG_SOC_USB_SERIAL_JTAG_SUPPORTED) + list(APPEND srcs "usb_serial_jtag_hal.c") +endif() + idf_component_register(SRCS ${srcs} INCLUDE_DIRS ${includes} REQUIRES soc hal) diff --git a/components/esp_hal_usb/README.md b/components/esp_hal_usb/README.md index 0efd2c37f3..490b955c9b 100644 --- a/components/esp_hal_usb/README.md +++ b/components/esp_hal_usb/README.md @@ -19,18 +19,16 @@ The USB HAL is structured in two main sub-layers: This HAL supports various USB controller and PHY types depending on the ESP chip: -- **USB-DWC (DesignWare USB Controller)**: The main USB OTG controller available on: - - ESP32-S2 - - ESP32-S3 - - ESP32-H4 - - ESP32-P4 +- **USB-DWC (DesignWare USB Controller)**: The main USB OTG controller supporting USB Host and Device modes + +- **USB Serial JTAG**: A special USB peripheral that combines USB CDC-ACM functionality with JTAG debugging capabilities - **USB WRAP**: A wrapper/peripheral controller that provides additional USB functionality and GPIO matrix integration - **USB PHY Types**: - **FSLS (Full Speed/Low Speed) Internal PHY**: Built-in PHY supporting USB Full Speed and Low Speed operation - **FSLS External PHY**: Support for external FSLS PHY via GPIO matrix - - **UTMI PHY**: UTMI+ compliant PHY interface (available on ESP32-P4) + - **UTMI PHY**: UTMI+ compliant PHY interface for High Speed USB support ## Features diff --git a/components/hal/esp32c3/include/hal/usb_serial_jtag_ll.h b/components/esp_hal_usb/esp32c3/include/hal/usb_serial_jtag_ll.h similarity index 98% rename from components/hal/esp32c3/include/hal/usb_serial_jtag_ll.h rename to components/esp_hal_usb/esp32c3/include/hal/usb_serial_jtag_ll.h index 1006f9d66f..03df9573c3 100644 --- a/components/hal/esp32c3/include/hal/usb_serial_jtag_ll.h +++ b/components/esp_hal_usb/esp32c3/include/hal/usb_serial_jtag_ll.h @@ -31,7 +31,6 @@ typedef enum { USB_SERIAL_JTAG_INTR_EP1_ZERO_PAYLOAD = (1 << 10), } usb_serial_jtag_ll_intr_t; - #ifdef __cplusplus extern "C" { #endif @@ -116,7 +115,9 @@ static inline int usb_serial_jtag_ll_read_rxfifo(uint8_t *buf, uint32_t rd_len) { int i; for (i = 0; i < (int)rd_len; i++) { - if (!USB_SERIAL_JTAG.ep1_conf.serial_out_ep_data_avail) break; + if (!USB_SERIAL_JTAG.ep1_conf.serial_out_ep_data_avail) { + break; + } buf[i] = USB_SERIAL_JTAG.ep1.rdwr_byte; } return i; @@ -135,7 +136,9 @@ static inline int usb_serial_jtag_ll_write_txfifo(const uint8_t *buf, uint32_t w { int i; for (i = 0; i < (int)wr_len; i++) { - if (!USB_SERIAL_JTAG.ep1_conf.serial_in_ep_data_free) break; + if (!USB_SERIAL_JTAG.ep1_conf.serial_in_ep_data_free) { + break; + } USB_SERIAL_JTAG.ep1.rdwr_byte = buf[i]; } return i; @@ -178,7 +181,7 @@ static inline int usb_serial_jtag_ll_txfifo_writable(void) */ static inline void usb_serial_jtag_ll_txfifo_flush(void) { - USB_SERIAL_JTAG.ep1_conf.wr_done=1; + USB_SERIAL_JTAG.ep1_conf.wr_done = 1; } /* ---------------------------- USB PHY Control ---------------------------- */ @@ -335,7 +338,6 @@ FORCE_INLINE_ATTR bool usb_serial_jtag_ll_module_is_enabled(void) usb_serial_jtag_ll_module_is_enabled(__VA_ARGS__); \ }) - #ifdef __cplusplus } #endif diff --git a/components/hal/esp32c5/include/hal/usb_serial_jtag_ll.h b/components/esp_hal_usb/esp32c5/include/hal/usb_serial_jtag_ll.h similarity index 98% rename from components/hal/esp32c5/include/hal/usb_serial_jtag_ll.h rename to components/esp_hal_usb/esp32c5/include/hal/usb_serial_jtag_ll.h index 181c1c787f..2524409468 100644 --- a/components/hal/esp32c5/include/hal/usb_serial_jtag_ll.h +++ b/components/esp_hal_usb/esp32c5/include/hal/usb_serial_jtag_ll.h @@ -115,7 +115,9 @@ static inline int usb_serial_jtag_ll_read_rxfifo(uint8_t *buf, uint32_t rd_len) { int i; for (i = 0; i < (int)rd_len; i++) { - if (!USB_SERIAL_JTAG.ep1_conf.serial_out_ep_data_avail) break; + if (!USB_SERIAL_JTAG.ep1_conf.serial_out_ep_data_avail) { + break; + } buf[i] = USB_SERIAL_JTAG.ep1.val; } return i; @@ -134,7 +136,9 @@ static inline int usb_serial_jtag_ll_write_txfifo(const uint8_t *buf, uint32_t w { int i; for (i = 0; i < (int)wr_len; i++) { - if (!USB_SERIAL_JTAG.ep1_conf.serial_in_ep_data_free) break; + if (!USB_SERIAL_JTAG.ep1_conf.serial_in_ep_data_free) { + break; + } USB_SERIAL_JTAG.ep1.val = buf[i]; } return i; @@ -177,7 +181,7 @@ static inline int usb_serial_jtag_ll_txfifo_writable(void) */ static inline void usb_serial_jtag_ll_txfifo_flush(void) { - USB_SERIAL_JTAG.ep1_conf.wr_done=1; + USB_SERIAL_JTAG.ep1_conf.wr_done = 1; } /** diff --git a/components/hal/esp32c6/include/hal/usb_serial_jtag_ll.h b/components/esp_hal_usb/esp32c6/include/hal/usb_serial_jtag_ll.h similarity index 98% rename from components/hal/esp32c6/include/hal/usb_serial_jtag_ll.h rename to components/esp_hal_usb/esp32c6/include/hal/usb_serial_jtag_ll.h index 391d7259c8..e037297f55 100644 --- a/components/hal/esp32c6/include/hal/usb_serial_jtag_ll.h +++ b/components/esp_hal_usb/esp32c6/include/hal/usb_serial_jtag_ll.h @@ -31,7 +31,6 @@ typedef enum { USB_SERIAL_JTAG_INTR_EP1_ZERO_PAYLOAD = (1 << 10), } usb_serial_jtag_ll_intr_t; - #ifdef __cplusplus extern "C" { #endif @@ -116,7 +115,9 @@ static inline int usb_serial_jtag_ll_read_rxfifo(uint8_t *buf, uint32_t rd_len) { int i; for (i = 0; i < (int)rd_len; i++) { - if (!USB_SERIAL_JTAG.ep1_conf.serial_out_ep_data_avail) break; + if (!USB_SERIAL_JTAG.ep1_conf.serial_out_ep_data_avail) { + break; + } buf[i] = USB_SERIAL_JTAG.ep1.rdwr_byte; } return i; @@ -135,7 +136,9 @@ static inline int usb_serial_jtag_ll_write_txfifo(const uint8_t *buf, uint32_t w { int i; for (i = 0; i < (int)wr_len; i++) { - if (!USB_SERIAL_JTAG.ep1_conf.serial_in_ep_data_free) break; + if (!USB_SERIAL_JTAG.ep1_conf.serial_in_ep_data_free) { + break; + } USB_SERIAL_JTAG.ep1.rdwr_byte = buf[i]; } return i; @@ -178,7 +181,7 @@ static inline int usb_serial_jtag_ll_txfifo_writable(void) */ static inline void usb_serial_jtag_ll_txfifo_flush(void) { - USB_SERIAL_JTAG.ep1_conf.wr_done=1; + USB_SERIAL_JTAG.ep1_conf.wr_done = 1; } /** diff --git a/components/hal/esp32c61/include/hal/usb_serial_jtag_ll.h b/components/esp_hal_usb/esp32c61/include/hal/usb_serial_jtag_ll.h similarity index 98% rename from components/hal/esp32c61/include/hal/usb_serial_jtag_ll.h rename to components/esp_hal_usb/esp32c61/include/hal/usb_serial_jtag_ll.h index dd92489249..1333b02a12 100644 --- a/components/hal/esp32c61/include/hal/usb_serial_jtag_ll.h +++ b/components/esp_hal_usb/esp32c61/include/hal/usb_serial_jtag_ll.h @@ -115,7 +115,9 @@ static inline int usb_serial_jtag_ll_read_rxfifo(uint8_t *buf, uint32_t rd_len) { int i; for (i = 0; i < (int)rd_len; i++) { - if (!USB_SERIAL_JTAG.ep1_conf.serial_out_ep_data_avail) break; + if (!USB_SERIAL_JTAG.ep1_conf.serial_out_ep_data_avail) { + break; + } buf[i] = USB_SERIAL_JTAG.ep1.val; } return i; @@ -134,7 +136,9 @@ static inline int usb_serial_jtag_ll_write_txfifo(const uint8_t *buf, uint32_t w { int i; for (i = 0; i < (int)wr_len; i++) { - if (!USB_SERIAL_JTAG.ep1_conf.serial_in_ep_data_free) break; + if (!USB_SERIAL_JTAG.ep1_conf.serial_in_ep_data_free) { + break; + } USB_SERIAL_JTAG.ep1.val = buf[i]; } return i; @@ -177,7 +181,7 @@ static inline int usb_serial_jtag_ll_txfifo_writable(void) */ static inline void usb_serial_jtag_ll_txfifo_flush(void) { - USB_SERIAL_JTAG.ep1_conf.wr_done=1; + USB_SERIAL_JTAG.ep1_conf.wr_done = 1; } /** diff --git a/components/hal/esp32h2/include/hal/usb_serial_jtag_ll.h b/components/esp_hal_usb/esp32h2/include/hal/usb_serial_jtag_ll.h similarity index 98% rename from components/hal/esp32h2/include/hal/usb_serial_jtag_ll.h rename to components/esp_hal_usb/esp32h2/include/hal/usb_serial_jtag_ll.h index 8ced13dcaa..0c88b81dab 100644 --- a/components/hal/esp32h2/include/hal/usb_serial_jtag_ll.h +++ b/components/esp_hal_usb/esp32h2/include/hal/usb_serial_jtag_ll.h @@ -31,7 +31,6 @@ typedef enum { USB_SERIAL_JTAG_INTR_EP1_ZERO_PAYLOAD = (1 << 10), } usb_serial_jtag_ll_intr_t; - #ifdef __cplusplus extern "C" { #endif @@ -116,7 +115,9 @@ static inline int usb_serial_jtag_ll_read_rxfifo(uint8_t *buf, uint32_t rd_len) { int i; for (i = 0; i < (int)rd_len; i++) { - if (!USB_SERIAL_JTAG.ep1_conf.serial_out_ep_data_avail) break; + if (!USB_SERIAL_JTAG.ep1_conf.serial_out_ep_data_avail) { + break; + } buf[i] = USB_SERIAL_JTAG.ep1.rdwr_byte; } return i; @@ -135,7 +136,9 @@ static inline int usb_serial_jtag_ll_write_txfifo(const uint8_t *buf, uint32_t w { int i; for (i = 0; i < (int)wr_len; i++) { - if (!USB_SERIAL_JTAG.ep1_conf.serial_in_ep_data_free) break; + if (!USB_SERIAL_JTAG.ep1_conf.serial_in_ep_data_free) { + break; + } USB_SERIAL_JTAG.ep1.rdwr_byte = buf[i]; } return i; @@ -178,7 +181,7 @@ static inline int usb_serial_jtag_ll_txfifo_writable(void) */ static inline void usb_serial_jtag_ll_txfifo_flush(void) { - USB_SERIAL_JTAG.ep1_conf.wr_done=1; + USB_SERIAL_JTAG.ep1_conf.wr_done = 1; } /** diff --git a/components/hal/esp32h21/include/hal/usb_serial_jtag_ll.h b/components/esp_hal_usb/esp32h21/include/hal/usb_serial_jtag_ll.h similarity index 98% rename from components/hal/esp32h21/include/hal/usb_serial_jtag_ll.h rename to components/esp_hal_usb/esp32h21/include/hal/usb_serial_jtag_ll.h index 3c47d10dab..53074db5ba 100644 --- a/components/hal/esp32h21/include/hal/usb_serial_jtag_ll.h +++ b/components/esp_hal_usb/esp32h21/include/hal/usb_serial_jtag_ll.h @@ -31,7 +31,6 @@ typedef enum { USB_SERIAL_JTAG_INTR_EP1_ZERO_PAYLOAD = (1 << 10), } usb_serial_jtag_ll_intr_t; - #ifdef __cplusplus extern "C" { #endif @@ -116,7 +115,9 @@ static inline int usb_serial_jtag_ll_read_rxfifo(uint8_t *buf, uint32_t rd_len) { int i; for (i = 0; i < (int)rd_len; i++) { - if (!USB_SERIAL_JTAG.serial_jtag_ep1_conf.serial_jtag_serial_out_ep_data_avail) break; + if (!USB_SERIAL_JTAG.serial_jtag_ep1_conf.serial_jtag_serial_out_ep_data_avail) { + break; + } buf[i] = USB_SERIAL_JTAG.serial_jtag_ep1.val; } return i; @@ -135,7 +136,9 @@ static inline int usb_serial_jtag_ll_write_txfifo(const uint8_t *buf, uint32_t w { int i; for (i = 0; i < (int)wr_len; i++) { - if (!USB_SERIAL_JTAG.serial_jtag_ep1_conf.serial_jtag_serial_in_ep_data_free) break; + if (!USB_SERIAL_JTAG.serial_jtag_ep1_conf.serial_jtag_serial_in_ep_data_free) { + break; + } USB_SERIAL_JTAG.serial_jtag_ep1.val = buf[i]; } return i; @@ -178,7 +181,7 @@ static inline int usb_serial_jtag_ll_txfifo_writable(void) */ static inline void usb_serial_jtag_ll_txfifo_flush(void) { - USB_SERIAL_JTAG.serial_jtag_ep1_conf.serial_jtag_wr_done=1; + USB_SERIAL_JTAG.serial_jtag_ep1_conf.serial_jtag_wr_done = 1; } /** @@ -328,8 +331,6 @@ FORCE_INLINE_ATTR bool usb_serial_jtag_ll_module_is_enabled(void) return (PCR.usb_device_conf.usb_device_clk_en && !PCR.usb_device_conf.usb_device_rst_en); } - - #ifdef __cplusplus } #endif diff --git a/components/hal/esp32h4/include/hal/usb_serial_jtag_ll.h b/components/esp_hal_usb/esp32h4/include/hal/usb_serial_jtag_ll.h similarity index 98% rename from components/hal/esp32h4/include/hal/usb_serial_jtag_ll.h rename to components/esp_hal_usb/esp32h4/include/hal/usb_serial_jtag_ll.h index 95ef6a7e4c..eb70a4e82e 100644 --- a/components/hal/esp32h4/include/hal/usb_serial_jtag_ll.h +++ b/components/esp_hal_usb/esp32h4/include/hal/usb_serial_jtag_ll.h @@ -31,7 +31,6 @@ typedef enum { USB_SERIAL_JTAG_INTR_EP1_ZERO_PAYLOAD = (1 << 10), } usb_serial_jtag_ll_intr_t; - #ifdef __cplusplus extern "C" { #endif @@ -116,7 +115,9 @@ static inline int usb_serial_jtag_ll_read_rxfifo(uint8_t *buf, uint32_t rd_len) { int i; for (i = 0; i < (int)rd_len; i++) { - if (!USB_SERIAL_JTAG.serial_jtag_ep1_conf.serial_jtag_serial_out_ep_data_avail) break; + if (!USB_SERIAL_JTAG.serial_jtag_ep1_conf.serial_jtag_serial_out_ep_data_avail) { + break; + } buf[i] = USB_SERIAL_JTAG.serial_jtag_ep1.val; } return i; @@ -135,7 +136,9 @@ static inline int usb_serial_jtag_ll_write_txfifo(const uint8_t *buf, uint32_t w { int i; for (i = 0; i < (int)wr_len; i++) { - if (!USB_SERIAL_JTAG.serial_jtag_ep1_conf.serial_jtag_serial_in_ep_data_free) break; + if (!USB_SERIAL_JTAG.serial_jtag_ep1_conf.serial_jtag_serial_in_ep_data_free) { + break; + } USB_SERIAL_JTAG.serial_jtag_ep1.val = buf[i]; } return i; @@ -178,7 +181,7 @@ static inline int usb_serial_jtag_ll_txfifo_writable(void) */ static inline void usb_serial_jtag_ll_txfifo_flush(void) { - USB_SERIAL_JTAG.serial_jtag_ep1_conf.serial_jtag_wr_done=1; + USB_SERIAL_JTAG.serial_jtag_ep1_conf.serial_jtag_wr_done = 1; } /** @@ -328,8 +331,6 @@ FORCE_INLINE_ATTR bool usb_serial_jtag_ll_module_is_enabled(void) return (PCR.usb_device_conf.usb_device_clk_en && !PCR.usb_device_conf.usb_device_rst_en); } - - #ifdef __cplusplus } #endif diff --git a/components/hal/esp32p4/include/hal/usb_serial_jtag_ll.h b/components/esp_hal_usb/esp32p4/include/hal/usb_serial_jtag_ll.h similarity index 98% rename from components/hal/esp32p4/include/hal/usb_serial_jtag_ll.h rename to components/esp_hal_usb/esp32p4/include/hal/usb_serial_jtag_ll.h index 9b8aead77b..3133204529 100644 --- a/components/hal/esp32p4/include/hal/usb_serial_jtag_ll.h +++ b/components/esp_hal_usb/esp32p4/include/hal/usb_serial_jtag_ll.h @@ -119,7 +119,9 @@ static inline int usb_serial_jtag_ll_read_rxfifo(uint8_t *buf, uint32_t rd_len) { int i; for (i = 0; i < (int)rd_len; i++) { - if (!USB_SERIAL_JTAG.ep1_conf.serial_out_ep_data_avail) break; + if (!USB_SERIAL_JTAG.ep1_conf.serial_out_ep_data_avail) { + break; + } buf[i] = HAL_FORCE_READ_U32_REG_FIELD(USB_SERIAL_JTAG.ep1, rdwr_byte); } return i; @@ -138,7 +140,9 @@ static inline int usb_serial_jtag_ll_write_txfifo(const uint8_t *buf, uint32_t w { int i; for (i = 0; i < (int)wr_len; i++) { - if (!USB_SERIAL_JTAG.ep1_conf.serial_in_ep_data_free) break; + if (!USB_SERIAL_JTAG.ep1_conf.serial_in_ep_data_free) { + break; + } HAL_FORCE_MODIFY_U32_REG_FIELD(USB_SERIAL_JTAG.ep1, rdwr_byte, buf[i]); } return i; @@ -181,7 +185,7 @@ static inline int usb_serial_jtag_ll_txfifo_writable(void) */ static inline void usb_serial_jtag_ll_txfifo_flush(void) { - USB_SERIAL_JTAG.ep1_conf.wr_done=1; + USB_SERIAL_JTAG.ep1_conf.wr_done = 1; } /** diff --git a/components/hal/esp32s3/include/hal/usb_serial_jtag_ll.h b/components/esp_hal_usb/esp32s3/include/hal/usb_serial_jtag_ll.h similarity index 98% rename from components/hal/esp32s3/include/hal/usb_serial_jtag_ll.h rename to components/esp_hal_usb/esp32s3/include/hal/usb_serial_jtag_ll.h index 17e7183ad0..21eb199567 100644 --- a/components/hal/esp32s3/include/hal/usb_serial_jtag_ll.h +++ b/components/esp_hal_usb/esp32s3/include/hal/usb_serial_jtag_ll.h @@ -33,7 +33,6 @@ typedef enum { USB_SERIAL_JTAG_INTR_EP1_ZERO_PAYLOAD = (1 << 10), } usb_serial_jtag_intr_t; - #ifdef __cplusplus extern "C" { #endif @@ -118,7 +117,9 @@ static inline uint32_t usb_serial_jtag_ll_read_rxfifo(uint8_t *buf, uint32_t rd_ { uint32_t i; for (i = 0; i < rd_len; i++) { - if (!USB_SERIAL_JTAG.ep1_conf.serial_out_ep_data_avail) break; + if (!USB_SERIAL_JTAG.ep1_conf.serial_out_ep_data_avail) { + break; + } buf[i] = USB_SERIAL_JTAG.ep1.rdwr_byte; } return i; @@ -137,7 +138,9 @@ static inline uint32_t usb_serial_jtag_ll_write_txfifo(const uint8_t *buf, uint3 { uint32_t i; for (i = 0; i < wr_len; i++) { - if (!USB_SERIAL_JTAG.ep1_conf.serial_in_ep_data_free) break; + if (!USB_SERIAL_JTAG.ep1_conf.serial_in_ep_data_free) { + break; + } USB_SERIAL_JTAG.ep1.rdwr_byte = buf[i]; } return i; @@ -180,7 +183,7 @@ static inline int usb_serial_jtag_ll_txfifo_writable(void) */ static inline void usb_serial_jtag_ll_txfifo_flush(void) { - USB_SERIAL_JTAG.ep1_conf.wr_done=1; + USB_SERIAL_JTAG.ep1_conf.wr_done = 1; } /** diff --git a/components/hal/include/hal/usb_serial_jtag_hal.h b/components/esp_hal_usb/include/hal/usb_serial_jtag_hal.h similarity index 100% rename from components/hal/include/hal/usb_serial_jtag_hal.h rename to components/esp_hal_usb/include/hal/usb_serial_jtag_hal.h diff --git a/components/hal/usb_serial_jtag_hal.c b/components/esp_hal_usb/usb_serial_jtag_hal.c similarity index 100% rename from components/hal/usb_serial_jtag_hal.c rename to components/esp_hal_usb/usb_serial_jtag_hal.c diff --git a/components/hal/CMakeLists.txt b/components/hal/CMakeLists.txt index 3138420c8e..88eac9ec4a 100644 --- a/components/hal/CMakeLists.txt +++ b/components/hal/CMakeLists.txt @@ -220,10 +220,6 @@ elseif(NOT BOOTLOADER_BUILD) list(APPEND srcs "ds_hal.c") endif() - if(CONFIG_SOC_USB_SERIAL_JTAG_SUPPORTED) - list(APPEND srcs "usb_serial_jtag_hal.c") - endif() - if(CONFIG_SOC_TOUCH_SENSOR_SUPPORTED) # Source files for the legacy touch hal driver if(CONFIG_SOC_TOUCH_SENSOR_VERSION LESS 3)