tsFILE
A structure defining the output destination specified by vfPrintf()
vPutChar()
.
Member
| u8Device | Serial port (E_AHI_UART_0 or E_AHI_UART_1 should be specified) |
| bPutChar | Pointer to the function for output, |
SERIAL_bTxChar()
puts the bytes passed as u8Char
into a FIFO queue in the SERIAL library.
By preparing your own output functions, you can also use it to output strings to non-UART devices.
Sample code
The following is an example of using this as an output code for a character LCD.
最終更新