- main.c: 移除显式 app_modbus_m_register() 调用,改为 dc_init → app_sys_init - modbus_m.cpp: 删除 app_modbus_m_register(),app_modules.h X-Macro 自动注册 - release/src/system/makefile: 移除 libsystem.a 构建(app_sys.cpp 并入 RTU) - release/src/system/RTU/makefile: 增加 app_sys.cpp 编译,链接 -lcJSON - 编译验证: x86 + ARM RTU 可执行文件全通过 新增模块流程: 只需在 app_modules.h 添加一行 X-Macro |
||
|---|---|---|
| .. | ||
| protocol | ||
| public | ||
| system | ||
| test | ||