From 80bd85e97b8ffa2ebf800e6239d412686c41d2bf Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 22 Mar 2019 08:52:22 +0100 Subject: [PATCH] Cleanup --- config.h | 6 ++++++ device.h | 6 ++++++ main.c | 6 ++++++ protocol/AX25.c | 6 ++++++ protocol/AX25.h | 6 ++++++ protocol/HDLC.h | 6 ++++++ protocol/KISS.c | 10 ++++++++++ protocol/KISS.h | 6 ++++++ protocol/SimpleSerial.c | 6 ++++++ protocol/SimpleSerial.h | 6 ++++++ util/CRC-CCIT.c | 6 ++++++ util/CRC-CCIT.h | 6 ++++++ util/FIFO.h | 6 ++++++ util/constants.h | 6 ++++++ util/time.h | 6 ++++++ 15 files changed, 94 insertions(+) diff --git a/config.h b/config.h index 86203cf..dc256aa 100755 --- a/config.h +++ b/config.h @@ -1,3 +1,9 @@ +// Copyright Mark Qvist / unsigned.io +// https://unsigned.io/microaprs +// +// Licensed under GPL-3.0. For full info, +// read the LICENSE file. + #ifndef CONFIG_H #define CONFIG_H diff --git a/device.h b/device.h index 499ae09..ff4c863 100755 --- a/device.h +++ b/device.h @@ -1,3 +1,9 @@ +// Copyright Mark Qvist / unsigned.io +// https://unsigned.io/microaprs +// +// Licensed under GPL-3.0. For full info, +// read the LICENSE file. + #include "util/constants.h" #ifndef DEVICE_CONFIGURATION diff --git a/main.c b/main.c index 8582f47..33d366d 100755 --- a/main.c +++ b/main.c @@ -1,3 +1,9 @@ +// Copyright Mark Qvist / unsigned.io +// https://unsigned.io/microaprs +// +// Licensed under GPL-3.0. For full info, +// read the LICENSE file. + #include #include diff --git a/protocol/AX25.c b/protocol/AX25.c index 5e4b0bb..0adbdf2 100755 --- a/protocol/AX25.c +++ b/protocol/AX25.c @@ -1,3 +1,9 @@ +// Copyright Mark Qvist / unsigned.io +// https://unsigned.io/microaprs +// +// Licensed under GPL-3.0. For full info, +// read the LICENSE file. +// // Based on work by Francesco Sacchi #include diff --git a/protocol/AX25.h b/protocol/AX25.h index 82ac210..621db6f 100755 --- a/protocol/AX25.h +++ b/protocol/AX25.h @@ -1,3 +1,9 @@ +// Copyright Mark Qvist / unsigned.io +// https://unsigned.io/microaprs +// +// Licensed under GPL-3.0. For full info, +// read the LICENSE file. + #ifndef PROTOCOL_AX25_H #define PROTOCOL_AX25_H diff --git a/protocol/HDLC.h b/protocol/HDLC.h index 3ee0808..85584d8 100755 --- a/protocol/HDLC.h +++ b/protocol/HDLC.h @@ -1,3 +1,9 @@ +// Copyright Mark Qvist / unsigned.io +// https://unsigned.io/microaprs +// +// Licensed under GPL-3.0. For full info, +// read the LICENSE file. + #ifndef PROTOCOL_HDLC_H #define PROTOCOL_HDLC_H diff --git a/protocol/KISS.c b/protocol/KISS.c index 0f6213e..c5c95f6 100755 --- a/protocol/KISS.c +++ b/protocol/KISS.c @@ -1,3 +1,9 @@ +// Copyright Mark Qvist / unsigned.io +// https://unsigned.io/microaprs +// +// Licensed under GPL-3.0. For full info, +// read the LICENSE file. + #include #include @@ -27,7 +33,11 @@ void kiss_init(AX25Ctx *ax25, Afsk *afsk, Serial *ser) { FLOWCONTROL = false; } +//size_t decodes = 0; void kiss_messageCallback(AX25Ctx *ctx) { + // decodes++; + // printf("%d\r\n", decodes); + fputc(FEND, &serial->uart0); fputc(0x00, &serial->uart0); for (unsigned i = 0; i < ctx->frame_len-2; i++) { diff --git a/protocol/KISS.h b/protocol/KISS.h index b762772..8c581e6 100755 --- a/protocol/KISS.h +++ b/protocol/KISS.h @@ -1,3 +1,9 @@ +// Copyright Mark Qvist / unsigned.io +// https://unsigned.io/microaprs +// +// Licensed under GPL-3.0. For full info, +// read the LICENSE file. + #ifndef _PROTOCOL_KISS #define _PROTOCOL_KISS 0x02 diff --git a/protocol/SimpleSerial.c b/protocol/SimpleSerial.c index 03cc2a0..b0c2e4f 100755 --- a/protocol/SimpleSerial.c +++ b/protocol/SimpleSerial.c @@ -1,3 +1,9 @@ +// Copyright Mark Qvist / unsigned.io +// https://unsigned.io/microaprs +// +// Licensed under GPL-3.0. For full info, +// read the LICENSE file. + #include "device.h" #if SERIAL_PROTOCOL == PROTOCOL_SIMPLE_SERIAL diff --git a/protocol/SimpleSerial.h b/protocol/SimpleSerial.h index d71546d..38de1d1 100755 --- a/protocol/SimpleSerial.h +++ b/protocol/SimpleSerial.h @@ -1,3 +1,9 @@ +// Copyright Mark Qvist / unsigned.io +// https://unsigned.io/microaprs +// +// Licensed under GPL-3.0. For full info, +// read the LICENSE file. + #ifndef _PROTOCOL_SIMPLE_SERIAL #define _PROTOCOL_SIMPLE_SERIAL 0x01 #include "AX25.h" diff --git a/util/CRC-CCIT.c b/util/CRC-CCIT.c index df468b2..8a58c2c 100755 --- a/util/CRC-CCIT.c +++ b/util/CRC-CCIT.c @@ -1,3 +1,9 @@ +// Copyright Mark Qvist / unsigned.io +// https://unsigned.io/microaprs +// +// Licensed under GPL-3.0. For full info, +// read the LICENSE file. + #include "CRC-CCIT.h" const uint16_t crc_ccit_table[256] PROGMEM = { diff --git a/util/CRC-CCIT.h b/util/CRC-CCIT.h index a354ba7..00e900b 100755 --- a/util/CRC-CCIT.h +++ b/util/CRC-CCIT.h @@ -1,3 +1,9 @@ +// Copyright Mark Qvist / unsigned.io +// https://unsigned.io/microaprs +// +// Licensed under GPL-3.0. For full info, +// read the LICENSE file. + // CRC-CCIT Implementation based on work by Francesco Sacchi #ifndef CRC_CCIT_H diff --git a/util/FIFO.h b/util/FIFO.h index ee1abf8..b006800 100755 --- a/util/FIFO.h +++ b/util/FIFO.h @@ -1,3 +1,9 @@ +// Copyright Mark Qvist / unsigned.io +// https://unsigned.io/microaprs +// +// Licensed under GPL-3.0. For full info, +// read the LICENSE file. + #ifndef UTIL_FIFO_H #define UTIL_FIFO_H diff --git a/util/constants.h b/util/constants.h index 6a16a68..7491e10 100755 --- a/util/constants.h +++ b/util/constants.h @@ -1,3 +1,9 @@ +// Copyright Mark Qvist / unsigned.io +// https://unsigned.io/microaprs +// +// Licensed under GPL-3.0. For full info, +// read the LICENSE file. + #define PROTOCOL_KISS 0x01 #define PROTOCOL_SIMPLE_SERIAL 0x02 diff --git a/util/time.h b/util/time.h index ca5059a..0bf9c65 100755 --- a/util/time.h +++ b/util/time.h @@ -1,3 +1,9 @@ +// Copyright Mark Qvist / unsigned.io +// https://unsigned.io/microaprs +// +// Licensed under GPL-3.0. For full info, +// read the LICENSE file. + #ifndef UTIL_TIME_H #define UTIL_TIME_H