Download Print this page

Decision Computer International Watch dog 1 Operation Manual page 30

Timer card

Advertisement

Operations Manual
Default device name to the watch dog driver
/dev/whdg
Enclosed utilities for the watch dog driver
1. To enable the watch dog
# /etc/whdg_on
2. To disable the watch dog
# /etc/whdg_off
Programming Examples
int whdg_h;
1. To enable the watch dog for system
if ((whdg_h = open("/dev/whdg", O_WRONLY))==-1)
{
printf("There is no Watch Dog device %s\n",
WATCH_DOG_DEV);
return FALSE;
}
2. To enable the watch dog for application program
if ((whdg_h = open("/dev/whdg", O_RDWR))==-1)
{
printf("There is no Watch Dog device %s\n",
WATCH_DOG_DEV);
return FALSE;
}
DECISION Computer International
/* file handle to the watch dog device */
Watch dog timer card
30

Advertisement

loading
Need help?

Need help?

Do you have a question about the Watch dog 1 and is the answer not in the manual?

Related Products for Decision Computer International Watch dog 1

This manual is also suitable for:

Watch dog 2