Appendix b - watchdog sample code, Appendix b appendix b - watchdog sample code – DFI RL830-C602/C604 User Manual

Page 64

Advertising
background image

www.dfi .com

64

Appendix B Watchdog Sample Code

Appendix B

Appendix B - Watchdog Sample Code

Watch Dog ISI Programing Guide

; Using DFI Utility (ISIDll.dll) library function

WD_Init

WD_SerTimerValue

WD_GetTimerValue

--------------------------------------------------------------

WD_Init function

Initial the Watch Dog Timer Module

Syntax

Int

WD_Init(void);

Return value

If the return value isn’t NULL ,the initial procedure failed.

WD_SerTimerValue function

Setting the Watch Dog Timer counting Value

Syntax

Int WD_SerTimerValue(unsigned char ucData);

Input value

The ucData represent the counting value. If the value is 0x00,

Watch dog timer will stop counting.

Return value

If the return value isn’t NULL , the setting procedure failed.

WD_GetTimerValue function

Getting the Watch Dog Timer runtime value.

Syntax

Unsigned char WD_GetTimerValue(void);

Return value

The return value represent the timer runtime value.

Advertising