This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

wait function

Hi

during setup of a peripheral at startup, I need to add some wait periods in between steps of the setup. Is there some function like waitMS(int time) or something, that would make the processor wait during a number of milliseconds, without compromising the timeliness of the BLE stack? Or is there some other way of doing timed blocking functions ?

The alternative would be to split up the function into different steps - or states- , and re-enter the function with timer events. But that is just a lot more code. And also using an RTOS is somewhat overkill for this, as I would only use this during startup.

Related