From dcdca19948c0d4b7611d028031d811264b69a499 Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Wed, 20 Aug 2014 13:37:44 +0100 Subject: [PATCH] updated call to APP_TIMER_INIT() to use contants from projectconfig.h --- .../targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/us_ticker.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/us_ticker.c b/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/us_ticker.c index 698fdae0cc..32736a4260 100644 --- a/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/us_ticker.c +++ b/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/us_ticker.c @@ -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; }