Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
f69bbfee
Unverified
Commit
f69bbfee
authored
Feb 13, 2023
by
Ha Thach
Committed by
GitHub
Feb 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix usb_switch_to_cdc_jtag() not re-enable USB D+ before reset (#7828)
parent
2ddce3c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
cores/esp32/esp32-hal-tinyusb.c
cores/esp32/esp32-hal-tinyusb.c
+2
-0
No files found.
cores/esp32/esp32-hal-tinyusb.c
View file @
f69bbfee
...
...
@@ -40,6 +40,7 @@
#include "esp32s2/rom/usb/chip_usb_dw_wrapper.h"
#elif CONFIG_IDF_TARGET_ESP32S3
#include "hal/usb_serial_jtag_ll.h"
#include "hal/usb_phy_ll.h"
#include "esp32s3/rom/usb/usb_persist.h"
#include "esp32s3/rom/usb/usb_dc.h"
#include "esp32s3/rom/usb/chip_usb_dw_wrapper.h"
...
...
@@ -415,6 +416,7 @@ static void usb_switch_to_cdc_jtag(){
digitalWrite
(
USBPHY_DP_NUM
,
LOW
);
// Initialize CDC+JTAG ISR to listen for BUS_RESET
usb_phy_ll_int_jtag_enable
(
&
USB_SERIAL_JTAG
);
usb_serial_jtag_ll_disable_intr_mask
(
USB_SERIAL_JTAG_LL_INTR_MASK
);
usb_serial_jtag_ll_clr_intsts_mask
(
USB_SERIAL_JTAG_LL_INTR_MASK
);
usb_serial_jtag_ll_ena_intr_mask
(
USB_SERIAL_JTAG_INTR_BUS_RESET
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment