2011-10-17 05:19:54 How to set the time of BF518-EZBRD watchdog timeout?
zhang zhihua (CHINA)
I want to set the time of the watchdog timeout,I set it like this:
int timeout = 180;
int fd = open("/dev/watchdog",O_WRONLY);
then I run my feed dog process,but if I stop to feed dog,the system reset only 25s!If I want to reset it after 180 seconds,how to set it?
2011-10-17 23:05:10 Re: How to set the time of BF518-EZBRD watchdog timeout?
Aaron Wu (CHINA)
Watchdog timer is a 32-bits counter driven by the SCLK of more than 100MHz, so the maxmum time out period can not reach 180s as you required.
But why you need a watchdog timer for so long a time out period? What are you trying to implement? Will a general timer meet your requirement? Consult docs.blackfin.uclinux.org/doku.php?id=linux-kernel:timers for Linux general timer.