NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
Android Devkit Touch Screen Porting Guide
Content is no longer maintained and is being kept for reference only!
About this Manual[edit]
This manual is intended to get Touch Screen working with Android DevKit. This wiki assumes that the touch screen driver is validated with a linux kernel image and filesystem. This wiki is applicable only to resistive touch screens.
Touch Screen Android Requirements[edit]
Android Framework expect five types of values are reported by the touch screen driver.
- x coordinate
- y coordinate
- pressure
- penup event
- pendown event
The driver report two types of events
- pen down event with x- cordinate, y-cordinate and pressure
- pen up event with pressure value being zero
Android requires the x-cordinate and y-cordinate need to be calibrated.
EXAMPLE: ads7846 touch screen driver[edit]
Lets see what changes are done in the case of ads7846 touch screen integrated with the omap3evm.
static void ads7846_report_state(struct ads7846 *ts) { struct ads7846_packet *packet = ts->packet; unsigned int Rt; u16 x, y, z1, z2;