AnsweredAssumed Answered

Start a timer in a interrupt?

Question asked by Daniel Chai on Aug 20, 2013
Latest reply on Aug 20, 2013 by Martin Latal

Hi All,

I am using MK60F120, MQX4.0.1, cw10.4.

And now I create a timer to generate a interrupt every 50ms.

When I start the timer in the main task, it works fine. But when I start the timer in a button interrupt, it does not work.

I am using following code to start the timer.

*TimerID = _timer_start_periodic_every_ticks(key_generator, 0, TIMER_ELAPSED_TIME_MODE,Ticks);

 

Is there something wrong or I can't start a timer in a interrupt?

 

Thank you.

 

-Daniel

Outcomes