BL4S200 User’s Manual
199
rn_enable_wdt
int rn_enable_wdt(int handle, int wdttype);
FUNCTION DESCRIPTION
Enables the hardware and/or software watchdog timers on a peripheral card. The soft-
ware on the peripheral card will keep the hardware watchdog timer updated, but will
hard reset if the time expires. The hardware watchdog cannot be disabled except by a
hard reset on the peripheral card. The software watchdog timer must be updated by soft-
ware on the master. The peripheral card will soft reset if the timeout set by
rn_sw_wdt()
expires.
This function will
check device information to determine that the
peripheral card is connected to a master.
PARAMETERS
handle
address index to device information. Use
rn_device()
or
rn_find()
to establish the handle.
wdttype
0 enables both hardware and software watchdog timers
1 enables hardware watchdog timer
2 enables software watchdog timer
RETURN VALUE
The status byte from the previous command. -1 means that device information indicates
the peripheral card is not connected to the master.
SEE ALSO
rn_hitwd, rn_sw_wdt