beautypg.com

Lanner Digital Input/Output User Manual

Page 18

background image

Software User Manual

Version 1.0

16

To execute the watchdog sample code, type:

The watchdog can serve two purposes: bypass and watchdog. Switch between them
with the following command first.

# ./wd_tst --swtsb (Set Watchdog Timeout State to Bypass function)

# ./wd_tst --swtsr (Set Watchdog Timeout State to Reset function)

Set watchdog timeout value and start/stop the watchdog with the following commands.

# ./wd_tst --swt xxx (Set Watchdog Timer 1-255 seconds)

# ./wd_tst[*] --start (Start Watchdog Timer)

# ./wd_tst --stop (Stop Watchdog Timer)

To execute the Status LED sample code, type:

#./sled_tst

As mentioned above, the status LED can be programmed to show the status of the
user-defined program. This sample program demonstrates lighting the LED for 4
seconds.

To execute the Software Reset Button test function, type:

# ./btn_tst