mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_HAL: added inversion options
This commit is contained in:
parent
ac3b0a98ab
commit
37fc6e8b1c
@ -45,6 +45,14 @@ public:
|
||||
// and write is discarded
|
||||
virtual size_t write_locked(const uint8_t *buffer, size_t size, uint32_t key) { return 0; }
|
||||
|
||||
// control optional features
|
||||
virtual bool set_options(uint8_t options) { return options==0; }
|
||||
|
||||
enum {
|
||||
OPTION_RXINV=(1U<<0), // invert RX line
|
||||
OPTION_TXINV=(1U<<1), // invert TX line
|
||||
};
|
||||
|
||||
enum flow_control {
|
||||
FLOW_CONTROL_DISABLE=0, FLOW_CONTROL_ENABLE=1, FLOW_CONTROL_AUTO=2
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user