; ***************************************************************************
; copyright   : (C) 2023 by Martin Preuss
; email       : martin@libchipcard.de
;
; ***************************************************************************
; * This file is part of the project "AqHome".                              *
; * Please see toplevel file COPYING of that project for license details.   *
; ***************************************************************************



.equ AQHOME_VALUETYPE_TEMP     = 1
.equ AQHOME_VALUETYPE_HUMIDITY = 2


; module type ids for firmware header
.equ AQHOME_FW_MODULE_TIMER     = 1
.equ AQHOME_FW_MODULE_COM       = 2
.equ AQHOME_FW_MODULE_LED       = 3
.equ AQHOME_FW_MODULE_TWIMASTER = 4
.equ AQHOME_FW_MODULE_LCD       = 5
.equ AQHOME_FW_MODULE_SI7021    = 6


.equ AQHOME_FW_TYPE_ATT84_BASE  = 0
.equ AQHOME_FW_TYPE_ATT84_TEMP1 = 1


.equ AQHOME_FW_START_ADDRESS_MAIN = 0x0500


; ---------------------------------------------------------------------------
; EEPROM positions


.equ EEPROM_OFFS_UUID    = 0    ; 4 bytes (occupy total of 8 bytes for extensibility)
.equ EEPROM_OFFS_COMADDR = 8    ; 1 byte
.equ EEPROM_OFFS_SEED    = 10   ; 2 bytes


