AP_HAL: add PRIORITY_RCOUT

don't allow UART copies
add @SYS/uarts.txt
This commit is contained in:
Andy Piper 2020-12-05 19:16:05 +00:00 committed by Andrew Tridgell
parent d4aef2dba8
commit a07b238c7d
3 changed files with 8 additions and 0 deletions

View File

@ -108,6 +108,7 @@ public:
PRIORITY_I2C,
PRIORITY_CAN,
PRIORITY_TIMER,
PRIORITY_RCOUT,
PRIORITY_RCIN,
PRIORITY_IO,
PRIORITY_UART,

View File

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

View File

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