Files
aqhomecontrol/avr/devices/all/apps_init.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

82 lines
1.5 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_INIT_ASM
#define AQH_AVR_DEVICES_ALL_APPS_INIT_ASM
; ***************************************************************************
; code
.cseg
; ---------------------------------------------------------------------------
; @routine appsInit
;
; Call init functions of the used apps. Add your routine calls here.
appsInit:
#ifdef APPS_NETWORK
ldi yl, LOW(netInterfaceData)
ldi yh, HIGH(netInterfaceData)
bigcall AppNetwork_Init
#endif
#ifdef APPS_ROUTER
bigcall AppRouter_Init
#endif
#ifdef APPS_HUB
bigcall AppHub_Init
#endif
#ifdef APPS_FORWARDER
bigcall AppForwarder_Init
#endif
#ifdef APPS_MOTION
bigcall AppMotion_Init
#endif
#ifdef APPS_DOOR
bigcall AppDoor_Init
#endif
#ifdef APPS_REPORTSENSORS
bigcall AppReportSensors_Init
#endif
#ifdef APPS_STATS
bigcall AppStats_Init
#endif
#ifdef APPS_MA_LIGHT
bigcall AppMotionLight_Init
#endif
#ifdef APPS_CO2WATCH
bigcall AppCo2Watch_Init
#endif
#ifdef APPS_FANCONTROL
bigcall AppFanControl_Init
#endif
; done
ret
; @end
#endif