Delay function for KW24d

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

Delay function for KW24d

646件の閲覧回数
vitorgabriel100
Contributor II

Hello, 

I'm using a nxp frdm - kw24d, and I want to know if exist any function that could do the same thing as function delay() in Arduino? I use the IAR Embedded Workbench IDE.

Thanks!

Vítor Caitité

タグ(2)
0 件の賞賛
1 返信

574件の閲覧回数
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

It will depend on what you will be trying to achieve , if you are using some kind of wireless protocol it will be hard to perform a delay making sure your network transmissions won't be interrupted.

I would recommend you to use timers and interrupt the code depending the time you want to use and set some kind of event or flag to make your routine.

Still, if you are using some kind of wireless protocol example, I would really take into account that if you make some kind of blocking task/function the radio might not be able to receive a message in case it arrives in that blocking routing.

Regards,

Estephania