updated call to APP_TIMER_INIT() to use contants from projectconfig.h

pull/467/merge
Rohit Grover 2014-08-20 13:37:44 +01:00
parent 675ddde2f4
commit dcdca19948
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@
#include "cmsis.h"
#include "PeripheralNames.h"
#include "app_timer.h"
#include "projectconfig.h"
static bool us_ticker_inited = false;
static app_timer_id_t us_ticker_appTimerID = TIMER_NULL;
@ -29,7 +30,7 @@ void us_ticker_init(void)
}
const bool useScheduler = false;
APP_TIMER_INIT(0 /* PRESCALAR */, 2 /* num timers */, 1 /* event queue max depth */, useScheduler);
APP_TIMER_INIT(0 /*PRESCALAR*/ , CFG_TIMER_MAX_INSTANCE /* num timers */, CFG_TIMER_OPERATION_QUEUE_SIZE /* event queue max depth */, useScheduler);
us_ticker_inited = true;
}