Skip to content

Commit fe63a3c

Browse files
committed
Update esp32-hal-tinyusb.c
1 parent 35ff483 commit fe63a3c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

cores/esp32/esp32-hal-tinyusb.c

+9-3
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
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"
4846
#endif
4947
#include "hal/usb_serial_jtag_ll.h"
5048
#include "esp32s3/rom/usb/usb_persist.h"
@@ -504,7 +502,15 @@ static void usb_switch_to_cdc_jtag() {
504502
#if defined __has_include && __has_include("hal/usb_phy_ll.h")
505503
usb_phy_ll_int_jtag_enable(&USB_SERIAL_JTAG);
506504
#else
507-
usb_fsls_phy_ll_int_jtag_enable(&USB_SERIAL_JTAG);
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();
508514
#endif
509515
usb_serial_jtag_ll_disable_intr_mask(USB_SERIAL_JTAG_LL_INTR_MASK);
510516
usb_serial_jtag_ll_clr_intsts_mask(USB_SERIAL_JTAG_LL_INTR_MASK);

0 commit comments

Comments
 (0)