Skip to content

Commit f3887c2

Browse files
authored
roll back
1 parent 94a5b5b commit f3887c2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cores/esp32/HWCDC.cpp

-8
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@
2626
#include "soc/io_mux_reg.h"
2727
#pragma GCC diagnostic ignored "-Wvolatile"
2828
#include "hal/usb_serial_jtag_ll.h"
29-
#if defined __has_include && __has_include ("hal/usb_phy_ll.h")
3029
#include "hal/usb_phy_ll.h"
31-
#else
32-
#include "hal/usb_fsls_phy_ll.h"
33-
#endif
3430
#pragma GCC diagnostic warning "-Wvolatile"
3531
#include "rom/ets_sys.h"
3632
#include "driver/usb_serial_jtag.h"
@@ -270,11 +266,7 @@ void HWCDC::begin(unsigned long baud)
270266
}
271267
}
272268
// Configure PHY
273-
#if defined __has_include && __has_include ("hal/usb_phy_ll.h")
274269
usb_phy_ll_int_jtag_enable(&USB_SERIAL_JTAG);
275-
#else
276-
usb_fsls_phy_ll_int_jtag_enable(&USB_SERIAL_JTAG);
277-
#endif
278270
usb_serial_jtag_ll_disable_intr_mask(USB_SERIAL_JTAG_LL_INTR_MASK);
279271
usb_serial_jtag_ll_ena_intr_mask(USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY | USB_SERIAL_JTAG_INTR_SERIAL_OUT_RECV_PKT | USB_SERIAL_JTAG_INTR_BUS_RESET);
280272
if(!intr_handle && esp_intr_alloc(ETS_USB_SERIAL_JTAG_INTR_SOURCE, 0, hw_cdc_isr_handler, NULL, &intr_handle) != ESP_OK){

0 commit comments

Comments
 (0)