Files
aqhomecontrol/avr/devices/all/apps_100ms.asm
Martin Preuss 88a66f6822 avr: add complex fan controller app with base classes to be used by other apps as well.
- add modules
  - holdtimer (keep actor running while triggered)
  - triggeraction (connect actor with holdtimer)
- add app fan_controller
  - uses the modules mentioned above to turn on/off fans in connection
    with e.g. motion sensor nodes
2026-08-06 00:05:50 +02:00

55 lines
1.1 KiB
NASM

; ***************************************************************************
; copyright : (C) 2026 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. *
; ***************************************************************************
#ifndef AQH_AVR_DEVICES_ALL_APPS_100MS_ASM
#define AQH_AVR_DEVICES_ALL_APPS_100MS_ASM
; ***************************************************************************
; code
.cseg
; ---------------------------------------------------------------------------
; @routine appsOnEvery100ms
;
; Called every 100ms. No arguments, no results.
appsOnEvery100ms:
#ifdef APPS_NETWORK
ldi yl, LOW(netInterfaceData)
ldi yh, HIGH(netInterfaceData)
bigcall AppNetwork_Every100ms
#endif
#ifdef APPS_MOTION
bigcall AppMotion_Every100ms
#endif
#ifdef APPS_DOOR
bigcall AppDoor_Every100ms
#endif
#ifdef APPS_FANCONTROL
bigcall AppFanControl_OnEveryTick
#endif
ret
; @end
#endif