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

From Texas Instruments Wiki
Jump to: navigation, search

Content is no longer maintained and is being kept for reference only!




Construction Icon small.png This page is currently under construction. The content of this page is due to change quite frequently and thus the quality and accuracy are not guaranteed until this message has been removed. Please feel free to contribute to this page while construction is in progress.

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.


  1. x coordinate
  2. y coordinate
  3. pressure
  4. penup event
  5. pendown event

The driver report two types of events

  1. pen down event with x- cordinate, y-cordinate and pressure
  2. 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;
E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Android Devkit Touch Screen Porting Guide here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Android Devkit Touch Screen Porting Guide here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article Android Devkit Touch Screen Porting Guide here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article Android Devkit Touch Screen Porting Guide here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article Android Devkit Touch Screen Porting Guide here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Android Devkit Touch Screen Porting Guide here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Android Devkit Touch Screen Porting Guide here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article Android Devkit Touch Screen Porting Guide here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Android Devkit Touch Screen Porting Guide here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity