AAEON PFM-535S User Manual
Page 39
Advertising
P C / 1 0 4 C P U M o d u l e
P F M - 5 3 5 S
Appendix A Programming the Watchdog Timer A-6
outp(0x22,0x37);
c = inp(0x23);
c |= 0x40;
outp(0x22,0x37);
outp(0x23,c);
outp(0x22,0x13); // Lock register
outp(0x23,0x00); // Lock config. register
printf("Press any key to stop trigger timer.\n");
while(!kbhit())
{
outp(0x22,0x13); // Unlock register
outp(0x23,0xc5);
outp(0x22,0x3c);
unsigned char c = inp(0x23);
outp(0x22,0x3c);
outp(0x23,c|0x40);
outp(0x22,0x13); // Lock register
outp(0x23,0x00);
}
printf("System will reboot after 500 milli-seconds.\n");
}
Advertising