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?