For LPC1114FN28, LPC1114. Multitask scheduler demo project.,arduino,due,compatible

Dependencies:   Scheduler mbed

Committer:
mimi3
Date:
Sun Aug 25 10:28:46 2013 +0000
Revision:
0:79e298c7d4b9
Child:
1:be0642fdd704
For LPC1114FN28. ; Scheduler demo project.

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 0:79e298c7d4b9 6
mimi3 0:79e298c7d4b9 7 /* tx, rx default Baudrate:9600bps */
mimi3 0:79e298c7d4b9 8 Serial pc(USBTX, USBRX);
mimi3 0:79e298c7d4b9 9
mimi3 0:79e298c7d4b9 10
mimi3 0:79e298c7d4b9 11 int main()
mimi3 0:79e298c7d4b9 12 {
mimi3 0:79e298c7d4b9 13 int i=0;
mimi3 0:79e298c7d4b9 14 pc.baud(115200);
mimi3 0:79e298c7d4b9 15 scheduler_startLoop( led_task );
mimi3 0:79e298c7d4b9 16 scheduler_startLoop( led2_task );
mimi3 0:79e298c7d4b9 17 while(1) {
mimi3 0:79e298c7d4b9 18 pc.printf("\nHello World ! / mbed LPC1114FN28 %4d",i++);
mimi3 0:79e298c7d4b9 19 taskWait(1000);
mimi3 0:79e298c7d4b9 20 }
mimi3 0:79e298c7d4b9 21
mimi3 0:79e298c7d4b9 22 }