Code snipet
Dependencies: NySDFileSystem libMiMic mbed-rtos mbed
Fork of AsyncHttpdSample by
main.cpp
- Committer:
- nyatla
- Date:
- 2013-11-16
- Revision:
- 10:8a9023e05971
- Parent:
- 9:c6427be12f0d
File content as of revision 10:8a9023e05971:
#include "mimic.h" #include "rtos.h" DigitalOut led1(LED1); int taskHandler(void* i_param) { int i=0; for(;;){ //LEDBLINK led1=(i++)%2; Thread::wait(1000); } // return 0; } int main() { NyLPC_TcThread_t* th=(NyLPC_TcThread_t*)malloc(sizeof(NyLPC_TcThread_t)); NyLPC_cThread_initialize(th,256,NyLPC_TcThread_PRIORITY_IDLE); NyLPC_cThread_start(th,taskHandler,NULL); for(;;){ Thread::wait(1000); } // return 0; }