More switches code moved to switches.cpp

This commit is contained in:
Damjan Adamic
2014-05-17 15:29:31 +02:00
parent 4c44000bce
commit 8c21462f74
3 changed files with 124 additions and 112 deletions
+2 -2
View File
@@ -693,6 +693,8 @@ NOINLINE void per10ms();
getvalue_t getValue(uint8_t i);
bool getSwitch(int8_t swtch);
void evalLogicalSwitchTimers();
void logicalSwitchesReset();
#if defined(PCBTARANIS)
void getSwitchesPosition(bool startup);
@@ -823,8 +825,6 @@ extern uint8_t trimsCheckTimer;
extern volatile GETSWITCH_RECURSIVE_TYPE s_last_switch_used;
extern volatile GETSWITCH_RECURSIVE_TYPE s_last_switch_value;
extern int16_t csLastValue[NUM_LOGICAL_SWITCH];
#define CS_LAST_VALUE_INIT -32768
#define TMR_OFF 0
#define TMR_RUNNING 1