Cycle rutines in a task with Timmer

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Cycle rutines in a task with Timmer

ソリューションへジャンプ
950件の閲覧回数
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 件の賞賛
返信
1 解決策
835件の閲覧回数
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 件の賞賛
返信
1 返信
836件の閲覧回数
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 件の賞賛
返信