beautypg.com

Avalue BFC-10R1 User Manual

Page 43

background image

User

’s Manual

RSC-IMX51 User

’s Manual

43

Current status (high/low) of the selected pin is passed to. 0: Low, 1: High

Remarks:

The current state of a selected pin is obtained by calling this function.

For example:

int dwVal;

dwVal=GPIO_BIT_INPUT(1, 31) is called to get the current state of GPIO1_31

which is the input pin 7 of JIO1 on RSC-iMX51.

Watchdog Function:

Watchdog timer of RSC-iMX51 consists a time-out counter with time-out periods

from 0.5 seconds up to 128 seconds. The APIs are used to start the watchdog timer

(WDT) with pre-defined timing (mini-seconds after).


WDT_START

void

WDT_START(DWORD timemsec);

Parameters:

timemsec: [in] WDT time-out value range from 500 msec to 128000 msec with time

resolution of 500 msec

Return Value:

None

Remarks:

This function enables WDT to start counting down from non-zero timemsec and then

time-out occurs when WDT counts to zero which causes system reboot. Calling this

function before time-out happening causes non-zero timemsec to be reloaded to the

watchdog counter and count down resumes.

For example:

WDT_START(

500

) means watchdog time-out happens after 500 mini-seconds.

Software reset:

void

IMX51_REBOOT(void);

Parameters:

None

Return Value:

None

Remarks:

This function enables software reset in Windows CE.

This manual is related to the following products: