Delay function for KW24d

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Delay function for KW24d

1,167 次查看
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 回复

1,095 次查看
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