![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Round robin Scheduler
Diff: main.cpp
- Revision:
- 0:cf2d4c337b6f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Sep 09 14:09:14 2010 +0000 @@ -0,0 +1,33 @@ +#include "globals.h" + +extern "C" void install_task0( void (void) ); +extern "C" void install_task1( void (void) ); +extern "C" void install_task2( void (void) ); +extern "C" void install_task3( void (void) ); +extern "C" void run_task0( void ); +extern "C" void run_task1( void ); +extern "C" void run_task2( void ); +extern "C" void run_task3( void ); +extern "C" void adc( void ); +extern "C" void leds( void ); +extern "C" void user( void ); + + + +//------------------------------- +int main() + { + install_task0( &adc ); + install_task1( &leds ); + install_task2( &user ); + + while(1) + { + run_task0(); + run_task1(); + run_task2(); + } //end of while + + + } +