Browse Source

AP_HAL_ChibiOS: add accessor for UART DMA status

zr-v5.1
Andy Piper 4 years ago committed by Andrew Tridgell
parent
commit
f6b9479542
  1. 5
      libraries/AP_HAL_ChibiOS/UARTDriver.h

5
libraries/AP_HAL_ChibiOS/UARTDriver.h

@ -131,6 +131,11 @@ public: @@ -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…
Cancel
Save