📄 watchdog.h
字号:
#ifndef _AM_WATCHDOG_H
#define _AM_WATCHDOG_H
avfs_device_driver hw_watchdog_init(avfs_device_major_number major, avfs_device_minor_number minor, void *arg) ;
avfs_device_driver hw_watchdog_open(avfs_device_major_number major, avfs_device_minor_number minor, void *arg);
avfs_device_driver hw_watchdog_close(avfs_device_major_number major, avfs_device_minor_number minor, void *arg);
avfs_device_driver hw_watchdog_ioctl(avfs_device_major_number major, avfs_device_minor_number minor, void *arg);
#define DEVICE_TABLE_HW_WATCHDOG \
{ \
hw_watchdog_init, \
hw_watchdog_open, \
hw_watchdog_close, \
NULL, \
NULL, \
hw_watchdog_ioctl \
}
#define IOCMD_WATCHDOG_START_AUTO 0x1
#define IOCMD_WATCHDOG_START 0x2
#define IOCMD_WATCHDOG_STOP 0x3
#define IOCMD_WATCHDOG_CLEAR 0x4
#define IOCMD_WATCHDOG_RESET 0x5
#define IOCMD_WATCHDOG_RESET_CHECK 0x6
#define IOCMD_WATCHDOG_READ_PAR 0x7
#define IOCMD_WATCHDOG_WRITE_PAR 0x8
#define WATCHDOG_NORMAL_START 0
#define WATCHDOG_FORCE_RESET 1
#define WATCHDOG_DEAD_START 2
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -