UART API Blocking TX


jleng
 
Edited

Hi,

I'm using Zephyr's UART API and especially the uart_tx() function. However, the function being non-blocking is giving me troubles. Does any one know how to make it blocking or any method to make sure uart_tx() is done sending before the program proceeds?

Thank you,
jleng


Tavish Naruka
 

Hi Jieng,

The uart_poll_out() API should be used for this, see https://docs.zephyrproject.org/latest/reference/peripherals/uart.html#c.uart_poll_out

Best,

Tavish