mi mi / Mbed 2 deprecated scheduler-demo-cq-lpc11u35

Dependencies:   Scheduler mbed

Fork of scheduler-demo by mi mi

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 Serial pc(UART_TX, UART_RX);
00007  
00008 int main()
00009 {
00010     int i=0;
00011     pc.baud(115200);
00012     scheduler_startLoop( led1_task );
00013     scheduler_startLoop( led2_task );
00014     
00015     while(1) {
00016         pc.printf("\nHello World ! / mbed LPC11U35 %4d",i++);
00017         taskWait(1000);
00018     }
00019 
00020 }
00021 
00022 
00023