From 018ab14814f684ac2661f0094ac70db511f80aa0 Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Fri, 27 May 2022 16:51:46 -0300 Subject: [PATCH] RC_Output.h: add gpio methods --- libraries/AP_HAL/RCOutput.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libraries/AP_HAL/RCOutput.h b/libraries/AP_HAL/RCOutput.h index 70f3691323..d0875d23c2 100644 --- a/libraries/AP_HAL/RCOutput.h +++ b/libraries/AP_HAL/RCOutput.h @@ -336,6 +336,16 @@ public: virtual void timer_info(ExpandingString &str) {} + /* + Can this driver handle gpio as well as RC + */ + virtual bool supports_gpio() { return false; }; + + /* + Writes gpio state to a channel + */ + virtual void write_gpio(uint8_t chan, bool active) {}; + /* * calculate the prescaler required to achieve the desire bitrate */