Skip to content

Commit

Permalink
Update stub_io.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Feb 5, 2024
1 parent 81bab3e commit 9214d08
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flasher_stub/stub_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ static void stub_configure_rx_uart(void)
#if WITH_USB_JTAG_SERIAL
if (stub_uses_usb_jtag_serial()) {
#if IS_RISCV
WRITE_REG(INTERRUPT_CORE0_USB_INTR_MAP_REG, ETS_USB_INUM); // Route USB interrupt to CPU
#if ESP32P4
WRITE_REG(INTERRUPT_CORE0_USB_INTR_MAP_REG, ETS_USB_INUM + CLIC_EXT_INTR_NUM_OFFSET);
#else
WRITE_REG(INTERRUPT_CORE0_USB_INTR_MAP_REG, ETS_USB_INUM); // Route USB interrupt to CPU
#endif
esprv_intc_int_set_priority(ETS_USB_INUM, 1);
#else
WRITE_REG(INTERRUPT_CORE0_USB_DEVICE_INT_MAP_REG, ETS_USB_INUM);
Expand Down

0 comments on commit 9214d08

Please sign in to comment.