Advertisement
uaa

files to build rpi-dmonitor wip branch (take 3), say goodbye to autoconf!

uaa
Oct 10th, 2020
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.23 KB | None | 0 0
  1. diff --git a/Makefile b/Makefile
  2. new file mode 100644
  3. index 0000000..36b7f94
  4. --- /dev/null
  5. +++ b/Makefile
  6. @@ -0,0 +1,53 @@
  7. +# SPDX-License-Identifier: Unlicense OR WTFPL
  8. +
  9. +VER="01.60"
  10. +
  11. +CC=cc
  12. +
  13. +CFLAGS = -Og -Wall -I/usr/local/include \
  14. + -DPACKAGE_VERSION='$(VER)' -DVERSION='$(VER)'
  15. +LDFLAGS = -L/usr/local/lib -lusb -lwiringPi -lwiringPiDev -lcrypto
  16. +
  17. +ALL = dmonitor repeater_mon repeater_mon_light \
  18. + repeater_scan rpt_conn dstar_ntpdate
  19. +
  20. +DMONITOR_OBJ = main.o dmonitor_utils.o init.o dmonitor_cmd.o \
  21. + inet_read.o rig_read.o dvap_utils.o dvap.o \
  22. + dvap_conf.o dvmega.o dvmega_conf.o dstar_data.o \
  23. + crc.o send_msg.o dvmega_utils.o node_conf.o \
  24. + node_utils.o from_node.o send_node.o PICinfo.o \
  25. + lcd.o
  26. +REPEATER_MON_OBJ = repeater_mon.o
  27. +REPEATER_MON_LIGHT_OBJ = repeater_mon_light.o
  28. +REPEATER_SCAN_OBJ = repeater_scan.o
  29. +RPT_CONN_OBJ = rpt_conn.o rpt_conn_utils.o rpt_conn_dvap.o \
  30. + rpt_dvap_utils.o rpt_conn_dvmega.o \
  31. + rpt_dvmega_utils.o rpt_conn_rig.o \
  32. + rpt_node_utils.o rpt_conn_send_msg.o \
  33. + rpt_conn_scan.o crc.o rpt_conn_lcd.o
  34. +DSTAR_NTPDATE_OBJ = dstar_ntpdate.o
  35. +
  36. +ALL: $(ALL)
  37. +
  38. +clean:
  39. + $(RM) -rf $(ALL) $(DMONITOR_OBJ) $(REPEATER_MON_OBJ) \
  40. + $(REPEATER_MON_LIGHT_OBJ) $(REPEATER_SCAN_OBJ) \
  41. + $(RPT_CONN_OBJ) $(DSTAR_NTPDATE_OBJ)
  42. +
  43. +dmonitor: $(DMONITOR_OBJ)
  44. + $(CC) $(DMONITOR_OBJ) $(LDFLAGS) -o $@
  45. +
  46. +repeater_mon: $(REPEATER_MON_OBJ)
  47. + $(CC) $(REPEATER_MON_OBJ) $(LDFLAGS) -o $@
  48. +
  49. +repeater_mon_light: $(REPEATER_MON_LIGHT_OBJ)
  50. + $(CC) $(REPEATER_MON_LIGHT_OBJ) $(LDFLAGS) -o $@
  51. +
  52. +repeater_scan: $(REPEATER_SCAN_OBJ)
  53. + $(CC) $(REPEATER_SCAN_OBJ) $(LDFLAGS) -o $@
  54. +
  55. +rpt_conn: $(RPT_CONN_OBJ)
  56. + $(CC) $(RPT_CONN_OBJ) $(LDFLAGS) -o $@
  57. +
  58. +dstar_ntpdate: $(DSTAR_NTPDATE_OBJ)
  59. + $(CC) $(DSTAR_NTPDATE_OBJ) $(LDFLAGS) -o $@
  60. diff --git a/dmonitor.h b/dmonitor.h
  61. index 3c244c9..c5f242a 100644
  62. --- a/dmonitor.h
  63. +++ b/dmonitor.h
  64. @@ -30,7 +30,6 @@
  65. #include <usb.h>
  66. #include "dstar.h"
  67. #include "node.h"
  68. -#include "config.h"
  69.  
  70. //#define _DEBUG_DVMEGA
  71. //#define _SPECIFICATIO_CHECK
  72. @@ -75,7 +74,7 @@ void rig_fifo_check (void);
  73. int sig_term;
  74.  
  75. sigset_t save_sig;
  76. -sigset_t sigset;
  77. +//sigset_t sigset;
  78.  
  79. fd_set read_set;
  80. fd_set fd_save;
  81. diff --git a/node.h b/node.h
  82. new file mode 100644
  83. index 0000000..9f9fd45
  84. --- /dev/null
  85. +++ b/node.h
  86. @@ -0,0 +1,37 @@
  87. +// SPDX-License-Identifier: Unlicense OR WTFPL
  88. +
  89. +#define AlterHeader 0x00
  90. +#define AutoRXDetect 0x00
  91. +#define COS_OnOff 0x00
  92. +#define COS_SW 0x00
  93. +#define CRC_ERROR 0x00
  94. +#define CRC_SW 0x00
  95. +#define GET_AD_STATUS 0x00
  96. +#define GET_DATA 0x00
  97. +#define GET_DelayTime 0x00
  98. +#define GET_HEADER 0x00
  99. +#define GET_INVERT_STATUS 0x00
  100. +#define GET_MODE 0x00
  101. +#define GET_MODE2 0x00
  102. +#define GET_REMAINSPACE 0x00
  103. +#define GET_SERIAL_NO 0x00
  104. +#define GET_USERID 0x00
  105. +#define GET_VERSION 0x00
  106. +#define HeaderDecodeDone 0x00
  107. +#define HeaderGen 0x00
  108. +#define OFF 0x00
  109. +#define ON 0x00
  110. +#define PTT_OnOff 0x00
  111. +#define PUT_DATA 0x00
  112. +#define RX_INV 0x00
  113. +#define SET_DelayTime 0x00
  114. +#define SET_FLAGS 0x00
  115. +#define SET_MyCALL 0x00
  116. +#define SET_MyCALL2 0x00
  117. +#define SET_PTT 0x00
  118. +#define SET_RPT1CALL 0x00
  119. +#define SET_RPT2CALL 0x00
  120. +#define SET_RX_INVERT 0x00
  121. +#define SET_TX_INVERT 0x00
  122. +#define SET_YourCALL 0x00
  123. +#define TX_INV 0x00
  124. diff --git a/repeater_mon.h b/repeater_mon.h
  125. index 0d3bf09..a09b7e6 100644
  126. --- a/repeater_mon.h
  127. +++ b/repeater_mon.h
  128. @@ -12,7 +12,6 @@
  129. #include <time.h>
  130. #include <signal.h>
  131. #include <errno.h>
  132. -#include "config.h"
  133.  
  134. #define HOLE_PUNCHD_SERVER "hole-punchd.d-star.info"
  135. #define JSON_PORT 30011 // json port
  136. diff --git a/rpt_conn.h b/rpt_conn.h
  137. index f7e1b74..1a29a0a 100644
  138. --- a/rpt_conn.h
  139. +++ b/rpt_conn.h
  140. @@ -28,7 +28,6 @@
  141. #include <lcd.h>
  142. #include "node.h"
  143. #include "dstar.h"
  144. -#include "config.h"
  145.  
  146. #define GW 0x80
  147. #define ZR 0x40
  148. @@ -56,7 +55,7 @@ int sig_term;
  149. char connect_call[8];
  150.  
  151. sigset_t save_sig;
  152. -sigset_t sigset;
  153. +//sigset_t sigset;
  154.  
  155. fd_set read_set;
  156. fd_set fd_save;
  157. diff --git a/rpt_conn_lcd.c b/rpt_conn_lcd.c
  158. new file mode 100644
  159. index 0000000..61a1713
  160. --- /dev/null
  161. +++ b/rpt_conn_lcd.c
  162. @@ -0,0 +1,4 @@
  163. +// SPDX-License-Identifier: Unlicense OR WTFPL
  164. +
  165. +void lcd_init(void) {}
  166. +void lcd_write(void) {}
  167.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement