Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Setting up the app_timer with Keil and NRF52810

Hello,

My goals is to start two functions every second. So I made a function that starts those two functions and am now trying to use the app_timer library to let this happen. Thus far I've set it up like this:

void InitTimer()
{
	app_timer_init();	//Initialize the timer
	APP_TIMER_DEF(TIM_POL);//Create a timer ID
	app_timer_create(&TIM_POL, APP_TIMER_MODE_REPEATED, StartStatemachines);//Create the timer
	app_timer_start(TIM_POL, APP_TIMER_TICKS(POLLING_RATE),0);//Start the timer with polling rate
}

Where POLLING_RATE = 1000

After calling InitTimer, the program never seems to enter 'StartStatemachines' when debugging the program and putting a breakpoint inside that function.

Is there something I am missing?

Parents Reply Children
No Data
Related