avr: cleanup handling of apps and modules in devices/all

This commit is contained in:
Martin Preuss
2026-03-16 21:37:46 +01:00
parent dbb004234f
commit 5c18f5bf9a
22 changed files with 1452 additions and 982 deletions

View File

@@ -0,0 +1,48 @@
; ***************************************************************************
; 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_MSG_ASM
#define AQH_AVR_DEVICES_ALL_APPS_MSG_ASM
; ***************************************************************************
; code
.cseg
; ---------------------------------------------------------------------------
; @routine appsOnPacketReceived
;
; Let all apps handle received message.
appsOnPacketReceived:
#ifdef APPS_NETWORK
; handle messages
ldi yl, LOW(netInterfaceData)
ldi yh, HIGH(netInterfaceData)
bigcall AppNetwork_HandleMsg
#endif
#ifdef APPS_MA_LIGHT
bigcall AppMotionLight_OnPacketReceived
#endif
; add more here
ret
; @end
#endif