SERIAL_vInit()
最終更新
最終更新
Initialise the UART (serial port).
This function initializes one UART port and makes it accessible by the SERIAL library.
It is necessary to statically allocate a memory area for the FIFO buffer used internally by the SERIAL library during initialization.
At the same time, we initialize the tsFILE
structure for output vfPrintf()
, vPutChar()
.
Type
Name
Remark
*
psSetup
Structure for configuring the UART.
None
refer to tsSerialPortSetup
.