mbed-scli test program

Dependencies:   Scheduler

main.cpp

Committer:
mimi3
Date:
2017-03-05
Revision:
10:72b75743f231
Parent:
2:3e748cfff1d7

File content as of revision 10:72b75743f231:


#include "mbed.h"
#include "led_tsk.h"

#define SCHEDULER_TASK_STACK_SIZE_EACH 1000
#include "Scheduler.h"

Serial pc(USBTX, USBRX);

int main()
{
    int i=0;
    pc.baud(115200);
    scheduler_startLoop( led1_task );

    while(1) {
        pc.printf("\n[%4d] Hello World ! / mbed ",i++);
        taskWait(1000);
    }

}