From ee94d8a5830636bc6c341b783e7f8c9d6bbe64c0 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Fri, 13 Sep 2024 01:08:07 +0200 Subject: [PATCH] avr: finalized label names. --- avr/devices/n00/n00_main.asm | 10 ++--- avr/devices/n06/n06_main.asm | 10 ++--- avr/devices/n11/n11_main.asm | 72 ++++++++++++++++++++++++++++-------- avr/devices/n12/n12_main.asm | 52 +++++++++++++++++--------- avr/modules/si7021/main.asm | 4 +- 5 files changed, 104 insertions(+), 44 deletions(-) diff --git a/avr/devices/n00/n00_main.asm b/avr/devices/n00/n00_main.asm index 11dd1dd..18ef59f 100644 --- a/avr/devices/n00/n00_main.asm +++ b/avr/devices/n00/n00_main.asm @@ -70,12 +70,12 @@ ; --------------------------------------------------------------------------- ; defines for values -.equ VALUE_ID_TEMP1 = 0x01 -.equ VALUE_ID_HUM1 = 0x02 +.equ VALUE_ID_SI7021_TEMP = 0x01 +.equ VALUE_ID_SI7021_HUM = 0x02 -.equ VALUE_ID_ADC = 0x03 -.equ VALUE_ID_REED1 = 0x04 -.equ VALUE_ID_REED2 = 0x05 +.equ VALUE_ID_ADC = 0x03 +.equ VALUE_ID_REED1 = 0x04 +.equ VALUE_ID_REED2 = 0x05 diff --git a/avr/devices/n06/n06_main.asm b/avr/devices/n06/n06_main.asm index 5a942bf..e76a440 100644 --- a/avr/devices/n06/n06_main.asm +++ b/avr/devices/n06/n06_main.asm @@ -70,12 +70,12 @@ ; --------------------------------------------------------------------------- ; defines for values -.equ VALUE_ID_TEMP1 = 0x01 -.equ VALUE_ID_HUM1 = 0x02 +.equ VALUE_ID_SI7021_TEMP = 0x01 +.equ VALUE_ID_SI7021_HUM = 0x02 -.equ VALUE_ID_ADC = 0x03 -.equ VALUE_ID_REED1 = 0x04 -.equ VALUE_ID_REED2 = 0x05 +.equ VALUE_ID_ADC = 0x03 +.equ VALUE_ID_REED1 = 0x04 +.equ VALUE_ID_REED2 = 0x05 diff --git a/avr/devices/n11/n11_main.asm b/avr/devices/n11/n11_main.asm index f8a77fa..1e2d887 100644 --- a/avr/devices/n11/n11_main.asm +++ b/avr/devices/n11/n11_main.asm @@ -71,14 +71,16 @@ ; --------------------------------------------------------------------------- ; defines for values -.equ VALUE_ID_TEMP1 = 0x01 -.equ VALUE_ID_HUM1 = 0x02 +.equ VALUE_ID_SI7021_TEMP = 0x01 +.equ VALUE_ID_SI7021_HUM = 0x02 .equ VALUE_ID_ADC = 0x03 .equ VALUE_ID_REED1 = 0x04 .equ VALUE_ID_REED2 = 0x05 .equ VALUE_ID_DS18B20_TEMP = 0x06 +.equ VALUE_ID_REED_CONF = 0x81 + ; *************************************************************************** @@ -216,10 +218,11 @@ sramTimerEnqueueValues: .byte 2 .cseg +#ifdef MODULES_LED ledA3Flash: .db DDRA+0x20, PORTA+0x20, PINA+0x20, (1<