HAL_ChibiOS: refuse unbuffered writes without DMA

we would need much more complex code to handle this
This commit is contained in:
Andrew Tridgell 2018-01-22 07:40:55 +11:00
parent 5ffcff1a79
commit 2e15285c51

View File

@ -686,6 +686,10 @@ void UARTDriver::update_rts_line(void)
*/
bool UARTDriver::set_unbuffered_writes(bool on)
{
if (on && !sdef.dma_tx) {
// we can't implement low latemcy writes safely without TX DMA
return false;
}
unbuffered_writes = on;
return true;
}