您现在的位置: 主页 > 嵌入式操作系统 > VxWorks > Watch dog :wdLib.h vxWorks编程指南_VxWorks编程常用函数说明(
本文所属标签:
为本文创立个标签吧:

Watch dog :wdLib.h vxWorks编程指南_VxWorks编程常用函数说明(

来源: 网络用户发布,如有版权联系网管删除 2016-06-03 

Watch dog :wdLib.h vxWorks编程指南_VxWorks编程常用函数说明(13) 五、Watch dog :wdLib.h
系统提供了软看门狗定时器,使用也简便:
wdCreate( ) - 创建看门狗
wdDelete( ) - 删除
wdStart( ) - 启动
wdCancel( ) - 停止
Init() {
/* 创建看门狗 */
if ((wdID = wdCreate()) == NULL) {
printf("Watch dog create failed!n");
}
}
task() {
if (OK != wdStart(wdID, sysClkRateGet()*5, proc_wd, 0)) {
printf("Watch dog start failed!n");
}
}
int proc_wd(int param) {
logMsg(... ...);
}


              查看评论 回复



嵌入式交流网主页 > 嵌入式操作系统 > VxWorks > Watch dog :wdLib.h vxWorks编程指南_VxWorks编程常用函数说明(
 

"Watch dog :wdLib.h vxWorks编程指南_VxWorks编程常用函数说明("的相关文章

网站地图

围观()