RC_Output.h: add gpio methods

This commit is contained in:
Willian Galvani 2022-05-27 16:51:46 -03:00 committed by Andrew Tridgell
parent d82ba1b7a3
commit 018ab14814
1 changed files with 10 additions and 0 deletions

View File

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