RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
dev_watchdog.h 文件参考
#include <rtthread.h>
+ dev_watchdog.h 的引用(Include)关系图:

浏览该文件的源代码.

结构体

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)
 

宏定义说明

◆ RT_DEVICE_CTRL_WDT_GET_TIMEOUT

#define RT_DEVICE_CTRL_WDT_GET_TIMEOUT   (RT_DEVICE_CTRL_BASE(WDT) + 1) /* get timeout(in seconds) */

在文件 dev_watchdog.h16 行定义.

◆ RT_DEVICE_CTRL_WDT_SET_TIMEOUT

#define RT_DEVICE_CTRL_WDT_SET_TIMEOUT   (RT_DEVICE_CTRL_BASE(WDT) + 2) /* set timeout(in seconds) */

在文件 dev_watchdog.h17 行定义.

◆ RT_DEVICE_CTRL_WDT_GET_TIMELEFT

#define RT_DEVICE_CTRL_WDT_GET_TIMELEFT   (RT_DEVICE_CTRL_BASE(WDT) + 3) /* get the left time before reboot(in seconds) */

在文件 dev_watchdog.h18 行定义.

◆ RT_DEVICE_CTRL_WDT_KEEPALIVE

#define RT_DEVICE_CTRL_WDT_KEEPALIVE   (RT_DEVICE_CTRL_BASE(WDT) + 4) /* refresh watchdog */

在文件 dev_watchdog.h19 行定义.

◆ RT_DEVICE_CTRL_WDT_START

#define RT_DEVICE_CTRL_WDT_START   (RT_DEVICE_CTRL_BASE(WDT) + 5) /* start watchdog */

在文件 dev_watchdog.h20 行定义.

◆ RT_DEVICE_CTRL_WDT_STOP

#define RT_DEVICE_CTRL_WDT_STOP   (RT_DEVICE_CTRL_BASE(WDT) + 6) /* stop watchdog */

在文件 dev_watchdog.h21 行定义.

类型定义说明

◆ rt_watchdog_t

在文件 dev_watchdog.h29 行定义.

函数说明

◆ rt_hw_watchdog_register()

rt_err_t rt_hw_watchdog_register ( rt_watchdog_t * wdt,
const char * name,
rt_uint32_t flag,
void * data )