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
nmea/config.h@3:a2f9eb3b8a16, 2012-02-03 (annotated)
- Committer:
- guiott
- Date:
- Fri Feb 03 16:29:52 2012 +0000
- Revision:
- 3:a2f9eb3b8a16
- Parent:
- 0:d177c0087d1f
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
guiott | 0:d177c0087d1f | 1 | /* |
guiott | 0:d177c0087d1f | 2 | * |
guiott | 0:d177c0087d1f | 3 | * NMEA library |
guiott | 0:d177c0087d1f | 4 | * URL: http://nmea.sourceforge.net |
guiott | 0:d177c0087d1f | 5 | * Author: Tim (xtimor@gmail.com) |
guiott | 0:d177c0087d1f | 6 | * Licence: http://www.gnu.org/licenses/lgpl.html |
guiott | 0:d177c0087d1f | 7 | * $Id: config.h 17 2008-03-11 11:56:11Z xtimor $ |
guiott | 0:d177c0087d1f | 8 | * |
guiott | 0:d177c0087d1f | 9 | */ |
guiott | 0:d177c0087d1f | 10 | |
guiott | 0:d177c0087d1f | 11 | #ifndef __NMEA_CONFIG_H__ |
guiott | 0:d177c0087d1f | 12 | #define __NMEA_CONFIG_H__ |
guiott | 0:d177c0087d1f | 13 | |
guiott | 0:d177c0087d1f | 14 | #define NMEA_VERSION ("0.5.3") |
guiott | 0:d177c0087d1f | 15 | #define NMEA_VERSION_MAJOR (0) |
guiott | 0:d177c0087d1f | 16 | #define NMEA_VERSION_MINOR (5) |
guiott | 0:d177c0087d1f | 17 | #define NMEA_VERSION_PATCH (3) |
guiott | 0:d177c0087d1f | 18 | |
guiott | 0:d177c0087d1f | 19 | #define NMEA_CONVSTR_BUF (256) |
guiott | 0:d177c0087d1f | 20 | #define NMEA_TIMEPARSE_BUF (256) |
guiott | 0:d177c0087d1f | 21 | |
guiott | 0:d177c0087d1f | 22 | #if defined(WINCE) || defined(UNDER_CE) |
guiott | 0:d177c0087d1f | 23 | # define NMEA_CE |
guiott | 0:d177c0087d1f | 24 | #endif |
guiott | 0:d177c0087d1f | 25 | |
guiott | 0:d177c0087d1f | 26 | #if defined(WIN32) || defined(NMEA_CE) |
guiott | 0:d177c0087d1f | 27 | # define NMEA_WIN |
guiott | 0:d177c0087d1f | 28 | #else |
guiott | 0:d177c0087d1f | 29 | # define NMEA_UNI |
guiott | 0:d177c0087d1f | 30 | #endif |
guiott | 0:d177c0087d1f | 31 | |
guiott | 0:d177c0087d1f | 32 | #if defined(NMEA_WIN) && (_MSC_VER >= 1400) |
guiott | 0:d177c0087d1f | 33 | # pragma warning(disable: 4996) /* declared deprecated */ |
guiott | 0:d177c0087d1f | 34 | #endif |
guiott | 0:d177c0087d1f | 35 | |
guiott | 0:d177c0087d1f | 36 | #if defined(_MSC_VER) |
guiott | 0:d177c0087d1f | 37 | # define NMEA_POSIX(x) _##x |
guiott | 0:d177c0087d1f | 38 | # define NMEA_INLINE __inline |
guiott | 0:d177c0087d1f | 39 | #else |
guiott | 0:d177c0087d1f | 40 | # define NMEA_POSIX(x) x |
guiott | 0:d177c0087d1f | 41 | # define NMEA_INLINE inline |
guiott | 0:d177c0087d1f | 42 | #endif |
guiott | 0:d177c0087d1f | 43 | |
guiott | 0:d177c0087d1f | 44 | #if !defined(NDEBUG) && !defined(NMEA_CE) |
guiott | 0:d177c0087d1f | 45 | # include <assert.h> |
guiott | 0:d177c0087d1f | 46 | # define NMEA_ASSERT(x) assert(x) |
guiott | 0:d177c0087d1f | 47 | #else |
guiott | 0:d177c0087d1f | 48 | # define NMEA_ASSERT(x) |
guiott | 0:d177c0087d1f | 49 | #endif |
guiott | 0:d177c0087d1f | 50 | |
guiott | 0:d177c0087d1f | 51 | #endif /* __NMEA_CONFIG_H__ */ |