File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
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
46
+ #elif defined __has_include && __has_include ( "hal/usb_fsls_phy_ll.h" )
47
47
#include "hal/usb_fsls_phy_ll.h"
48
48
#endif
49
49
#include "hal/usb_serial_jtag_ll.h"
@@ -503,8 +503,18 @@ static void usb_switch_to_cdc_jtag() {
503
503
// Initialize CDC+JTAG ISR to listen for BUS_RESET
504
504
#if defined __has_include && __has_include ("hal/usb_phy_ll.h" )
505
505
usb_phy_ll_int_jtag_enable (& USB_SERIAL_JTAG );
506
- #else
506
+ #elif defined __has_include && __has_include("hal/usb_fsls_phy_ll.h")
507
507
usb_fsls_phy_ll_int_jtag_enable (& USB_SERIAL_JTAG );
508
+ #else
509
+ // usb_serial_jtag_ll_phy_set_defaults();
510
+ const usb_serial_jtag_pull_override_vals_t pull_conf = {
511
+ .dp_pu = 1 ,
512
+ .dm_pu = 0 ,
513
+ .dp_pd = 0 ,
514
+ .dm_pd = 0
515
+ };
516
+ usb_serial_jtag_ll_phy_enable_pull_override (& pull_conf );
517
+ usb_serial_jtag_ll_phy_disable_pull_override ();
508
518
#endif
509
519
usb_serial_jtag_ll_disable_intr_mask (USB_SERIAL_JTAG_LL_INTR_MASK );
510
520
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