|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include <stdio.h>#include <stdbool.h>#include "securec.h"#include "soc_osal.h"#include "errcode.h"#include "watchdog_porting.h"#include "hal_watchdog.h"#include "watchdog.h"
函数 | |
| errcode_t | uapi_watchdog_init (uint32_t timeout) |
| 初始化Watchdog。 | |
| errcode_t | uapi_watchdog_deinit (void) |
| 去初始化Watchdog。 | |
| errcode_t | uapi_watchdog_enable (wdt_mode_t mode) |
| 使能Watchdog。 | |
| errcode_t | uapi_watchdog_disable (void) |
| 去使能Watchdog。 | |
| errcode_t | uapi_watchdog_set_time (uint32_t timeout) |
| 设置Watchdog超时时间。 | |
| errcode_t | uapi_watchdog_get_left_time (uint32_t *timeout) |
| 获取看门狗计数器的剩余值。 | |
| errcode_t | uapi_watchdog_kick (void) |
| 喂狗。 | |
| errcode_t | uapi_register_watchdog_callback (watchdog_callback_t callback) |
| 注册看门狗回调。 | |