I wonder if NXP SDK for LPC5411X provides any HAL API to introduce delay in microseconds resolutions?
There is common API: SDK_DelayAtLeastUs(), it might not be accurate,but the resolution is us.
HI misterbee
SDK doesn't have such an API
We suggest using timer to get a accurate delay.
Thanks,
Jun Zhang
Thank you but how timer can be used as delay?
I am talking about delay that needed in between e.g. I2C command. I don't think timer is relevant.
Enable HW timer first, then poll timer counter value until the delay time is met.