; ***************************************************************************
; 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

#ifdef APPS_LIGHTCONTROL
  bigcall AppLightControl_OnEveryTick
#endif


  ret
; @end



#endif


