fix: 完美复原低功耗停机休眠与外部唤醒控制寄存器,修复唤醒死机

This commit is contained in:
2026-07-28 18:22:04 +08:00
parent d01121e3ae
commit 8367524eec
2 changed files with 120 additions and 8 deletions

View File

@@ -219,6 +219,8 @@ void main(void)
inactivity_timer = 0;
current_state = STATE_SLEEP; // 系统置为休眠状态
Enter_Low_Power_Sleep(); // 该函数是阻塞的MCU 将在此挂起。唤醒后将自动从其后继续执行
current_state = STATE_NORMAL; // 唤醒后重新置为正常待机状态
AppManager_StartApp(APP_ID_CLOCK); // 重新开启时钟应用以刷新画面和背光
}
}
}