feat: 完善Mesh继电器OTA升级闭环

This commit is contained in:
十七
2026-11-04 15:41:29 +08:00
parent be8bd7eaec
commit df1aad3d16
27 changed files with 1372 additions and 243 deletions
+8
View File
@@ -8,4 +8,12 @@ void Watchdog_Init(void);
/** 在主循环中刷新看门狗计数器。 */
void Watchdog_Refresh(void);
/**
* 立即触发一次 MCU 看门狗复位。
*
* 该接口用于 OTA 校验成功后的受控重启:调用方必须先完成升级结果应答,
* 然后本函数把看门狗重装值缩短并停止喂狗,交由硬件自动复位进入Bootloader。
*/
void Watchdog_ResetNow(void);
#endif