Skip to content

Commit 746cb90

Browse files
committed
Revert "Update esp32-hal-tinyusb.c"
This reverts commit fe63a3c.
1 parent 0a19e1b commit 746cb90

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

cores/esp32/esp32-hal-tinyusb.c

+3-9
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
#elif CONFIG_IDF_TARGET_ESP32S3
4444
#if defined __has_include && __has_include("hal/usb_phy_ll.h")
4545
#include "hal/usb_phy_ll.h"
46+
#else
47+
#include "hal/usb_fsls_phy_ll.h"
4648
#endif
4749
#include "hal/usb_serial_jtag_ll.h"
4850
#include "esp32s3/rom/usb/usb_persist.h"
@@ -502,15 +504,7 @@ static void usb_switch_to_cdc_jtag() {
502504
#if defined __has_include && __has_include("hal/usb_phy_ll.h")
503505
usb_phy_ll_int_jtag_enable(&USB_SERIAL_JTAG);
504506
#else
505-
// usb_serial_jtag_ll_phy_set_defaults();
506-
const usb_serial_jtag_pull_override_vals_t pull_conf = {
507-
.dp_pu = 1,
508-
.dm_pu = 0,
509-
.dp_pd = 0,
510-
.dm_pd = 0
511-
};
512-
usb_serial_jtag_ll_phy_enable_pull_override(&pull_conf);
513-
usb_serial_jtag_ll_phy_disable_pull_override();
507+
usb_fsls_phy_ll_int_jtag_enable(&USB_SERIAL_JTAG);
514508
#endif
515509
usb_serial_jtag_ll_disable_intr_mask(USB_SERIAL_JTAG_LL_INTR_MASK);
516510
usb_serial_jtag_ll_clr_intsts_mask(USB_SERIAL_JTAG_LL_INTR_MASK);

0 commit comments

Comments
 (0)