精简 usr_app 架构:去掉关机/休眠死代码,按键复用 key.c 状态机,ISR 重活统一延后到任务上下文
Type-C 长供电、上电即工作、无软关机,删除 app_boot/app_power 及 DP0 开关相关逻辑, 去掉空占位 app_fan_run 和无效的 usr_timer_pick_mode/rearm(数码管 4ms 扫描已 priority=1, 系统本来就不会进低功耗)。按键 5s 配对 / 12s OTA 改走 key.c 长按分级,去掉自计时与 1~5s 死区。 新增 app_defer,NVM/配对/OTA 只在 ISR 置位、在 500ms 任务上下文落地,避免再在 usr_timer 里写 flash。 规格书与注释同步精简。
This commit is contained in:
+4
-8
@@ -796,10 +796,6 @@
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="apps/usr_periph/bsp_aht20.h" />
|
||||
<Unit filename="apps/usr_app/app_boot.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="apps/usr_app/app_boot.h" />
|
||||
<Unit filename="apps/usr_app/app_cond.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
@@ -832,14 +828,14 @@
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="apps/usr_app/app_nvm.h" />
|
||||
<Unit filename="apps/usr_app/app_defer.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="apps/usr_app/app_defer.h" />
|
||||
<Unit filename="apps/usr_app/app_pair.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="apps/usr_app/app_pair.h" />
|
||||
<Unit filename="apps/usr_app/app_power.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="apps/usr_app/app_power.h" />
|
||||
<Unit filename="apps/usr_app/app_th.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
|
||||
Reference in New Issue
Block a user