esp-open-rtos/extras/stdin_uart_interrupt
Angus Gratton 02e6a63a5a stdin_uart_interrupt driver: Don't reset TX FIFO (loses output otherwise)
Fixes bug in 'terminal' example where banner message didn't print on startup.

Relates to #59.
2015-11-21 17:13:08 +11:00
..
component.mk extras/stdin_uart_interrupt: stdin via IRQ driven RX driver on UART0 2015-11-21 16:15:58 +11:00
README.txt extras/stdin_uart_interrupt: stdin via IRQ driven RX driver on UART0 2015-11-21 16:15:58 +11:00
stdin_uart_interrupt.c stdin_uart_interrupt driver: Don't reset TX FIFO (loses output otherwise) 2015-11-21 17:13:08 +11:00
stdin_uart_interrupt.h extras/stdin_uart_interrupt: stdin via IRQ driven RX driver on UART0 2015-11-21 16:15:58 +11:00

This module adds interrupt driven receive on UART 0. Using semaphores, a thread
calling read(...) when no data is available will block in an RTOS expected
manner until data arrives. 

This allows for a background thread running a serial terminal in your program
for debugging and state inspection consuming no CPU cycles at all. Not using
this module will make that thread while(1) until data arrives.

No code changes are needed for adding this module, all you need to do is to add
it to EXTRA_COMPONENTS and add the directive configUSE_COUNTING_SEMAPHORES from
FreeRTOSConfig.h in examples/terminal to your project.