beautypg.com

Chapter 5, 5 watchdog source code, Pch 7991 – Acnodes PCH 7991 User Manual

Page 69

background image

PCH 7991

19 inch Atom Fanless Panel PC

© Copyright 2012 Acnodes, Inc.

All rights reserved. Product description and product specifications
are subject to change without notice. For latest product information,
please visit Acnodes’ web site at www.acnodes.com.

14628 Central Ave.

Chino, CA91710

Tel:909.597.7588, Fax:909.597.1939






Chapter 5



5 Watchdog Source Code

# includ e

# includ e

# includ e "w inio.h"

# define WD T_EFER 0x4E

# define WD T_EFIR 0x4E

# define WD T_EFD R 0x 4F

# define WD T_EFC R 0x 23

v oid ena ble_w d_1sec ();

v oid disa ble_ wd();

in t ma in()

{



// C all Initializ eWinIo to initializ e th e Win Io library.

bool bR esult;

bR esult = Initializ eWinIo();

if (bR esult)

{

e nable _wd_ 1se c();

while (1)

{

;

}