Skip to content

Commit 0daae59

Browse files
authored
fix git stash/commit added lines
1 parent 6c4fbf2 commit 0daae59

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

cores/esp32/HWCDC.cpp

-13
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,7 @@ void HWCDC::begin(unsigned long baud)
242242
log_e("HW CDC TX Buffer error");
243243
}
244244
}
245-
<<<<<<< Updated upstream
246-
// Setting USB D+ D- pins
247-
=======
248245
// Setting USB D+ D- pins || reduces number of debug messages
249-
>>>>>>> Stashed changes
250246
uint8_t pin = USB_DM_GPIO_NUM;
251247
if(perimanGetPinBusType(pin) != ESP32_BUS_TYPE_USB_DM){
252248
if(perimanGetPinBusType(pin) != ESP32_BUS_TYPE_INIT){
@@ -278,15 +274,6 @@ void HWCDC::begin(unsigned long baud)
278274
end();
279275
return;
280276
}
281-
// Configure PHY
282-
usb_phy_ll_int_jtag_enable(&USB_SERIAL_JTAG);
283-
usb_serial_jtag_ll_disable_intr_mask(USB_SERIAL_JTAG_LL_INTR_MASK);
284-
usb_serial_jtag_ll_ena_intr_mask(USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY | USB_SERIAL_JTAG_INTR_SERIAL_OUT_RECV_PKT | USB_SERIAL_JTAG_INTR_BUS_RESET);
285-
if(!intr_handle && esp_intr_alloc(ETS_USB_SERIAL_JTAG_INTR_SOURCE, 0, hw_cdc_isr_handler, NULL, &intr_handle) != ESP_OK){
286-
isr_log_e("HW USB CDC failed to init interrupts");
287-
end();
288-
return;
289-
}
290277
return;
291278

292279
err:

0 commit comments

Comments
 (0)