SERIAL_vFlush()
Explanation
Wait until the output request has been completed by the SERIAL library.
Use this if you want to output all messages before going to sleep. Normally, it is recommended to keep a sufficient FIFO buffer for output and to avoid calling the process as much as possible.
Waiting for output to complete may cause instability. In this case, remove this waiting process and check the operation.
If the waiting process is omitted and the output is interrupted, an extra FIFO memory is allocated for the output.
Argument
Type
Name
Remark
uint8
u8SerialPort
Serial port (E_AHI_UART_0 or E_AHI_UART_1 should be specified)
Returns
None
Sample code
最終更新