RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
#include <rtthread.h>
结构体 | |
struct | rt_watchdog_device |
struct | rt_watchdog_ops |
宏定义 | |
#define | RT_DEVICE_CTRL_WDT_GET_TIMEOUT (RT_DEVICE_CTRL_BASE(WDT) + 1) /* get timeout(in seconds) */ |
#define | RT_DEVICE_CTRL_WDT_SET_TIMEOUT (RT_DEVICE_CTRL_BASE(WDT) + 2) /* set timeout(in seconds) */ |
#define | RT_DEVICE_CTRL_WDT_GET_TIMELEFT (RT_DEVICE_CTRL_BASE(WDT) + 3) /* get the left time before reboot(in seconds) */ |
#define | RT_DEVICE_CTRL_WDT_KEEPALIVE (RT_DEVICE_CTRL_BASE(WDT) + 4) /* refresh watchdog */ |
#define | RT_DEVICE_CTRL_WDT_START (RT_DEVICE_CTRL_BASE(WDT) + 5) /* start watchdog */ |
#define | RT_DEVICE_CTRL_WDT_STOP (RT_DEVICE_CTRL_BASE(WDT) + 6) /* stop watchdog */ |
类型定义 | |
typedef struct rt_watchdog_device | rt_watchdog_t |
函数 | |
rt_err_t | rt_hw_watchdog_register (rt_watchdog_t *wdt, const char *name, rt_uint32_t flag, void *data) |
#define RT_DEVICE_CTRL_WDT_GET_TIMEOUT (RT_DEVICE_CTRL_BASE(WDT) + 1) /* get timeout(in seconds) */ |
在文件 dev_watchdog.h 第 16 行定义.
#define RT_DEVICE_CTRL_WDT_SET_TIMEOUT (RT_DEVICE_CTRL_BASE(WDT) + 2) /* set timeout(in seconds) */ |
在文件 dev_watchdog.h 第 17 行定义.
#define RT_DEVICE_CTRL_WDT_GET_TIMELEFT (RT_DEVICE_CTRL_BASE(WDT) + 3) /* get the left time before reboot(in seconds) */ |
在文件 dev_watchdog.h 第 18 行定义.
#define RT_DEVICE_CTRL_WDT_KEEPALIVE (RT_DEVICE_CTRL_BASE(WDT) + 4) /* refresh watchdog */ |
在文件 dev_watchdog.h 第 19 行定义.
#define RT_DEVICE_CTRL_WDT_START (RT_DEVICE_CTRL_BASE(WDT) + 5) /* start watchdog */ |
在文件 dev_watchdog.h 第 20 行定义.
#define RT_DEVICE_CTRL_WDT_STOP (RT_DEVICE_CTRL_BASE(WDT) + 6) /* stop watchdog */ |
在文件 dev_watchdog.h 第 21 行定义.
typedef struct rt_watchdog_device rt_watchdog_t |
在文件 dev_watchdog.h 第 29 行定义.
rt_err_t rt_hw_watchdog_register | ( | rt_watchdog_t * | wdt, |
const char * | name, | ||
rt_uint32_t | flag, | ||
void * | data ) |