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:
parent
1c76469251
commit
cf219cd8a6
10 changed files with 28 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue