Watchdog Timer (WDT) Function Library
83
DLAP-8000
printf("Init and config GPIO
ports<<<<<<<<<<<<<<<<<<<<<<<<<\n");
printf("----------------------------------------------
----\n");
EnterConfig();
/* config WDT registers */
w_reg(0x07,0x08);
/* enable keyboard interrupt to reset WDT timeout
value */
w_reg(0xF2,r_reg(0xF2)|0x40);
/* set unit as second */
w_reg(0xF0,r_reg(0xF0)&~0x04);
/* start the Watchdog */
w_reg(0x30,0x01);
/* set timeout value as 30 seconds */
/* WDT start automatically while timeout value is set
*/
w_reg(0xF1,0x1E);
printf("----------------------------------------------
-----\n");
printf("WDT is set and counting down
now.<<<<<<<<<<<<<<<<<<\n");
printf("----------------------------------------------
-----\n");
for(count=30;count!=0;count--)
{ printf("Countdown %2d : .\n",count);
/* reset WDT timeout value to 10 seconds */
/* w_reg(0x73,0x0A); */
sleep(1);
}
/* disable WDT */
/* WDT stop while timeout value is set to zero */
w_reg(0x30,0x00);
Summary of Contents for DLAP-8000 Series
Page 8: ...viii List of Tables Leading EDGE COMPUTING This page intentionally left blank...
Page 10: ...x List of Figures Leading EDGE COMPUTING This page intentionally left blank...
Page 18: ...8 Specifications Leading EDGE COMPUTING units mm Figure 2 2 DLAP 8000 Left Side View...
Page 19: ...Specifications 9 DLAP 8000 units mm Figure 2 3 DLAP 8000 Right Side View...
Page 20: ...10 Specifications Leading EDGE COMPUTING units mm Figure 2 4 DLAP 8000 Top View...
Page 40: ...30 System Layout Leading EDGE COMPUTING This page intentionally left blank...
Page 65: ...BIOS Setup 55 DLAP 8000 B 2 10 NVME Configuration Displays NVMe device status...
Page 88: ...78 BIOS Setup Leading EDGE COMPUTING This page intentionally left blank...
Page 102: ...92 Consignes de S curit Importante Leading EDGE COMPUTING This page intentionally left blank...