#634 RTU gateway backplane rework

This commit is contained in:
Mikayla
2025-11-02 17:03:41 +00:00
parent 34eb16df00
commit f88dc0b5b9
4 changed files with 117 additions and 164 deletions

View File

@@ -112,14 +112,15 @@ local function main()
local units = __shared_memory.rtu_sys.units
----------------------------------------
-- start system
-- init and start system
----------------------------------------
-- modem and speaker initialization
if not backplane.init(config, __shared_memory) then return end
log.debug("boot> running uinit()")
if uinit(config, __shared_memory) then
-- init backplane peripherals
backplane.init(config, __shared_memory)
-- start UI
local message
@@ -139,11 +140,7 @@ local function main()
-- setup comms
local nic = backplane.active_nic()
smem_sys.rtu_comms = rtu.comms(RTU_VERSION, nic, smem_sys.conn_watchdog)
if nic then
log.debug("startup> comms init")
else
log.warning("startup> no comms modem on startup")
end
log.debug("startup> comms init")
-- init threads
local main_thread = threads.thread__main(__shared_memory)