From a21d302d0830e3399ab55b6ba48034bc79ca91f8 Mon Sep 17 00:00:00 2001 From: Isikcan Yilmaz Date: Mon, 11 Nov 2024 09:53:15 +0100 Subject: [PATCH] cpu/esp32/stdio_usb_serial_jtag: clear all usb serial jtag flags and flush the tx fifo at the end of usb serial isrs --- cpu/esp32/stdio_usb_serial_jtag/usb_serial_jtag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/esp32/stdio_usb_serial_jtag/usb_serial_jtag.c b/cpu/esp32/stdio_usb_serial_jtag/usb_serial_jtag.c index cd9ec7d119..d167fb93e9 100644 --- a/cpu/esp32/stdio_usb_serial_jtag/usb_serial_jtag.c +++ b/cpu/esp32/stdio_usb_serial_jtag/usb_serial_jtag.c @@ -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(); }