2 watchdog – Acrosser AR-B6051 User Manual

Page 54

Advertising
background image

6.3.2.2 Watchdog

1. Syntax:

u8 getWtdTimer(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:

void setWtdTimer( u8 val )

Description: This function sets the watchdog timer register to the value ‘val’ and starts to count

down. The value could be 0 ~ 255. The unit is second. Setting the timer register to 0 disables the

watchdog function and stops the countdown.

Parameters: The parameter ‘val’ is the value to set to watchdog timer register. The range is 0 ~ 255.

Return Value: None.

54

Advertising