mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-07-14 15:48:55 +00:00
6edfd084f3
- extract Meshtastic and MeshCore phone/business flows into shared core_chat BLE cores with owner hook seams for ESP and nRF backends - replace nrf-specific lite adapters with board/platform adapters that consume shared cores and shared storage contracts - extend nrf Meshtastic radio path with packet history dedupe, flooding rebroadcast, route discovery/traceroute responses, routing ACK/error handling, observed relay learning, retransmit queueing, and next-hop persistence - persist nrf device identity and node metadata more explicitly, including next-hop state and node-id initialization support - move nrf chat/contact/blob storage further toward InternalFS-backed persistence and update contact/node store behavior accordingly - wire gat562 protocol/app facade pieces to the concrete nrf stores/adapters and add supporting app time-sync hooks used by platform runtimes - add owner-hook split files and planning/status docs to document the ongoing alignment with the reference meshtastic-firmware multi-platform structure
modules/core_sys
Home for cross-platform system abstractions and generic utilities.
Migrated now
include/sys/ringbuf.hinclude/sys/clock.hinclude/app/app_facade_access.hinclude/app/app_context_platform_bindings.hsrc/sys/clock.cppsrc/app/app_facade_access.cpp
Moved to platform layer
event_busnow lives atplatform/esp/arduino_common/include/sys/event_bus.hbecause it depends on chat/team event payloads plus FreeRTOS runtime details
Expected future contents
- timer abstraction
- storage and file-system interfaces
- shared utility code that is not tied to ESP or Linux runtime APIs
Transitional note
sys/ringbuf.handsys/clock.hare now consumed directly frommodules/core_sys/include/sys/*clock.cppprovides portable fallbacks based on the C++ standard library and can be overridden by platform-specific providers- the active app shell should register runtime providers through
sys::set_millis_provider()andsys::set_epoch_seconds_provider()during startup