Akhil Gazula / Mbed 2 deprecated lab3RTOSAkhil

Dependencies:   mbed mbed-rtos 4DGL-uLCD-SE

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "rtos.h"
00003 #include "uLCD_4DGL.h"
00004 
00005 uLCD_4DGL uLCD(p13,p14,p11); // serial tx, serial rx, reset pin;
00006 DigitalOut myled(LED1);
00007 
00008 Mutex lcd_mutex;
00009 void thread1(void const *args){
00010     
00011     }
00012 void thread2(void const *args){
00013     
00014     }
00015 void thread3(void const *args){
00016     
00017     }
00018 
00019 int main() {
00020     Thread t1(thread1); //start thread1
00021     Thread t2(thread2); //start thread2
00022     Thread t3(thread3); //start thread3
00023     while(1) {
00024         myled = 1;
00025         wait(0.2);
00026         myled = 0;
00027         wait(0.2);
00028     }
00029 }