Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/Makefile b/Makefile
- new file mode 100644
- index 0000000..36b7f94
- --- /dev/null
- +++ b/Makefile
- @@ -0,0 +1,53 @@
- +# SPDX-License-Identifier: Unlicense OR WTFPL
- +
- +VER="01.60"
- +
- +CC=cc
- +
- +CFLAGS = -Og -Wall -I/usr/local/include \
- + -DPACKAGE_VERSION='$(VER)' -DVERSION='$(VER)'
- +LDFLAGS = -L/usr/local/lib -lusb -lwiringPi -lwiringPiDev -lcrypto
- +
- +ALL = dmonitor repeater_mon repeater_mon_light \
- + repeater_scan rpt_conn dstar_ntpdate
- +
- +DMONITOR_OBJ = main.o dmonitor_utils.o init.o dmonitor_cmd.o \
- + inet_read.o rig_read.o dvap_utils.o dvap.o \
- + dvap_conf.o dvmega.o dvmega_conf.o dstar_data.o \
- + crc.o send_msg.o dvmega_utils.o node_conf.o \
- + node_utils.o from_node.o send_node.o PICinfo.o \
- + lcd.o
- +REPEATER_MON_OBJ = repeater_mon.o
- +REPEATER_MON_LIGHT_OBJ = repeater_mon_light.o
- +REPEATER_SCAN_OBJ = repeater_scan.o
- +RPT_CONN_OBJ = rpt_conn.o rpt_conn_utils.o rpt_conn_dvap.o \
- + rpt_dvap_utils.o rpt_conn_dvmega.o \
- + rpt_dvmega_utils.o rpt_conn_rig.o \
- + rpt_node_utils.o rpt_conn_send_msg.o \
- + rpt_conn_scan.o crc.o rpt_conn_lcd.o
- +DSTAR_NTPDATE_OBJ = dstar_ntpdate.o
- +
- +ALL: $(ALL)
- +
- +clean:
- + $(RM) -rf $(ALL) $(DMONITOR_OBJ) $(REPEATER_MON_OBJ) \
- + $(REPEATER_MON_LIGHT_OBJ) $(REPEATER_SCAN_OBJ) \
- + $(RPT_CONN_OBJ) $(DSTAR_NTPDATE_OBJ)
- +
- +dmonitor: $(DMONITOR_OBJ)
- + $(CC) $(DMONITOR_OBJ) $(LDFLAGS) -o $@
- +
- +repeater_mon: $(REPEATER_MON_OBJ)
- + $(CC) $(REPEATER_MON_OBJ) $(LDFLAGS) -o $@
- +
- +repeater_mon_light: $(REPEATER_MON_LIGHT_OBJ)
- + $(CC) $(REPEATER_MON_LIGHT_OBJ) $(LDFLAGS) -o $@
- +
- +repeater_scan: $(REPEATER_SCAN_OBJ)
- + $(CC) $(REPEATER_SCAN_OBJ) $(LDFLAGS) -o $@
- +
- +rpt_conn: $(RPT_CONN_OBJ)
- + $(CC) $(RPT_CONN_OBJ) $(LDFLAGS) -o $@
- +
- +dstar_ntpdate: $(DSTAR_NTPDATE_OBJ)
- + $(CC) $(DSTAR_NTPDATE_OBJ) $(LDFLAGS) -o $@
- diff --git a/dmonitor.h b/dmonitor.h
- index 3c244c9..c5f242a 100644
- --- a/dmonitor.h
- +++ b/dmonitor.h
- @@ -30,7 +30,6 @@
- #include <usb.h>
- #include "dstar.h"
- #include "node.h"
- -#include "config.h"
- //#define _DEBUG_DVMEGA
- //#define _SPECIFICATIO_CHECK
- @@ -75,7 +74,7 @@ void rig_fifo_check (void);
- int sig_term;
- sigset_t save_sig;
- -sigset_t sigset;
- +//sigset_t sigset;
- fd_set read_set;
- fd_set fd_save;
- diff --git a/node.h b/node.h
- new file mode 100644
- index 0000000..9f9fd45
- --- /dev/null
- +++ b/node.h
- @@ -0,0 +1,37 @@
- +// SPDX-License-Identifier: Unlicense OR WTFPL
- +
- +#define AlterHeader 0x00
- +#define AutoRXDetect 0x00
- +#define COS_OnOff 0x00
- +#define COS_SW 0x00
- +#define CRC_ERROR 0x00
- +#define CRC_SW 0x00
- +#define GET_AD_STATUS 0x00
- +#define GET_DATA 0x00
- +#define GET_DelayTime 0x00
- +#define GET_HEADER 0x00
- +#define GET_INVERT_STATUS 0x00
- +#define GET_MODE 0x00
- +#define GET_MODE2 0x00
- +#define GET_REMAINSPACE 0x00
- +#define GET_SERIAL_NO 0x00
- +#define GET_USERID 0x00
- +#define GET_VERSION 0x00
- +#define HeaderDecodeDone 0x00
- +#define HeaderGen 0x00
- +#define OFF 0x00
- +#define ON 0x00
- +#define PTT_OnOff 0x00
- +#define PUT_DATA 0x00
- +#define RX_INV 0x00
- +#define SET_DelayTime 0x00
- +#define SET_FLAGS 0x00
- +#define SET_MyCALL 0x00
- +#define SET_MyCALL2 0x00
- +#define SET_PTT 0x00
- +#define SET_RPT1CALL 0x00
- +#define SET_RPT2CALL 0x00
- +#define SET_RX_INVERT 0x00
- +#define SET_TX_INVERT 0x00
- +#define SET_YourCALL 0x00
- +#define TX_INV 0x00
- diff --git a/repeater_mon.h b/repeater_mon.h
- index 0d3bf09..a09b7e6 100644
- --- a/repeater_mon.h
- +++ b/repeater_mon.h
- @@ -12,7 +12,6 @@
- #include <time.h>
- #include <signal.h>
- #include <errno.h>
- -#include "config.h"
- #define HOLE_PUNCHD_SERVER "hole-punchd.d-star.info"
- #define JSON_PORT 30011 // json port
- diff --git a/rpt_conn.h b/rpt_conn.h
- index f7e1b74..1a29a0a 100644
- --- a/rpt_conn.h
- +++ b/rpt_conn.h
- @@ -28,7 +28,6 @@
- #include <lcd.h>
- #include "node.h"
- #include "dstar.h"
- -#include "config.h"
- #define GW 0x80
- #define ZR 0x40
- @@ -56,7 +55,7 @@ int sig_term;
- char connect_call[8];
- sigset_t save_sig;
- -sigset_t sigset;
- +//sigset_t sigset;
- fd_set read_set;
- fd_set fd_save;
- diff --git a/rpt_conn_lcd.c b/rpt_conn_lcd.c
- new file mode 100644
- index 0000000..61a1713
- --- /dev/null
- +++ b/rpt_conn_lcd.c
- @@ -0,0 +1,4 @@
- +// SPDX-License-Identifier: Unlicense OR WTFPL
- +
- +void lcd_init(void) {}
- +void lcd_write(void) {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement