This demo (uartInterruptDemo directory) shows how to use a UART interrupt to indicate task completion when sending or receiving data over a UART. The UART can trigger a interrupt when data is available in the UART receiver FIFO or when the UART transmitter FIFO is empty. In this example, when you type a character in a UART terminal, the data goes to the UART receiver and fills up FIFO buffer. This action interrupts the processor and forces the processor to execute an interrupt/priority routine that allows the UART to read from the buffer and send a message back to the terminal.
For more detail of the driver, refer to UART Driver.
By default, newlib-nano is used for this demo.
The following shows the expected execution sequence: