Implemented simple serial control protocol for APRS stuff.

This commit is contained in:
Mark Qvist 2014-06-18 11:40:21 +02:00
parent a667301d57
commit 5495730c92
6 changed files with 38 additions and 29 deletions

View file

@ -14,9 +14,9 @@ AX25Call dst;
AX25Call path1;
AX25Call path2;
char CALL[6] = "NOCALL";
char CALL[6] = DEFAULT_CALLSIGN;
int CALL_SSID = 0;
char DST[6] = "APZMDM";
char DST[6] = DEFAULT_DESTINATION_CALL;
int DST_SSID = 0;
char PATH1[6] = "WIDE1";
int PATH1_SSID = 1;

View file

@ -4,6 +4,9 @@
#define PROTOCOL_SIMPLE_SERIAL 0x01
#define DEFAULT_CALLSIGN "NOCALL"
#define DEFAULT_DESTINATION_CALL "APZMDM"
void ss_messageCallback(struct AX25Msg *msg, Serial *ser);
void ss_serialCallback(void *_buffer, size_t length, Serial *ser, AX25Ctx *ctx);
void ss_printSrc(bool val);