mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-31 04:58:30 -04:00
AP_HAL_ChibiOS: add accessor for UART DMA status
This commit is contained in:
parent
4d4d3683b6
commit
f6b9479542
@ -131,6 +131,11 @@ public:
|
||||
// request information on uart I/O
|
||||
static void uart_info(ExpandingString &str);
|
||||
|
||||
/*
|
||||
return true if this UART has DMA enabled on both RX and TX
|
||||
*/
|
||||
bool is_dma_enabled() const override { return rx_dma_enabled && tx_dma_enabled; }
|
||||
|
||||
private:
|
||||
const SerialDef &sdef;
|
||||
bool rx_dma_enabled;
|
||||
|
Loading…
Reference in New Issue
Block a user