From e0d392c895319113ac6c1a8233890851a8597879 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sat, 4 Feb 2023 00:56:29 +0100 Subject: [PATCH] Moved protocol stuff into comproto.asm. --- avr/att84_temp1.asm | 16 +- avr/com.asm | 311 ------------------------------------ avr/comproto.asm | 382 ++++++++++++++++++++++++++++++++++++++++++++ avr/twimaster.asm | 4 +- 4 files changed, 395 insertions(+), 318 deletions(-) create mode 100644 avr/comproto.asm diff --git a/avr/att84_temp1.asm b/avr/att84_temp1.asm index 0dd3908..5df1b63 100644 --- a/avr/att84_temp1.asm +++ b/avr/att84_temp1.asm @@ -139,6 +139,11 @@ reti ; USI_STR reti ; USI_OVF +.org 0x40 +; --------------------------------------------------------------------------- +; Node Id (not overwritten when updating system) + +nodeUid: .db 0, 0, 0, 0, 0, 0, 0, 0 ; *************************************************************************** @@ -148,6 +153,7 @@ .include "timer.asm" .include "led.asm" .include "com.asm" +.include "comproto.asm" .include "twimaster.asm" .include "lcd.asm" ;.include "bmp280.asm" @@ -180,7 +186,7 @@ ledA3Sram: .byte LED_SRAM_SIZE ledA3Flash: .db DDRA+0x20, PORTA+0x20, PINA+0x20, (1<