mirror of https://github.com/ARMmbed/mbed-os.git
use constants from projectconfig.h as arguments for APP_TIMER_INIT()
parent
c8f896d708
commit
a5ac14aab0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue