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?