Compilation fixes

This commit is contained in:
Bertrand Songis
2019-04-16 21:23:09 +02:00
parent e47603dcf7
commit 6676e98a92
6 changed files with 18 additions and 13 deletions
+12 -2
View File
@@ -21,6 +21,8 @@
#ifndef _TIMERS_H_
#define _TIMERS_H_
#include "opentx_types.h"
#define TMR_OFF 0
#define TMR_RUNNING 1
#define TMR_NEGATIVE 2
@@ -41,15 +43,23 @@ struct TimerState {
uint8_t val_10ms;
};
#if defined(TIMERS)
extern TimerState timersStates[TIMERS];
#endif
void timerReset(uint8_t idx);
void timerSet(int idx, int val);
void saveTimers();
void restoreTimers();
void saveTimers();
void restoreTimers();
void evalTimers(int16_t throttle, uint8_t tick10ms);
extern volatile tmr10ms_t g_tmr10ms;
static inline tmr10ms_t get_tmr10ms()
{
return g_tmr10ms;
}
#endif // _TIMERS_H_