Scheduller Demo

Dependencies:   Scheduler mbed

Fork of scheduler-demo-cq-lpc11u35 by mi mi

Committer:
mimi3
Date:
Fri Mar 07 14:57:13 2014 +0000
Revision:
2:6b3e85379edd
Parent:
1:48a906a94c32
Child:
3:d098b01b9dcb
activate UART

Who changed what in which revision?

UserRevisionLine numberNew 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