summaryrefslogtreecommitdiff
path: root/ntpshm.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-10-05 15:46:49 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-10-05 15:46:49 -0400
commit9a3308a81cd1d8726af34966545822f6c382bd09 (patch)
tree2b95f08e2d09b9d99cc083eb05c8ebef9e677d24 /ntpshm.c
parent212d2fa470fd2d52cc9ca48e2058fd887825c156 (diff)
downloadgpsd-9a3308a81cd1d8726af34966545822f6c382bd09.tar.gz
Replace pps_on_cts with pps_pin for more flexibility.
Yes, we had a user request for this - a guy using a Jackson Labs rubidium-oscillator clock whose easy alternatives are RTS and RI. All regression tests pass. Code splints clean.
Diffstat (limited to 'ntpshm.c')
-rw-r--r--ntpshm.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/ntpshm.c b/ntpshm.c
index 273fabc1..ae9d9ae0 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -546,13 +546,7 @@ static int init_kernel_pps(struct gps_device_t *session) {
* 9 22 RI <-- Ring Indicator
* 5 7 SG Signal ground
*/
-#if defined(PPS_ON_CTS_ENABLE)
-#define PPS_LINE_TIOC TIOCM_CTS
-#define PPS_LINE_NAME "CTS"
-#else
-#define PPS_LINE_TIOC TIOCM_CAR
-#define PPS_LINE_NAME "DCD"
-#endif
+#include "pps_pin.h"
/*@-mustfreefresh -type@ -unrecog*/
static /*@null@*/ void *gpsd_ppsmonitor(void *arg)