diff --git a/KISS.h b/KISS.h new file mode 100644 index 0000000..ea31251 --- /dev/null +++ b/KISS.h @@ -0,0 +1,13 @@ +#define FEND 0xC0 +#define FESC 0xDB +#define TFEND 0xDC +#define TFESC 0xDD + +#define CMD_UNKNOWN 0xFE +#define CMD_DATA 0x00 +#define CMD_PREAMBLE 0x01 +#define CMD_P 0x02 +#define CMD_SLOTTIME 0x03 +#define CMD_TXTAIL 0x04 +#define CMD_FULLDUPLEX 0x05 +#define CMD_SETHARDWARE 0x06 \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a25bd7a --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Mark Qvist / unsigned.io + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/makefile b/makefile new file mode 100644 index 0000000..3db1134 --- /dev/null +++ b/makefile @@ -0,0 +1,19 @@ +.DEFAULT_GOAL := all +.PHONY: all clean install + +compiler = gcc +flags = -lm + +all: tncattach + +clean: + @echo "Cleaning tncattach build..." + rm tncattach + +tncattach: + @echo "Making tncattach..." + @echo "Compiling with: ${compiler}" + ${compiler} ${flags} tncattach.c -o tncattach + +install: all + @echo "Installing tncattach..." \ No newline at end of file diff --git a/tncattach.c b/tncattach.c new file mode 100644 index 0000000..52c0875 --- /dev/null +++ b/tncattach.c @@ -0,0 +1,5 @@ +#include "KISS.h" + +int main() { + return 0; +} \ No newline at end of file