This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C123GE6PZ: 串口不是一次只能接收一个字节数据吗?为什么UARTCharGet函数返回的是一个4字节的数据?

Part Number: TM4C123GE6PZ

串口不是一次只能接收一个字节数据吗?为什么UARTCharGet函数返回的是一个4字节的数据?

//*****************************************************************************
//
//! Waits for a character from the specified port.
//!
//! \param ui32Base is the base address of the UART port.
//!
//! This function gets a character from the receive FIFO for the specified
//! port.  If there are no characters available, this function waits until a
//! character is received before returning.
//!
//! \return Returns the character read from the specified port, cast as a
//! \e int32_t.
//
//*****************************************************************************
int32_t
UARTCharGet(uint32_t ui32Base)