r05: no longer use APPS_NETWORK.

Implemented some of those features in APP_ROUTER like PING, REBOOT.
This commit is contained in:
Martin Preuss
2025-07-06 20:21:51 +02:00
parent 1824e8ccdf
commit 6ecc1721b0
5 changed files with 136 additions and 7 deletions

View File

@@ -89,6 +89,10 @@ mainAppsOnPacketReceived:
bigcall AppNetwork_HandleMsg
#endif
#ifdef APPS_ROUTER
bigcall AppRouter_HandleMsg
#endif
#ifdef APPS_MA_LIGHT
bigcall AppMotionLight_OnPacketReceived
#endif

View File

@@ -244,6 +244,9 @@
#ifdef APPS_ROUTER
.include "apps/router/main.asm"
.include "modules/network/msg/reboot-d.asm"
.include "modules/network/msg/reboot-r.asm"
.include "modules/network/msg/pong-w.asm"
#endif

View File

@@ -186,6 +186,10 @@ sysOnEveryDay:
bigcall AppNetwork_EveryDay
#endif
#ifdef APPS_ROUTER
bigcall AppRouter_EveryDay
#endif
bigjmp onEveryDay
; @end

View File

@@ -55,6 +55,7 @@
#define MAIN_WITHOUT_MSG_HANDLING ; message handling in AppRouter!
#define APP_STATS_NETDEV2 ; send stats for 2nd device
#define MODULES_CLOCK
#define MODULES_LED_SIMPLE
@@ -70,7 +71,7 @@
#define MODULES_NETWORK
#define MODULES_COMONUART0
#define MODULES_COMONUART1
#define APPS_NETWORK
;#define APPS_NETWORK
#define APPS_ROUTER
@@ -168,18 +169,13 @@ onSystemStart:
onEvery100ms:
onEverySecond:
onEveryMinute:
onEveryHour:
onEveryDay:
ret
onEveryMinute:
ret
; @end
; ---------------------------------------------------------------------------
; @routine onEveryLoop
;