File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 43
43
#elif CONFIG_IDF_TARGET_ESP32S3
44
44
#if defined __has_include && __has_include ("hal/usb_phy_ll.h" )
45
45
#include "hal/usb_phy_ll.h"
46
- #else
47
- #include "hal/usb_fsls_phy_ll.h"
48
46
#endif
49
47
#include "hal/usb_serial_jtag_ll.h"
50
48
#include "esp32s3/rom/usb/usb_persist.h"
@@ -504,7 +502,15 @@ static void usb_switch_to_cdc_jtag() {
504
502
#if defined __has_include && __has_include ("hal/usb_phy_ll.h" )
505
503
usb_phy_ll_int_jtag_enable (& USB_SERIAL_JTAG );
506
504
#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 ();
508
514
#endif
509
515
usb_serial_jtag_ll_disable_intr_mask (USB_SERIAL_JTAG_LL_INTR_MASK );
510
516
usb_serial_jtag_ll_clr_intsts_mask (USB_SERIAL_JTAG_LL_INTR_MASK );
You can’t perform that action at this time.
0 commit comments