# HG changeset patch # User Mychaela Falconia # Date 1495486315 0 # Node ID a3f48378658ddc32ad3488aa6496c5bcdd2fe09f # Parent 7ac866c3baf6d5d32ab9c6e4301088d467aafc46 autocal: beginning of fc-rfcal-vcxo diff -r 7ac866c3baf6 -r a3f48378658d autocal/Makefile --- a/autocal/Makefile Mon May 22 20:35:42 2017 +0000 +++ b/autocal/Makefile Mon May 22 20:51:55 2017 +0000 @@ -1,6 +1,6 @@ CC= gcc CFLAGS= -O2 -I/opt/freecalypso/include -OBJS= l1tmops.o rvinterf.o tsidsock.o +OBJS= l1tmops.o rvinterf.o sockopts.o tsidsock.o vcxomain.o all: ${OBJS} diff -r 7ac866c3baf6 -r a3f48378658d autocal/sockopts.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autocal/sockopts.c Mon May 22 20:51:55 2017 +0000 @@ -0,0 +1,34 @@ +/* + * This module contains the common code for handling + * -s and -t command line options. + */ + +#include +#include +#include +#include + +extern char *rvif_socket_pathname, *tsid_socket_pathname; + +socket_pathname_options(argc, argv) + char **argv; +{ + extern char *optarg; + int c; + + while ((c = getopt(argc, argv, "s:t:")) != EOF) { + switch (c) { + case 's': + rvif_socket_pathname = optarg; + continue; + case 't': + tsid_socket_pathname = optarg; + continue; + case '?': + default: + /* error msg already printed */ + exit(ERROR_USAGE); + } + } + return(0); +} diff -r 7ac866c3baf6 -r a3f48378658d autocal/vcxomain.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autocal/vcxomain.c Mon May 22 20:51:55 2017 +0000 @@ -0,0 +1,23 @@ +/* + * This module contains the main() function for fc-rfcal-vcxo. + */ + +#include +#include +#include +#include +#include "stdband.h" + +#define VCXOCAL_BAND 900 +#define VCXOCAL_BAND_RFPW RFPW_STD_BAND(6, 0) +#define VCXOCAL_ARFCN 40 + +main(argc, argv) + char **argv; +{ + socket_pathname_options(argc, argv); + connect_rvinterf_socket(); + connect_tsid_socket(); + + +}