All tasks complete
Dependencies: mbed MCP23017 mbed-rtos WattBob_TextLCD
Diff: main.cpp
- Revision:
- 16:b66cb760fb3b
- Parent:
- 14:25241ed5b056
diff -r 2a0cadb9b9dc -r b66cb760fb3b main.cpp --- a/main.cpp Wed Apr 03 12:02:46 2019 +0000 +++ b/main.cpp Wed Apr 03 12:31:56 2019 +0000 @@ -19,8 +19,6 @@ MCP23017 *par_port; // pointer to 16-bit parallel I/O object **was = NULL WattBob_TextLCD *display; // pointer to 2*16 chacater LCD object **was = NULL - -//Thread delcaration Thread thread_1; Thread thread_2; Thread thread_3; @@ -32,17 +30,11 @@ Thread thread_9; Thread thread_10; -//mail queue -Thread MailQueue; -//Mutex Mutex simuXS; Mutex speedXS; Mutex carstateXS; -//mailbox -Mail<SIMU_DATA, 16> mail_box; - int main() { // set up for the LCD @@ -53,7 +45,6 @@ par_port->write_bit(1,BL_BIT); // turn LCD backlight ON - //task initialization thread_1.start(task1readbrake); thread_2.start(task2readaccel); @@ -65,16 +56,13 @@ thread_8.start(task8sidelights); thread_9.start(task9indLED); thread_10.start(taskXserialdump); - - //mail queue - MailQueue.start(callback(send_thread)); - while(true){ +while(1){ } } \ No newline at end of file