diff --git a/APP/peripheral_main.c b/APP/peripheral_main.c index d0ee53c..5fa850a 100644 --- a/APP/peripheral_main.c +++ b/APP/peripheral_main.c @@ -423,7 +423,7 @@ int main(void) BSP_NoNeedBoost(); BSP_RequestSleep(); - // IWDG_Init(IWDG_MS); + IWDG_Init(IWDG_MS); // 在连接间隔和广播间隔到来时,会进入回调中喂狗 // LL_AdvertiseEventRegister(BLE_AdvertiseEventCB); diff --git a/BSP/src/bsp_iwdg.c b/BSP/src/bsp_iwdg.c index b3c6011..fc464da 100644 --- a/BSP/src/bsp_iwdg.c +++ b/BSP/src/bsp_iwdg.c @@ -2,7 +2,7 @@ * @Author : stark1898y 1658608470@qq.com * @Date : 2024-12-15 16:13:41 * @LastEditors : stark1898y 1658608470@qq.com - * @LastEditTime : 2025-04-13 22:57:23 + * @LastEditTime : 2025-05-15 18:34:10 * @FilePath : \BLE_TYQ_CH584M\BSP\src\bsp_iwdg.c * @Description : * @@ -29,13 +29,13 @@ uint16_t IWDG_ProcessEvent(uint8_t task_id, uint16_t events) if (events & IWIG_FEED_EVENT) { FEED_IWDG(); + logDebug("IWDG feed"); tmos_start_task(task_id, IWIG_FEED_EVENT, 5000); return (events ^ IWIG_FEED_EVENT); } return 0; } - // 32k rc // div 0:4 | 1:8 | 2:16 | 3:32 | // 4:64 | 5:128 | 6:256 | 7:512(32K分频512,时钟62.5Hz) |