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
Startup.h@3:a2f9eb3b8a16, 2012-02-03 (annotated)
- Committer:
- guiott
- Date:
- Fri Feb 03 16:29:52 2012 +0000
- Revision:
- 3:a2f9eb3b8a16
- Parent:
- 2:8917036cbf69
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
guiott | 2:8917036cbf69 | 1 | #include "mbed.h" |
guiott | 0:d177c0087d1f | 2 | #include "Common.h" |
guiott | 0:d177c0087d1f | 3 | #include "TextLCD.h" |
guiott | 0:d177c0087d1f | 4 | #include "nmea/nmea.h" |
guiott | 0:d177c0087d1f | 5 | #include "mbos.h" |
guiott | 0:d177c0087d1f | 6 | #include "Tasks.h" |
guiott | 3:a2f9eb3b8a16 | 7 | #include "ConfigFile.h" |
guiott | 0:d177c0087d1f | 8 | |
guiott | 0:d177c0087d1f | 9 | extern TextLCD lcd; |
guiott | 0:d177c0087d1f | 10 | extern mbos os; |
guiott | 0:d177c0087d1f | 11 | extern Serial pc; |
guiott | 0:d177c0087d1f | 12 | extern Serial gps; |
guiott | 2:8917036cbf69 | 13 | |
guiott | 0:d177c0087d1f | 14 | extern nmeaINFO info; |
guiott | 0:d177c0087d1f | 15 | extern nmeaPARSER parser; |
guiott | 0:d177c0087d1f | 16 | extern PwmOut LcdBklight; |
guiott | 0:d177c0087d1f | 17 | |
guiott | 0:d177c0087d1f | 18 | void GpsSerialIsr(void); |
guiott | 0:d177c0087d1f | 19 | void trace_h(const char *str, int str_size); |
guiott | 0:d177c0087d1f | 20 | void error_h(const char *str, int str_size); |
guiott | 3:a2f9eb3b8a16 | 21 | void ReadCfg(char *Config[]); |
guiott | 3:a2f9eb3b8a16 | 22 | void WriteCfg(); |
guiott | 0:d177c0087d1f | 23 | |
guiott | 0:d177c0087d1f | 24 | extern char Ver1[]; |
guiott | 0:d177c0087d1f | 25 | extern char Ver2[]; |
guiott | 3:a2f9eb3b8a16 | 26 | |
guiott | 3:a2f9eb3b8a16 | 27 | char *Config[] = {"LatStart","LonStart"}; |