avr: added forwarder app.

simpler than router app, just for forwarding messages between interfaces.
mainly used by t03.
This commit is contained in:
Martin Preuss
2025-08-25 14:12:39 +02:00
parent 64854506e5
commit 41843cbab9
6 changed files with 402 additions and 1 deletions

View File

@@ -37,6 +37,10 @@ initApps:
bigcall AppHub_Init
#endif
#ifdef APPS_FORWARDER
bigcall AppForwarder_Init
#endif
#ifdef APPS_MOTION
bigcall AppMotion_Init
#endif
@@ -79,7 +83,17 @@ runApps:
#endif
#ifdef APPS_HUB
bigcall AppHub_Run
push r16
bigcall AppHub_Run
pop r16
sbci r16, 0 ; decrease r16 only if CFLAG set
#endif
#ifdef APPS_FORWARDER
push r16
bigcall AppForwarder_Run
pop r16
sbci r16, 0 ; decrease r16 only if CFLAG set
#endif
; add more modules here

View File

@@ -336,6 +336,14 @@
#endif
#ifdef APPS_FORWARDER
.include "apps/forwarder/main.asm"
.include "modules/network/msg/reboot-r.asm"
.include "modules/network/msg/reboot-d.asm"
.include "modules/network/msg/pong-w.asm"
#endif
#ifdef APPS_REPORTSENSORS
.include "apps/reportsensors/data.asm"
.include "apps/reportsensors/main.asm"

View File

@@ -250,6 +250,10 @@ sysOnEveryDay:
bigcall AppRouter_EveryDay
#endif
#ifdef APPS_FORWARDER
bigcall AppForwarder_EveryDay
#endif
bigjmp onEveryDay
; @end