1/* 2 * refclock_nmea.c - clock driver for an NMEA GPS CLOCK 3 * Michael Petry Jun 20, 1994 4 * based on refclock_heathn.c 5 */ 6#ifdef HAVE_CONFIG_H 7#include <config.h> 8#endif 9 |
10#if defined(REFCLOCK) && defined(CLOCK_NMEA) 11 12#include <stdio.h> 13#include <ctype.h> 14 15#include "ntpd.h" 16#include "ntp_io.h" 17#include "ntp_unixtime.h" 18#include "ntp_refclock.h" 19#include "ntp_stdlib.h" 20 21#ifdef HAVE_PPSAPI 22# include "ppsapi_timepps.h" 23#endif /* HAVE_PPSAPI */ 24 |
25#ifdef SYS_WINNT 26extern int async_write(int, const void *, unsigned int); 27#undef write 28#define write(fd, data, octets) async_write(fd, data, octets) 29#endif 30 |
31/* 32 * This driver supports the NMEA GPS Receiver with 33 * 34 * Protype was refclock_trak.c, Thanks a lot. 35 * 36 * The receiver used spits out the NMEA sentences for boat navigation. 37 * And you thought it was an information superhighway. Try a raging river 38 * filled with rapids and whirlpools that rip away your data and warp time. --- 725 unchanged lines hidden --- |