use constants from projectconfig.h as arguments for APP_TIMER_INIT()

pull/467/merge
Rohit Grover 2014-08-22 13:11:08 +01:00
parent c8f896d708
commit a5ac14aab0
1 changed files with 1 additions and 2 deletions

View File

@ -30,8 +30,7 @@ void us_ticker_init(void)
return;
}
const bool useScheduler = false;
APP_TIMER_INIT(0 /*PRESCALAR*/ , CFG_TIMER_MAX_INSTANCE /* num timers */, CFG_TIMER_OPERATION_QUEUE_SIZE /* event queue max depth */, useScheduler);
APP_TIMER_INIT(CFG_TIMER_PRESCALER , CFG_TIMER_MAX_INSTANCE, CFG_TIMER_OPERATION_QUEUE_SIZE, CFG_SCHEDULER_ENABLE);
us_ticker_inited = true;
}