AP_HAL_ChibiOS: add accessor for UART DMA status

This commit is contained in:
Andy Piper 2021-05-01 13:00:59 +01:00 committed by Andrew Tridgell
parent 4d4d3683b6
commit f6b9479542

View File

@ -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;