仓库迁移

This commit is contained in:
andy
2023-06-10 11:52:00 +08:00
parent e4616bfae5
commit 077c27f2bb
499 changed files with 199745 additions and 92 deletions

21
source/dev/dev_watchdog.c Normal file
View File

@@ -0,0 +1,21 @@
#include "stm32f4xx.h"
#include "board.h"
// 开始watch dog
void wdog_start(void)
{
IWDG_WriteAccessCmd(IWDG_WriteAccess_Enable);
IWDG_SetPrescaler(IWDG_Prescaler_32);
IWDG_Enable();
}
// 更新看门狗
void wdog_refresh(void)
{
IWDG_ReloadCounter();
}