avr: adapted ds18b20 module to latest changes.

This commit is contained in:
Martin Preuss
2025-05-01 00:57:22 +02:00
parent 6ce1aac1d7
commit ab9c177793
3 changed files with 295 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
; ***************************************************************************
; copyright : (C) 2025 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. *
; ***************************************************************************
.cseg
; ---------------------------------------------------------------------------
; @routine Ds18b20_SendTemperature
Ds18b20_SendTemperature:
rcall Ds18b20_GetValue
brcc Ds18b20_SendTemperature_end
ldi r17, VALUE_ID_DS18B20_TEMP ; value id
ldi r22, AQHOME_VALUETYPE_TEMP
rcall Main_SendValueReport
Ds18b20_SendTemperature_end:
ret
; @end