mi mi / Mbed 2 deprecated scheduler-demo

Dependencies:   Scheduler mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 
00002 #include "mbed.h"
00003 #include "Scheduler.h"
00004 #include "led_tsk.h"
00005 
00006 
00007 Serial pc(USBTX, USBRX);
00008 
00009 
00010 int main()
00011 {
00012     int i=0;
00013     pc.baud(115200);
00014     scheduler_startLoop( led_task );
00015     scheduler_startLoop( led2_task );
00016     while(1) {
00017         pc.printf("\nHello World ! / mbed LPC1114FN28 %4d",i++);
00018         taskWait(1000);
00019     }
00020 
00021 }