vedderb / bldc

The VESC motor control firmware
2.16k stars 1.35k forks source link

Disable UART receiver during half-duplex transmit #483

Closed Netzpfuscher closed 2 years ago

Netzpfuscher commented 2 years ago

This makes the half-duplex UART transmit blocking that it doesn't receive it's own data. -Disables receiver -Writes it to out queue -Waits until queue is empty -Waits a bit until the UART hardware has emptied it's register -Enables receiver