This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Writing a simple Touch screen application

Other Parts Discussed in Thread: TSC2046, ADS7846

Hi, I am trying to write a simple touch screen application using TSC2046 controller and SPI on beagle board

I built the kernel with SPI and ADS7846 enable and installed the modules.

Now to write a simple application that recognizes the X and Y positions what should I do?

How should I

1. Initialize the controller

2. Read the x,y coordinates of the touched position

3. Create node

4. What are the read write functions for this? I could not find file_operations structure in ADS7846.c driver code

5. Should I use SPI driver's read and write functions ?

am I forgetting anything more ?

 

Thanks