Datasheet
VIPER / VIPER-Lite Embedded Linux Development Kit Quickstart Examples for VIPER / VIPER-Lite
Examples for VIPER / VIPER-Lite
The Development Kit includes an example program, which demonstrates how to use
the VIPER I/O board. This can be found in examples/c/ directory on the CD. It
demonstrates how to access and manipulate many of the capabilities provided by the
VIPER I/O board. These include functions to:
Drive LEDs, relays and the sounder. •
•
•
•
•
•
•
•
•
•
Carry out operations using switches provided on the board.
Although this program is very simple, it can be used as a building block to write your
own embedded applications using the VIPER I/O board.
You can also use the utilities in the arcom-utils package as a reference while developing
your application. This package and its source can be found in packages/arcom-utils/
directory on the CD. The utilities and the functionality they provide are:
exar-XR16C2852-control, which configures an EXAR XR16C2852 UART. This chip
provides COM4 and COM5 on the VIPER board.
devmem2, which is a simple program that demonstrates how to read from, and
write to, any location in memory.
rtc-alarm, which provides a simple example of how to setup the RTC to generate
an alarm at a particular time.
pxaregs, a simple utility to read and modify the registers on a PXA255 XScale
processor.
viper-sleep.sh, which provides an example script to put a VIPER / VIPER-Lite
board into sleep mode.
isp1161-powerdown, which controls the power state of an isp1161 USB controller.
mtd-unlock and mtd-lock, which lock or unlock an mtd device respectively.
i2c-regs, which read from and write to the registers on devices on the I²C bus.
Further information on these utilities can be found in the README file in the package. A
MAKEFILE is provided to assist in building them from the sources.
© 2006 Arcom Issue B 29