Protothreads & timers
How to build a simple timer system in protothreads
Often in an embedded application there is the need to wait for a certain time at a certain point in the program. Usually it is advantageous if the application can carry on doing other things while the time at the waiting point elapses. Protothreads offer very simple and elegant way of achieving this. In this article I will show you how I did it.