开启5s喂狗
This commit is contained in:
parent
10eadb07cb
commit
5ef5e9cd33
|
@ -423,7 +423,7 @@ int main(void)
|
||||||
BSP_NoNeedBoost();
|
BSP_NoNeedBoost();
|
||||||
BSP_RequestSleep();
|
BSP_RequestSleep();
|
||||||
|
|
||||||
// IWDG_Init(IWDG_MS);
|
IWDG_Init(IWDG_MS);
|
||||||
|
|
||||||
// 在连接间隔和广播间隔到来时,会进入回调中喂狗
|
// 在连接间隔和广播间隔到来时,会进入回调中喂狗
|
||||||
// LL_AdvertiseEventRegister(BLE_AdvertiseEventCB);
|
// LL_AdvertiseEventRegister(BLE_AdvertiseEventCB);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author : stark1898y 1658608470@qq.com
|
* @Author : stark1898y 1658608470@qq.com
|
||||||
* @Date : 2024-12-15 16:13:41
|
* @Date : 2024-12-15 16:13:41
|
||||||
* @LastEditors : stark1898y 1658608470@qq.com
|
* @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
|
* @FilePath : \BLE_TYQ_CH584M\BSP\src\bsp_iwdg.c
|
||||||
* @Description :
|
* @Description :
|
||||||
*
|
*
|
||||||
|
@ -29,13 +29,13 @@ uint16_t IWDG_ProcessEvent(uint8_t task_id, uint16_t events)
|
||||||
if (events & IWIG_FEED_EVENT)
|
if (events & IWIG_FEED_EVENT)
|
||||||
{
|
{
|
||||||
FEED_IWDG();
|
FEED_IWDG();
|
||||||
|
logDebug("IWDG feed");
|
||||||
tmos_start_task(task_id, IWIG_FEED_EVENT, 5000);
|
tmos_start_task(task_id, IWIG_FEED_EVENT, 5000);
|
||||||
return (events ^ IWIG_FEED_EVENT);
|
return (events ^ IWIG_FEED_EVENT);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 32k rc
|
// 32k rc
|
||||||
// div 0:4 | 1:8 | 2:16 | 3:32 |
|
// div 0:4 | 1:8 | 2:16 | 3:32 |
|
||||||
// 4:64 | 5:128 | 6:256 | 7:512(32K分频512,时钟62.5Hz) |
|
// 4:64 | 5:128 | 6:256 | 7:512(32K分频512,时钟62.5Hz) |
|
||||||
|
|
Loading…
Reference in New Issue