![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
For CQ LPC1U35 board. Multitask scheduler demo project.,arduino,due,compatible
Fork of scheduler-demo by
main.cpp@2:6b3e85379edd, 2014-03-07 (annotated)
- Committer:
- mimi3
- Date:
- Fri Mar 07 14:57:13 2014 +0000
- Revision:
- 2:6b3e85379edd
- Parent:
- 1:48a906a94c32
activate UART
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 | 2:6b3e85379edd | 6 | Serial pc(UART_TX, UART_RX); |
mimi3 | 1:48a906a94c32 | 7 | |
mimi3 | 0:79e298c7d4b9 | 8 | int main() |
mimi3 | 0:79e298c7d4b9 | 9 | { |
mimi3 | 0:79e298c7d4b9 | 10 | int i=0; |
mimi3 | 2:6b3e85379edd | 11 | pc.baud(115200); |
mimi3 | 1:48a906a94c32 | 12 | scheduler_startLoop( led1_task ); |
mimi3 | 0:79e298c7d4b9 | 13 | scheduler_startLoop( led2_task ); |
mimi3 | 1:48a906a94c32 | 14 | |
mimi3 | 0:79e298c7d4b9 | 15 | while(1) { |
mimi3 | 2:6b3e85379edd | 16 | pc.printf("\nHello World ! / mbed LPC11U35 %4d",i++); |
mimi3 | 0:79e298c7d4b9 | 17 | taskWait(1000); |
mimi3 | 0:79e298c7d4b9 | 18 | } |
mimi3 | 0:79e298c7d4b9 | 19 | |
mimi3 | 0:79e298c7d4b9 | 20 | } |
mimi3 | 1:48a906a94c32 | 21 | |
mimi3 | 1:48a906a94c32 | 22 | |
mimi3 | 1:48a906a94c32 | 23 |