Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Delay is used when busy- waiting is acceptable. busy waiting means that the CPU is busy while the wait, just looping around, but not letting any other useful work done. Delay is easy to program and recommended for the beginners, but wasteful on compute resources.
Delay function is available at mos/include/delay.h
Wait for a number of mili- or microseconds. The availability and precision depends on the platform.
void udelay(uint16_t microseconds) void mdelay(uint16_t miliseconds)