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:
0:d177c0087d1f

        

Who changed what in which revision?

UserRevisionLine numberNew 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: time.h 4 2007-08-27 13:11:03Z xtimor $
guiott 0:d177c0087d1f 8 *
guiott 0:d177c0087d1f 9 */
guiott 0:d177c0087d1f 10
guiott 0:d177c0087d1f 11 /*! \file */
guiott 0:d177c0087d1f 12
guiott 0:d177c0087d1f 13 #ifndef __NMEA_TIME_H__
guiott 0:d177c0087d1f 14 #define __NMEA_TIME_H__
guiott 0:d177c0087d1f 15
guiott 0:d177c0087d1f 16 #include "config.h"
guiott 0:d177c0087d1f 17
guiott 0:d177c0087d1f 18 #ifdef __cplusplus
guiott 0:d177c0087d1f 19 extern "C" {
guiott 0:d177c0087d1f 20 #endif
guiott 0:d177c0087d1f 21
guiott 0:d177c0087d1f 22 /**
guiott 0:d177c0087d1f 23 * Date and time data
guiott 0:d177c0087d1f 24 * @see nmea_time_now
guiott 0:d177c0087d1f 25 */
guiott 0:d177c0087d1f 26 typedef struct _nmeaTIME
guiott 0:d177c0087d1f 27 {
guiott 0:d177c0087d1f 28 int year; /**< Years since 1900 */
guiott 0:d177c0087d1f 29 int mon; /**< Months since January - [0,11] */
guiott 0:d177c0087d1f 30 int day; /**< Day of the month - [1,31] */
guiott 0:d177c0087d1f 31 int hour; /**< Hours since midnight - [0,23] */
guiott 0:d177c0087d1f 32 int min; /**< Minutes after the hour - [0,59] */
guiott 0:d177c0087d1f 33 int sec; /**< Seconds after the minute - [0,59] */
guiott 0:d177c0087d1f 34 int hsec; /**< Hundredth part of second - [0,99] */
guiott 0:d177c0087d1f 35
guiott 0:d177c0087d1f 36 } nmeaTIME;
guiott 0:d177c0087d1f 37
guiott 0:d177c0087d1f 38 /**
guiott 0:d177c0087d1f 39 * \brief Get time now to nmeaTIME structure
guiott 0:d177c0087d1f 40 */
guiott 0:d177c0087d1f 41 void nmea_time_now(nmeaTIME *t);
guiott 0:d177c0087d1f 42
guiott 0:d177c0087d1f 43 #ifdef __cplusplus
guiott 0:d177c0087d1f 44 }
guiott 0:d177c0087d1f 45 #endif
guiott 0:d177c0087d1f 46
guiott 0:d177c0087d1f 47 #endif /* __NMEA_TIME_H__ */