栈整改不抬栈:删旧档迁移、FIL静态化、日志行缓冲按模块收紧、钩子脱离HAL,defaultTask链5312→2776B

This commit is contained in:
2026-10-10 10:17:00 +08:00
parent 5c978465c9
commit 0779d3a075
54 changed files with 3203 additions and 2770 deletions
+3 -9
View File
@@ -2,7 +2,7 @@
* 模块名称:cfg_file_store (模拟器后端)
* 模块功能:cfg_file 存储后端——模拟器工作目录宿主文件 sim_config.ini;
* 原子写 = 临时文件 sim_config.ini.tmp + rename;mtime 变更令牌 =
* 宿主文件 mtime(秒级);旧版遗留文件 sim_netcfg.bin 供迁移读取
* 宿主文件 mtime(秒级)
* 适用平台:PC 模拟器
* 作者:王建锋
* 创建日期:2026-09-14
@@ -24,7 +24,6 @@
static const char s_path[] = "sim_config.ini";
static const char s_path_tmp[] = "sim_config.ini.tmp";
static const char s_path_legacy[] = "sim_netcfg.bin";
/* 函数定义区 */
@@ -144,14 +143,9 @@ const char *cfg_store_tmp_path(void) {
}
/*
* 函数功能:取旧版配置遗留文件路径
* 入口参数:无
* 返回值:"sim_netcfg.bin"(与 MCU 端旧格式一致,两端可互读) const char *
* 限定条件:无
* 旧版遗留档 getter(cfg_store_legacy_path)已于 2026-10-10 随旧档迁移
* net_cfg_legacy 一并删除:旧格式 sim_netcfg.bin 不再读取
*/
const char *cfg_store_legacy_path(void) {
return s_path_legacy;
}
/*
* 函数功能:分配共享核心临时缓冲(宿主 CRT 堆)