Hi,
Is it possible to start a Timer in an other Timeouht Handler? Or Do i have to use something other to do that? i use app_timer and Softdeive on the 51822.
best regards Nils.
Hi,
Is it possible to start a Timer in an other Timeouht Handler? Or Do i have to use something other to do that? i use app_timer and Softdeive on the 51822.
best regards Nils.
Yes, this should be perfectly possible. All context-sensitive handling inside app_timer is done in a software triggered interrupt, so it doesn't matter from which context you call it.
You should however consider the size of your APP_TIMER_OP_QUEUE_SIZE if you do this a lot. See this question for details.
Hi Ole,
Yes you are right ths was my Problem. My Problem is that i don't know how to transport Data From the Timer Call into the Timeouthandler. Maybe you can give my an excample because then i don't need the global variable.
best regards Nils
I need to Transport a 16 bit uint variable inside the Timeouthandler. Can anyone give me an example how to do this?
Wouldn't a global variable work?
Yes it would work but its not as safety as a normal variable in the method. Is it possible to transport the variable into the timeout handler?