Uart nonblock_read
Overview
After the application starts, perform the following 4 operations:
Initialize serial port 1
Create message queue
Register the callback function to receive the serial port data receiving status callback, and send the status message to task for processing in the callback;
Receive messages circularly, read data from serial port 1 in non blocking mode after receiving the message, and write back to serial port 1
Uart receives data in this way. Since it does not block tasks, it can be used in the task of other module.
Requirements
Note that the configuration of serial port 1 in the device table matches the board
Building and flashing
Sample location: examples/peripheral/uart/block_read_write
For operations such as compiling and burning, please refer to: [Quick Start] (../../../../../get_started/index. html # build function)