File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -123,9 +123,11 @@ void TinyUSB_Port_InitDevice(uint8_t rhport) {
123
123
usb_hal_init (&hal);
124
124
configure_pins (&hal);
125
125
126
- // reset core, should be in dcd_esp32sx.c (do that later with more proper testing)
126
+ // reset core, should be in dcd_esp32sx.c (do that later with more proper
127
+ // testing)
127
128
USB0.grstctl |= USB_CSFTRST;
128
- while ((USB0.grstctl & USB_CSFTRST) == USB_CSFTRST) {}
129
+ while ((USB0.grstctl & USB_CSFTRST) == USB_CSFTRST) {
130
+ }
129
131
130
132
tusb_init ();
131
133
@@ -139,7 +141,8 @@ void TinyUSB_Port_EnterDFU(void) {
139
141
140
142
// Reset USB Core
141
143
USB0.grstctl |= USB_CSFTRST;
142
- while ((USB0.grstctl & USB_CSFTRST) == USB_CSFTRST) {}
144
+ while ((USB0.grstctl & USB_CSFTRST) == USB_CSFTRST) {
145
+ }
143
146
144
147
REG_WRITE (RTC_CNTL_OPTION1_REG, RTC_CNTL_FORCE_DOWNLOAD_BOOT);
145
148
esp_restart ();
You can’t perform that action at this time.
0 commit comments