Advertisement
uaa

files to build rpi-dmonitor wip branch

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