<div>$B$O$8$a$FEj9F$5$;$F$$$?$@$-$^$9!#?yK\$H?=$7$^$9!#(B</div>
<div> </div>
<div>$B8=:_!!(BArmadillo-300 $B$G<B83AuCV$r:n@.$7$F$*$j$^$9!#(B</div>
<div>Watchdog $B$r;HMQ$7$?$$$N$G$9$,!"$&$^$/F0:n$7$^$;$s!#(B</div>
<div>$B0J2<$N%=!<%9$N$h$&$K(B/dev/watchdog $B$r%*!<%W%s$7!"%?%$%`%"%&%H$r(B10$BIC$K@_Dj(B</div>
<div>$B$7!"@_DjCM$,(B10$BIC$K@_Dj$5$l$F$$$F$b!"(Bwatchdog $B$,F/$-$^$;$s!#(B</div>
<div>$B$I$J$?$+!"(Barmadillo-300$B$N(B watchdog $B$NF/$+$;J}$r$465<x$$$?$@$1$^$;$s$G(B</div>
<div>$B$7$g$&$+!#(B</div>
<div> </div>
<div>int to = 10;<br>int fd <br> if ((fd = open("/dev/watchdog", O_WRONLY)) < 0) {<br> printf("WDT open failed %s\n", strerror(errno));</div>
<div> return -1;</div>
<div> }<br> if ((ret = ioctl(fd, WDIOC_SETTIMEOUT, &to)) < 0) {<br> printf("WDT set timeout failed to %d :%s\n", to, strerror(errno));;<br> }<br> to = 0;<br> if ((ret = ioctl(fd, WDIOC_GETTIMEOUT, &to)) < 0) {<br>
printf("WDT get timeout failed to %d :%s\n", to, strerror(errno));;<br> }<br> printf("WDT set timeout %d\n", to);</div>
<div> </div>
<div> </div>
<div>$B$h$m$7$/$*4j$$$$$?$7$^$9!#(B</div>