This commit is contained in:
Mark Qvist 2019-03-22 08:52:22 +01:00
parent d03564928b
commit 80bd85e97b
15 changed files with 94 additions and 0 deletions

View File

@ -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

View File

@ -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
View File

@ -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>

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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++) {

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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 = {

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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