Hi,
I am learning to use UART driver from RTOS C:\ti\tirtos_tivac_2_14_00_10 for Tiva-C TM4C1294. Even after reading the doc file, see below please, I don't see their difference. Could you explain it to me?
Thanks,
int UART_write | ( | UART_Handle | handle, |
const void * | buffer, | ||
size_t | size | ||
) |
Function that writes data to a UART with interrupt enabled. This API must be used mutually exclusive with UART_writePolling().
In UART_MODE_BLOCKING, UART_write will block task execution until all the data in buffer has been written.
int UART_writePolling | ( | UART_Handle | handle, |
const void * | buffer, | ||
size_t | size | ||
) |
Function that writes data to a UART without interrupts. This API must be used mutually exclusive with UART_write().
This function initiates an operation to write data to a UART controller.
UART_writePolling will not return until all the data was written to the UART (or its FIFO if applicable).