xt-sdk 文档 v1.0.3
xt-sdk 嵌入式 SDK API 参考
载入中...
搜索中...
未找到
xt_hal_wdt.h
浏览该文件的文档.
1
12
13#ifndef __XT_HAL_WDT_H__
14#define __XT_HAL_WDT_H__
15
16/* ==================== [Includes] ========================================== */
17
18#include "xt_hal_internal.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
30
31/* ==================== [Defines] =========================================== */
32
33/* ==================== [Typedefs] ========================================== */
34
40typedef void (*xt_hal_wdt_cb_t)(void);
41
42/* ==================== [Global Prototypes] ================================= */
43
52
59
66
67/* ==================== [Macros] ============================================ */
68 /* xt_hal_wdt */
70
71#ifdef __cplusplus
72} /* extern "C" */
73#endif
74
75#endif /* __XT_HAL_WDT_H__ */
int32_t xt_err_t
错误码类型
xt_err_t xt_hal_wdt_setup(uint32_t timeout, xt_hal_wdt_cb_t cb)
初始化看门狗
void(* xt_hal_wdt_cb_t)(void)
WDT 回调函数类型定义
xt_err_t xt_hal_wdt_feed(void)
喂狗(刷新看门狗计数)
xt_err_t xt_hal_wdt_close(void)
关闭看门狗
XTINY HAL 内部公共头文件