Kontron ePanel-mgx Technical Manual page 35

Table of Contents

Advertisement

Technical Manual
if (! command)
{
printf ("No option specified\n\n");
printf (usage);
exit (EXIT_FAILURE);
}
if ((flag != 1) && (command != 2))
{
printf ("No time specified\n\n");
printf (usage);
exit (EXIT_FAILURE);
}
}
void main (int argc, char *argv [])
{
printf ("Watchdog Utility
"(c) 2002 KONTRON Hamburg GmbH\n\n");
ProcessArgument (argc, argv);
switch (command)
{
case 1: _asm mov dx, GEODE_CONFIG_BASE + GEODE_WDCNFG
_asm mov ax, WDT_ENABLE
_asm out dx, ax
_asm mov dx, GEODE_CONFIG_BASE + GEODE_WDTO
_asm mov ax, timeout
_asm out dx, ax
printf ("Watchdog activating\n");
break;
case 2: _asm mov dx, GEODE_CONFIG_BASE + GEODE_WDCNFG
_asm mov ax, WDT_DISABLE
_asm out dx, ax
printf ("Watchdog deleting\n");
break;
case 3: _asm mov dx, GEODE_CONFIG_BASE + GEODE_WDTO
_asm mov ax, timeout
_asm out dx, ax
printf ("Watchdog reseting\n");
break;
}
}
ePanel-mgx
V1.00\n"
Page 35 of 45 Pages
Hardware description

Advertisement

Table of Contents
loading

This manual is also suitable for:

22201

Table of Contents