XFusion API v1.3.0
载入中...
搜索中...
未找到
xf_sys_watchdog.c
浏览该文件的文档.
1
12/* ==================== [Includes] ========================================== */
13
14#include "xf_sys_watchdog.h"
15
16/* ==================== [Defines] =========================================== */
17
18/* ==================== [Typedefs] ========================================== */
19
20/* ==================== [Static Prototypes] ================================= */
21
22/* ==================== [Static Variables] ================================== */
23
24/* ==================== [Macros] ============================================ */
25
26/* ==================== [Global Functions] ================================== */
27
28#if XF_SYS_WATCHDOG_WEAK_IS_ENABLE
29
34
39
44
45#endif
46
47/* ==================== [Static Functions] ================================== */
__weak xf_err_t xf_sys_watchdog_enable(void)
开启看门狗
__weak xf_err_t xf_sys_watchdog_disable(void)
关闭看门狗
__weak xf_err_t xf_sys_watchdog_kick(void)
喂狗,防止看门狗超时叫
#define __weak
弱声明符号。 被 __weak 修饰的符号(变量或函数) 可以被 没有 用 __weak 修饰的符号覆盖或重定义。
Definition xf_attr.h:48
int32_t xf_err_t
整形错误类型。 错误码具体值见 xf_err_code_t.
Definition xf_err.h:69
@ XF_ERR_NOT_SUPPORTED
Definition xf_err.h:51
看门狗控制接口。