49 lines
1.1 KiB
NASM
49 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_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
|
|
|