For Cortex-M3,Cortex-M0, Multitask scheduler library. Arduino due compatible
Dependents: scheduler-demo-cq-lpc11u35 scheduler-demo scheduler-demo-cq-lpc11u35 mbed-scli-test
Diff: Scheduler.h
- Revision:
- 1:8967b575bb46
- Parent:
- 0:c68459544a17
diff -r c68459544a17 -r 8967b575bb46 Scheduler.h --- a/Scheduler.h Sun Aug 25 16:48:21 2013 +0900 +++ b/Scheduler.h Sun Aug 25 10:25:11 2013 +0000 @@ -1,6 +1,7 @@ /* - * Copyright (C) 2012 audin + * Copyright (C) 2012-2013 audin * This program is licensed under the Apache License, Version 2.0. + * 2013/08: Modify for mbed for LPC1114FN28 * Modified 2012/11: v02: * Added external definition of stack size and task number. * Modified 2012/10: v01: @@ -68,8 +69,11 @@ void scheduler_init( void ); void scheduler_startLoop( SchedulerTask task ); void scheduler_start( SchedulerTask task ); - +#ifdef MBED_H + void taskWait(uint32_t ms); +#else void wait(uint32_t ms); +#endif void yield(); #ifdef __cplusplus } @@ -84,7 +88,11 @@ static void start(SchedulerTask task, uint32_t stackSize = MIN_STACK_SIZE); static void start(SchedulerParametricTask task, void *data, uint32_t stackSize = MIN_STACK_SIZE); +#ifdef MBED_H + static void taskWait(uint32_t ms); +#else static void wait(uint32_t ms) { ::wait(ms); }; +#endif static void yield() { ::yield(); }; };