1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 09:16:07 +03:00

Add and handle USE_TIMER

This commit is contained in:
jflyper 2019-05-05 19:42:30 +09:00
parent 1c76469251
commit cf219cd8a6
10 changed files with 28 additions and 0 deletions

View file

@ -358,7 +358,9 @@ void init(void)
mcoInit(mcoConfig());
#endif
#ifdef USE_TIMER
timerInit(); // timer must be initialized before any channel is allocated
#endif
#ifdef BUS_SWITCH_PIN
busSwitchInit();
@ -748,9 +750,11 @@ void init(void)
#endif // VTX_CONTROL
#ifdef USE_TIMER
// start all timers
// TODO - not implemented yet
timerStart();
#endif
ENABLE_STATE(SMALL_ANGLE);