Tslib

This library provides an abstraction level for touchscreen panel in embedded systems. Tested with an ads7843 touch screen controller (using kernel ads7846 driver).

Building and installing

Download the tslib archive and the patch below.
./autogen.sh
patch -p1 < ../tslib-1.0-avr32.patch
export ac_cv_func_malloc_0_nonnull=yes
CFLAGS="-O2 $CFLAGS" ./configure --host=avr32-linux  --prefix=/usr --sysconfdir=/etc
make
make install DESTDIR=/your_rfs_path
Then edit your /etc/ts.conf. For example remove the # before raw input if you want to use the input subsystem. Now export these env variables (change event0 with your current configuration)
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CONSOLEDEVICE=none
Now you can calibrate the touchscreen with /usr/bin/ts_calibrate

* tslib-1.0-avr32.patch: Tslib patch for AVR32

Attachment sort Action Size Date Who Comment
elsetslib-1.0-avr32.patch manage 1.7 K 28 Dec 2007 - 09:45 MatteoVit Tslib patch for AVR32