beautypg.com

Watchdog – Acrosser AR-R6006 User Manual

Page 24

background image

24

Watchdog
1. Syntax:

Wdt_start(Void)

Description: This function read the value of the watchdog time counter and returns it to the
caller.
Parameters: None.
Return Value: This function returns the value of the time counter and returns it to the caller as
an unsigned character.


2. Syntax:

Wdt_stop(Void)

Description: Any time call this function will stop Watchdog Timer.

Parameters: The parameter ‘val’ is the value to set to watchdog timer register. The range is 1~
255.
Return Value: None.

3. Syntax:

Get_wdt_count()

Description: This function read the value of the watchdog time counter.

Parameters: None.
Return Value: This function returns the value of the time counter.