AP_HAL: add PRIORITY_RCOUT
don't allow UART copies add @SYS/uarts.txt
This commit is contained in:
parent
d4aef2dba8
commit
a07b238c7d
@ -108,6 +108,7 @@ public:
|
||||
PRIORITY_I2C,
|
||||
PRIORITY_CAN,
|
||||
PRIORITY_TIMER,
|
||||
PRIORITY_RCOUT,
|
||||
PRIORITY_RCIN,
|
||||
PRIORITY_IO,
|
||||
PRIORITY_UART,
|
||||
|
@ -9,6 +9,10 @@
|
||||
class AP_HAL::UARTDriver : public AP_HAL::BetterStream {
|
||||
public:
|
||||
UARTDriver() {}
|
||||
/* Do not allow copies */
|
||||
UARTDriver(const UARTDriver &other) = delete;
|
||||
UARTDriver &operator=(const UARTDriver&) = delete;
|
||||
|
||||
// begin() implicitly clears rx/tx buffers, even if the port was already open (unless the UART is the console UART)
|
||||
virtual void begin(uint32_t baud) = 0;
|
||||
/// Extended port open method
|
||||
|
@ -196,6 +196,9 @@ public:
|
||||
// load persistent parameters from bootloader sector
|
||||
virtual bool load_persistent_params(ExpandingString &str) const { return false; }
|
||||
|
||||
// request information on uart I/O
|
||||
virtual void uart_info(ExpandingString &str) {}
|
||||
|
||||
protected:
|
||||
// we start soft_armed false, so that actuators don't send any
|
||||
// values until the vehicle code has fully started
|
||||
|
Loading…
Reference in New Issue
Block a user