Browse Source

AP_HAL: added get_flow_control() API

master
Andrew Tridgell 11 years ago
parent
commit
7c1b9b344f
  1. 1
      libraries/AP_HAL/UARTDriver.h
  2. 1
      libraries/AP_HAL_PX4/UARTDriver.h

1
libraries/AP_HAL/UARTDriver.h

@ -43,6 +43,7 @@ public: @@ -43,6 +43,7 @@ public:
FLOW_CONTROL_DISABLE=0, FLOW_CONTROL_ENABLE=1, FLOW_CONTROL_AUTO=2
};
virtual void set_flow_control(enum flow_control flow_control_setting) {};
virtual enum flow_control get_flow_control(void) { return FLOW_CONTROL_DISABLE; };
/* Implementations of BetterStream virtual methods. These are
* provided by AP_HAL to ensure consistency between ports to

1
libraries/AP_HAL_PX4/UARTDriver.h

@ -37,6 +37,7 @@ public: @@ -37,6 +37,7 @@ public:
}
void set_flow_control(enum flow_control flow_control);
enum flow_control get_flow_control(void) { return _flow_control; }
private:
const char *_devpath;

Loading…
Cancel
Save