Merge pull request #1102 from opentx/bsongis/Switches_refactoring

Switches code moved to a separate file
This commit is contained in:
Bertrand Songis
2014-05-15 07:36:14 +02:00
9 changed files with 618 additions and 571 deletions
+7 -1
View File
@@ -672,7 +672,13 @@ void perMain();
NOINLINE void per10ms();
getvalue_t getValue(uint8_t i);
bool getSwitch(int8_t swtch);
bool getSwitch(int8_t swtch);
#if defined(PCBTARANIS)
void getSwitchesPosition(bool startup);
#else
#define getSwitchesPosition(...)
#endif
extern swstate_t switches_states;
int8_t getMovedSwitch();