From 07d3633e5d6905272d19da645c767b7267f27a8f Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期四, 27 二月 2025 14:04:06 +0800
Subject: [PATCH] 2.14,加入假休眠机制,休眠时功耗100-200ua

---
 Src/stm32l0xx_it.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Src/stm32l0xx_it.c b/Src/stm32l0xx_it.c
index 08b5087..1ce75ef 100644
--- a/Src/stm32l0xx_it.c
+++ b/Src/stm32l0xx_it.c
@@ -45,6 +45,7 @@
 float nomove_count=0;
 float button_delay = 1;
 u16 button_start;
+extern uint8_t mcu_sleep_flag;
 /* USER CODE END PV */
 
 /* Private function prototypes -----------------------------------------------*/
@@ -160,6 +161,8 @@
 	if(GET_IMUINT)
 	{
 		nomove_count = 0;
+        if(mcu_sleep_flag)
+        {HAL_NVIC_SystemReset();}
 	}
 	
 	if(!GET_USERKEY)

--
Gitblit v1.9.3