Skip to content

Commit a21d302

Browse files
committed
cpu/esp32/stdio_usb_serial_jtag: clear all usb serial jtag flags and flush the tx fifo at the end of usb serial isrs
1 parent 02e0595 commit a21d302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpu/esp32/stdio_usb_serial_jtag/usb_serial_jtag.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ static void _serial_intr_handler(void *arg)
7373
}
7474
USB_SERIAL_JTAG.ep1.rdwr_byte = c;
7575
}
76-
usb_serial_jtag_ll_txfifo_flush();
7776
}
7877

7978
/* clear all interrupt flags */
80-
usb_serial_jtag_ll_clr_intsts_mask(mask);
79+
usb_serial_jtag_ll_clr_intsts_mask(USB_SERIAL_JTAG_LL_INTR_MASK);
80+
usb_serial_jtag_ll_txfifo_flush();
8181

8282
irq_isr_exit();
8383
}

0 commit comments

Comments
 (0)