From 3d70b0770e7593b57bfca7f5e8b3244934575d64 Mon Sep 17 00:00:00 2001 From: stark1898y <1658608470@qq.com> Date: Tue, 27 May 2025 10:51:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=B8=8A=E5=8D=95=E5=90=8E?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BB=B6=E6=97=B6=E5=86=8D=E5=8D=87=E5=8E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- APP/peripheral_main.c | 3 +++ BSP/inc/bsp_iwdg.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/APP/peripheral_main.c b/APP/peripheral_main.c index 5af650b..2ad63cd 100644 --- a/APP/peripheral_main.c +++ b/APP/peripheral_main.c @@ -156,6 +156,7 @@ void app_task_handler(TeAppEvtType app_evt_type) break; } case kKeyLong: + DelayMs(4000); logDebug("button long press"); break; @@ -271,6 +272,8 @@ int main(void) GXHTC3C_Init(); BSP_ADC_Init(); + DelayMs(2000 * 1); + BSP_BlockSleep(); BSP_RequestBoost(); DelayMs(100); diff --git a/BSP/inc/bsp_iwdg.h b/BSP/inc/bsp_iwdg.h index e8db855..aa38269 100644 --- a/BSP/inc/bsp_iwdg.h +++ b/BSP/inc/bsp_iwdg.h @@ -2,7 +2,7 @@ * @Author : stark1898y 1658608470@qq.com * @Date : 2024-12-15 16:13:37 * @LastEditors : stark1898y 1658608470@qq.com - * @LastEditTime : 2025-05-21 13:36:03 + * @LastEditTime : 2025-05-27 09:40:54 * @FilePath : \BLE_TYQ_CH584M\BSP\inc\bsp_iwdg.h * @Description : * @@ -21,7 +21,7 @@ #define RB_WR_PROTECT 0x40000000 // RO, write protect #define RB_IWDG_EN 0x80000000 // RO, watch-dog enable -#define IWDG_TIMEOUT_MS (10000) +#define IWDG_TIMEOUT_MS (4000) #define IWDG_FEED_MS (3000) #define IWIG_FEED_EVENT (0x01 << 0)