Cleanup
This commit is contained in:
parent
d03564928b
commit
80bd85e97b
6
config.h
6
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
|
||||
|
||||
|
|
6
device.h
6
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
|
||||
|
|
6
main.c
6
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 <stdbool.h>
|
||||
#include <avr/io.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.
|
||||
//
|
||||
// Based on work by Francesco Sacchi
|
||||
|
||||
#include <string.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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@ -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++) {
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue