Appendix a - watchdog timer, A.1 sample code, Appendix a, watchdog timer: prese – ADLINK M-342 User Manual
Page 89: A appendix: watchdog timer, Sample code

Watchdog Timer
75
M-342
Appendix A - Watchdog Timer
A sample program for configuring the M-342’s watchdog timer is
shown below.
A.1 Sample Code
void SIOConfigEnter ()
{
IoWrite8 (NCT6776F_CONFIG_INDEX , 0x87);
IoWrite8 (NCT6776F_CONFIG_INDEX , 0x87);
}
void SIOConfigExit ()
{
IoWrite8 (NCT6776F_CONFIG_INDEX , 0xaa);
}
void Oem_WDT_Init (
IN SETUP_DATA *SetupData
)
{
UINT8 Data8;
SIOConfigEnter();
IoWrite8 (NCT6776F_CONFIG_INDEX , 0x2B);
// Pin80 function selection to ATXPGD
Data8 = IoRead8(NCT6776F_CONFIG_DATA) & 0xEF;
IoWrite8 (NCT6776F_CONFIG_DATA , Data8);
IoWrite8 (NCT6776F_CONFIG_INDEX , 0x07);
IoWrite8 (NCT6776F_CONFIG_DATA , 0x09);
IoWrite8 (NCT6776F_CONFIG_INDEX , 0x30);
Data8 = IoRead8(NCT6776F_CONFIG_DATA) | 0x08;
IoWrite8 (NCT6776F_CONFIG_DATA , Data8);
IoWrite8 (NCT6776F_CONFIG_INDEX , 0xE4);
// selection GP34 to GPO High
IoWrite8 (NCT6776F_CONFIG_DATA , 0xEF);
IoWrite8 (NCT6776F_CONFIG_INDEX , 0xE5);
IoWrite8 (NCT6776F_CONFIG_DATA , 0x10);