USART Control Bug

fireb1423r wrote on Wednesday, May 27, 2015:

Hi,
I’m try to write some code to do the control of USART on my SAM3.
So I am using freertos_usart_write_packet(); and wait for ist return.
I set USE_TX_ACCESS_MUTEX | USE_RX_ACCESS_MUTEX|WAIT_TX_COMPLETE.
The funktion comes back with STATUS_OK and I toogel a gpio pin after that.

But now my problem. the funktion comes back before tx is finisched! So the pin gets toggelt before the tx is finished.
I selected 125k Baud. What did i do worng?

rtel wrote on Wednesday, May 27, 2015:

Where did the function freertos_usart_write_packet() come from? I don’t believe it is something we have supplied, but could be wrong.

Regards.