HAL_ChibiOS: refuse unbuffered writes without DMA
we would need much more complex code to handle this
This commit is contained in:
parent
5ffcff1a79
commit
2e15285c51
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user