Delay function for KW24d

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

Delay function for KW24d

600 Views
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é

Tags (2)
0 Kudos
1 Reply

528 Views
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