📄 os_wdt.h
字号:
/****************************************Copyright (c)****************************************************
** Guangzhou ZHIYUAN electronics Co.,LTD.
**
** http://www.embedtools.com
**
**--------------File Info---------------------------------------------------------------------------------
** File name: OS_WDT.h
** Last modified Date:
** Last Version: 1.0.0
** Descriptions:
**
**--------------------------------------------------------------------------------------------------------
** Created by:
** Created date:
** Version: 1.0.0
** Descriptions:
**
**--------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Descriptions:
**
*********************************************************************************************************/
#ifndef OS_WDT_H
#define OS_WDT_H
#ifdef __cplusplus
extern "C" {
#endif
/********************************************************************************************************
函数返回值宏定义
********************************************************************************************************/
#define WATCHDOG_SUCCESS 0 /* 看门狗监控程序操作成功 */
#define WATCHDOG_NOTRUN 1 /* 任务未处于看门狗监控状态 */
#define WATCHDOG_ERRORID 2 /* 任务ID有误 */
/********************************************************************************************************
** Function name: OSWatchDogInit
** Descriptions : 看门狗定时器初始化和任务组看门狗结构体初始化
** Input : timeout 看门狗溢出时间
** Output : 无
** Return : 无
*********************************************************************************************************/
void OSWatchDogInit(uint32 timeout);
/*********************************************************************************************************
** Function name: OSWatchDogCreate
** Descriptions : 建立看门狗监控程序
** Input : taskid 任务ID号
** Output : 无
** Return : 无
*********************************************************************************************************/
void OSWatchDogCreate(int taskid);
/********************************************************************************************************
** Function name: OSWatchDogReset
** Descriptions : 看门狗软件复位
** Input : taskid 任务ID号
** Output : 无
** Return : 操作信息
*********************************************************************************************************/
uint32 OSWatchDogReset(int taskid);
/********************************************************************************************************
** Function name: OSWatchDogDelete
** Descriptions : 删除看门狗监控程序
** Input : taskid 任务ID号
** Output : 无
** Return : 操作信息
*********************************************************************************************************/
uint32 OSWatchDogDelete(int taskid);
/********************************************************************************************************
** Function name: OSWatchDogMonitor
** Descriptions : 看门狗监控程序,如果任务运行正常,则"喂狗",否则停止"喂狗",串口上传故障任务信息
** Input : 无
** Output : 无
** Return : 无
*********************************************************************************************************/
void OSWatchDogMonitor(void);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -