Browse Source

HAL_ChibiOS: refuse unbuffered writes without DMA

we would need much more complex code to handle this
master
Andrew Tridgell 7 years ago
parent
commit
2e15285c51
  1. 4
      libraries/AP_HAL_ChibiOS/UARTDriver.cpp

4
libraries/AP_HAL_ChibiOS/UARTDriver.cpp

@ -686,6 +686,10 @@ void UARTDriver::update_rts_line(void)
*/ */
bool UARTDriver::set_unbuffered_writes(bool on) 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; unbuffered_writes = on;
return true; return true;
} }

Loading…
Cancel
Save