22 lines
431 B
C
22 lines
431 B
C
/**
|
|
* @file iwdgs.h
|
|
* @author xxx
|
|
* @date 2023-12-27 14:44:03
|
|
* @brief 独立看门狗
|
|
* @copyright Copyright (c) 2024 by xxx, All Rights Reserved.
|
|
*/
|
|
#ifndef __IWDGS_H__
|
|
#define __IWDGS_H__
|
|
|
|
#include "main.h"
|
|
#include "lib.h"
|
|
|
|
/// 喂狗
|
|
#define WATCHDOG_RESET() LL_IWDG_ReloadCounter(IWDG)
|
|
|
|
extern BOOL check_watchdog_reset(void);
|
|
extern void debug_freeze_watchdog(void);
|
|
extern void debug_unfreeze_watchdog(void);
|
|
|
|
#endif
|