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)