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
time.h
00001 /* 00002 * 00003 * NMEA library 00004 * URL: http://nmea.sourceforge.net 00005 * Author: Tim (xtimor@gmail.com) 00006 * Licence: http://www.gnu.org/licenses/lgpl.html 00007 * $Id: time.h 4 2007-08-27 13:11:03Z xtimor $ 00008 * 00009 */ 00010 00011 /*! \file */ 00012 00013 #ifndef __NMEA_TIME_H__ 00014 #define __NMEA_TIME_H__ 00015 00016 #include "config.h" 00017 00018 #ifdef __cplusplus 00019 extern "C" { 00020 #endif 00021 00022 /** 00023 * Date and time data 00024 * @see nmea_time_now 00025 */ 00026 typedef struct _nmeaTIME 00027 { 00028 int year; /**< Years since 1900 */ 00029 int mon; /**< Months since January - [0,11] */ 00030 int day; /**< Day of the month - [1,31] */ 00031 int hour; /**< Hours since midnight - [0,23] */ 00032 int min; /**< Minutes after the hour - [0,59] */ 00033 int sec; /**< Seconds after the minute - [0,59] */ 00034 int hsec; /**< Hundredth part of second - [0,99] */ 00035 00036 } nmeaTIME; 00037 00038 /** 00039 * \brief Get time now to nmeaTIME structure 00040 */ 00041 void nmea_time_now(nmeaTIME *t); 00042 00043 #ifdef __cplusplus 00044 } 00045 #endif 00046 00047 #endif /* __NMEA_TIME_H__ */
Generated on Thu Jul 14 2022 14:06:47 by 1.7.2