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

Committer:
guiott
Date:
Fri Feb 03 16:29:52 2012 +0000
Revision:
3:a2f9eb3b8a16
Parent:
2:8917036cbf69

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
guiott 2:8917036cbf69 1 #include "Task9Wdt.h"
guiott 2:8917036cbf69 2
guiott 2:8917036cbf69 3 void WdtTask(void)
guiott 2:8917036cbf69 4 {/**
guiott 2:8917036cbf69 5 *\brief TASK 9 Watch Dog
guiott 2:8917036cbf69 6 this is a very high priority task. Non other task can
guiott 2:8917036cbf69 7 block this one. So, the WDT occurs only if a real OS
guiott 2:8917036cbf69 8 hang happens.
guiott 2:8917036cbf69 9 */
guiott 2:8917036cbf69 10
guiott 2:8917036cbf69 11 os.SetTimer(WDT_TMR, WDT_TIMER, WDT_TIMER); // Kick the dog
guiott 2:8917036cbf69 12
guiott 2:8917036cbf69 13 while (1)
guiott 2:8917036cbf69 14 {
guiott 2:8917036cbf69 15 os.WaitEvent(WDT_EVT);
guiott 2:8917036cbf69 16 wd.Service(); // kick the dog before the timeout
guiott 2:8917036cbf69 17 }
guiott 2:8917036cbf69 18 }