⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme~

📁 简单的watchdog驱动,实现了定时重启
💻
字号:
//////启动驱动并测试。 //       。2008.7.5////本文分为2节//    //     1,启动驱动//     2,测试//1,启动驱动      1)copy wdt3210.c 到 ../fcr_linux26/drivers/char/watchdog/,并修改Makefile和Kconfig      2) copy OpenWatchdog(交叉编译OpenWatchdog.c后得到的二进制文件),到../fcr_linux26/arch/mips/ramdisk/usr/bin/        3) 在../fcr_linux26/arch/mips/ramdisk/dev/目录下建立watchdog设备文件           建watchdog设备文件命令:mknod watchdog c 10 130        4)编译生成vmlinux2,测试   注意:初始watchdog timer的时间为20妙,即20秒后没喂狗,会自动重启。                 1,adopt watchdog.                    //喂狗                 2,change the time (input seconds).   //改timer时间,并喂狗                 3,get the time (seconds).            //获得timer时间,并喂狗                 other numbers: close the watchdog.   //关闭watchdog,并退出              

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -