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.

CCS/TM4C123GE6PM: Functions "NonBlocking" UART

Part Number: TM4C123GE6PM

Tool/software: Code Composer Studio


I have one question.

In "uart.h" library, I have functions: "int32_t UARTCharGet(uint32_t ui32Base)" and "UARTCharGetNonBlocking(uint32_t ui32Base)" or "UARTCharPut" and "UARTCharPutNonBlocking".

What are the differences between them?

Functions "NonBlocking" operate on interrputs ?

  • Hello Pawel,

    The UARTCharGetNonBlocking function always return immediately even if there are no characters in the buffer, which is why it is a NonBlocking function. Meanwhile the UARTCharGet will wait until a character is available.

    Similarly, UARTCharPutNonBlocking returns with a failure if there is not space in the FIFO while UARTCharPut will wait until there is space available to load the data.