Skip to content

Commit

Permalink
clear all usb serial jtag flags and flush the tx fifo at the end of u…
Browse files Browse the repository at this point in the history
…sb serial isrs
  • Loading branch information
IsikcanYilmaz committed Nov 11, 2024
1 parent 02e0595 commit 9ac9cec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpu/esp32/stdio_usb_serial_jtag/usb_serial_jtag.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ static void _serial_intr_handler(void *arg)
}
USB_SERIAL_JTAG.ep1.rdwr_byte = c;
}
usb_serial_jtag_ll_txfifo_flush();
}

/* clear all interrupt flags */
usb_serial_jtag_ll_clr_intsts_mask(mask);
usb_serial_jtag_ll_clr_intsts_mask(USB_SERIAL_JTAG_LL_INTR_MASK);
usb_serial_jtag_ll_txfifo_flush();

irq_isr_exit();
}
Expand Down

0 comments on commit 9ac9cec

Please sign in to comment.