1 /*
2  * Copyright (C) 2015-2021 Alibaba Group Holding Limited
3  */
4 
5 #ifndef _IO_WDG_H_
6 #define _IO_WDG_H_
7 
8 #include <stdbool.h>
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 /** @addtogroup watchdog_device_api
15  *  watchdog设备节点API定义,主要是ioctl函数所用的命令id定义说明
16  *
17  *  @{
18  */
19 
20 #define IOC_WDG_BASE 'W'
21 #define IOC_WDG_RELOAD IOC_WDG_BASE + 1   /**< 复位看门狗 */
22 #define IOC_WDG_FEED   IOC_WDG_BASE + 2   /**< 喂狗,和IOC_WDG_RELOAD相同功能 */
23 #define IOC_WDG_START  IOC_WDG_BASE + 3   /**< 开启看门狗,并不是所有板子都支持动态开启和关闭看门狗的功能 */
24 #define IOC_WDG_STOP   IOC_WDG_BASE + 4   /**< 关闭看门狗,并不是所有板子都支持动态开启和关闭看门狗的功能 */
25 /** @} */
26 
27 #ifdef __cplusplus
28 }
29 #endif
30 #endif //_IO_WDG_H_
31