A porting of a GPS decoding and presenting program within the mbos RTOS. It is not a definitive application but a study program to test NMEA full decoding library and a first approach to an RTOS. Many thanks to Andrew Levido for his support and his patience on teaching me the RTOS principles from the other side of the Earth. It uses NMEA library by Tim (xtimor@gmail.com) ported by Ken Todotani (http://mbed.org/users/todotani/) on public mbed library (http://mbed.org/users/todotani/programs/GPS_nmeaLib/5yo4h) also available, as original universal C library, on http://nmea.sourceforge.net

Dependencies:   mbos Watchdog TextLCD mbed ConfigFile

Revision:
2:8917036cbf69
Parent:
0:d177c0087d1f
Child:
3:a2f9eb3b8a16
--- a/Startup.cpp	Sun Jan 29 22:08:35 2012 +0000
+++ b/Startup.cpp	Tue Jan 31 00:22:58 2012 +0000
@@ -41,6 +41,7 @@
 os.CreateTask(SHOW_PC_TASK, SHOW_PC_PRIORITY, SHOW_PC_STACK_SZ, ShowPcTask);
 os.CreateTask(LCD_LIGHT_DIM_TASK, LCD_LIGHT_DIM_PRIORITY, LCD_LIGHT_DIM_STACK_SZ, LcdLightDimTask);
 os.CreateTask(TEMP_TASK, TEMP_PRIORITY, TEMP_STACK_SZ, TempTask);
+os.CreateTask(WDT_TASK, WDT_PRIORITY, WDT_STACK_SZ, WdtTask);
 
 os.CreateResource(GPS_SERIAL,GPS_SERIAL_PRIO);  
 os.CreateResource(PC_SERIAL,PC_SERIAL_PRIO);  
@@ -54,7 +55,9 @@
 os.CreateTimer(SHOW_PC_TMR, SHOW_PC_TASK, SHOW_PC_EVT);
 os.CreateTimer(LCD_LIGHT_DIM_OFF_TMR, LCD_LIGHT_DIM_TASK, LCD_LIGHT_DIM_OFF_EVT);
 os.CreateTimer(TEMP_TMR, TEMP_TASK, TEMP_EVT);
+os.CreateTimer(WDT_TMR, WDT_TASK, WDT_EVT);
 
 os.SetTimer(LCD_LIGHT_DIM_OFF_TMR, LCD_LIGHT_DIM_TIMER, 0);
+
 // os.SetTimer(TEMP_TMR, TEMP_TIMER, TEMP_TIMER); // enabled just for test or debug
 }