Cycle rutines in a task with Timmer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cycle rutines in a task with Timmer

Jump to solution
425 Views
norbertoj
Contributor III

Hi, I'm using mqx tasks. I have a Control task that send messages to others tasks (Ethernet Client). I need that my control task send a message to Ethernet Client every 500 ms. In the rest of time, control task sends others messages to other tasks (depends of some interrupts) and do some calculations. Therefore, I need some help to how to use timmer functions in order to send a message to Ethernet Client using flags (interruptions) of the timmer.

I know that there are functions like _timer_start_periodic_every but I didn't find examples that help my code.

Sincerely, 

Norberto Jiménez

0 Kudos
1 Solution
310 Views
danielchen
NXP TechSupport
NXP TechSupport

Hello Norberto Jimenez:

Yes, you can use _timer_start_periodic_every

Here is an example to create the timer component, start a periodic timer that sets an event every 20 milliseconds, and later cancel the timer.

pastedImage_1.png

pastedImage_2.png

pastedImage_3.png

Regards

Daniel

View solution in original post

0 Kudos
1 Reply
311 Views
danielchen
NXP TechSupport
NXP TechSupport

Hello Norberto Jimenez:

Yes, you can use _timer_start_periodic_every

Here is an example to create the timer component, start a periodic timer that sets an event every 20 milliseconds, and later cancel the timer.

pastedImage_1.png

pastedImage_2.png

pastedImage_3.png

Regards

Daniel

0 Kudos