Deleted Added
sdiff udiff text old ( 182007 ) new ( 200576 )
full compact
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(SYS_WINNT)
11#undef close
12#define close closesocket
13#endif
14
15#if defined(REFCLOCK) && defined(CLOCK_NMEA)
16
17#include <stdio.h>
18#include <ctype.h>
19
20#include "ntpd.h"
21#include "ntp_io.h"
22#include "ntp_unixtime.h"
23#include "ntp_refclock.h"
24#include "ntp_stdlib.h"
25
26#ifdef HAVE_PPSAPI
27# include "ppsapi_timepps.h"
28#endif /* HAVE_PPSAPI */
29
30/*
31 * This driver supports the NMEA GPS Receiver with
32 *
33 * Protype was refclock_trak.c, Thanks a lot.
34 *
35 * The receiver used spits out the NMEA sentences for boat navigation.
36 * And you thought it was an information superhighway. Try a raging river
37 * filled with rapids and whirlpools that rip away your data and warp time.

--- 725 unchanged lines hidden ---