Files
aqhomecontrol/avr/devices/all/apps_100ms.asm
Martin Preuss 67be74d2ac avr: move timing control from ma_light to sk6812.
This allows for better control over the LED strip. We can now trigger the
LED strip externally (e.g. by setting a new RGBW value).
2026-03-24 23:13:28 +01:00

51 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
ret
; @end
#endif