Browse Source

AP_HAL: add PRIORITY_RCOUT

don't allow UART copies
add @SYS/uarts.txt
zr-v5.1
Andy Piper 4 years ago committed by Andrew Tridgell
parent
commit
a07b238c7d
  1. 1
      libraries/AP_HAL/Scheduler.h
  2. 4
      libraries/AP_HAL/UARTDriver.h
  3. 3
      libraries/AP_HAL/Util.h

1
libraries/AP_HAL/Scheduler.h

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

4
libraries/AP_HAL/UARTDriver.h

@ -9,6 +9,10 @@ @@ -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

3
libraries/AP_HAL/Util.h

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