Advertisement
uaa

files to build rpi-dmonitor wip branch (take 2)

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