In traditional embedded programming, we will give a delay function like so:
for(i=0;i<255;i++) for(j=0;j<255;j++);
In the micropro
In a unix-derivative OS, you would probably schedule a signal() call, and your code would simply block the code until the signal is raised. Signals are intended for the purpose, and they are very simple and efficient.