870efdb9d4
requirement from github(https://github.com/espressif/esp-idf/issues/805): to provide the position in the buffer of the pattern detected. requirement from AT application: in AT app, when no hardware flow control is enabled, in some situation the rx buffer might be full, and the terminator “+++” might be lost, we can use pattern detect interrupt to avoid missing the terminator. When pattern detect interrupt happens, it will not send a data event at the same time. 1. Add API to get position of detected pattern in rx buffer 2. Modify UART event example 3. Add comments for uart_flush, add alias API uart_flush_input to clear the rx buffer 4. Modify the way rx_buffered_len is calculated |
||
---|---|---|
.. | ||
main | ||
Makefile | ||
README.md |
UART Events Example
This example shows how to use the UART driver to handle special UART events. It also reads data from UART0 directly, and echoes it to console.
How to use it?
- Compile and load example from terminl running
make flash monitor
- Being in 'monotor' type samething to see the
UART_DATA
events and the typed data displayed.
See the README.md file in the upper level 'examples' directory for more information about examples.