mi mi
/
scheduler-demo
For LPC1114FN28, LPC1114. Multitask scheduler demo project.,arduino,due,compatible
main.cpp@1:be0642fdd704, 2014-03-08 (annotated)
- Committer:
- mimi3
- Date:
- Sat Mar 08 04:05:15 2014 +0000
- Revision:
- 1:be0642fdd704
- Parent:
- 0:79e298c7d4b9
delete: just comment
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mimi3 | 0:79e298c7d4b9 | 1 | |
mimi3 | 0:79e298c7d4b9 | 2 | #include "mbed.h" |
mimi3 | 0:79e298c7d4b9 | 3 | #include "Scheduler.h" |
mimi3 | 0:79e298c7d4b9 | 4 | #include "led_tsk.h" |
mimi3 | 0:79e298c7d4b9 | 5 | |
mimi3 | 0:79e298c7d4b9 | 6 | |
mimi3 | 0:79e298c7d4b9 | 7 | Serial pc(USBTX, USBRX); |
mimi3 | 0:79e298c7d4b9 | 8 | |
mimi3 | 0:79e298c7d4b9 | 9 | |
mimi3 | 0:79e298c7d4b9 | 10 | int main() |
mimi3 | 0:79e298c7d4b9 | 11 | { |
mimi3 | 0:79e298c7d4b9 | 12 | int i=0; |
mimi3 | 0:79e298c7d4b9 | 13 | pc.baud(115200); |
mimi3 | 0:79e298c7d4b9 | 14 | scheduler_startLoop( led_task ); |
mimi3 | 0:79e298c7d4b9 | 15 | scheduler_startLoop( led2_task ); |
mimi3 | 0:79e298c7d4b9 | 16 | while(1) { |
mimi3 | 0:79e298c7d4b9 | 17 | pc.printf("\nHello World ! / mbed LPC1114FN28 %4d",i++); |
mimi3 | 0:79e298c7d4b9 | 18 | taskWait(1000); |
mimi3 | 0:79e298c7d4b9 | 19 | } |
mimi3 | 0:79e298c7d4b9 | 20 | |
mimi3 | 0:79e298c7d4b9 | 21 | } |