AP_HAL: added uart_info() method
This commit is contained in:
parent
135a4d2c83
commit
d8a6d9c5c4
@ -5,6 +5,8 @@
|
|||||||
#include "AP_HAL_Namespace.h"
|
#include "AP_HAL_Namespace.h"
|
||||||
#include "utility/BetterStream.h"
|
#include "utility/BetterStream.h"
|
||||||
|
|
||||||
|
class ExpandingString;
|
||||||
|
|
||||||
/* Pure virtual UARTDriver class */
|
/* Pure virtual UARTDriver class */
|
||||||
class AP_HAL::UARTDriver : public AP_HAL::BetterStream {
|
class AP_HAL::UARTDriver : public AP_HAL::BetterStream {
|
||||||
public:
|
public:
|
||||||
@ -124,4 +126,7 @@ public:
|
|||||||
return true if this UART has DMA enabled on both RX and TX
|
return true if this UART has DMA enabled on both RX and TX
|
||||||
*/
|
*/
|
||||||
virtual bool is_dma_enabled() const { return false; }
|
virtual bool is_dma_enabled() const { return false; }
|
||||||
|
|
||||||
|
// request information on uart I/O for this uart, for @SYS/uarts.txt
|
||||||
|
virtual void uart_info(ExpandingString &str) {}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user