mirror of
				https://github.com/markqvist/tncattach.git
				synced 2025-11-03 13:30:33 -05:00 
			
		
		
		
	Initial commit
This commit is contained in:
		
							parent
							
								
									0c450816e3
								
							
						
					
					
						commit
						a91ab8e5ea
					
				
							
								
								
									
										13
									
								
								KISS.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								KISS.h
									
									
									
									
									
										Normal file
									
								
							@ -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
 | 
				
			||||||
							
								
								
									
										21
									
								
								LICENSE
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								LICENSE
									
									
									
									
									
										Normal file
									
								
							@ -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.
 | 
				
			||||||
							
								
								
									
										19
									
								
								makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								makefile
									
									
									
									
									
										Normal file
									
								
							@ -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..."
 | 
				
			||||||
							
								
								
									
										5
									
								
								tncattach.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tncattach.c
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					#include "KISS.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int main() {
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user