AM335x Touchscreen Driver's Guide
来源:互联网 发布:mac os 中英文切换 编辑:程序博客网 时间:2024/05/16 17:04
Introduction
Touchscreen controller on AM335x is an 8 channel general purpose ADC, with support for interleaving Touch Screen conversions for a 4-wire resistive panel. A resistive touchscreen operates by applying a voltage across a resistive network and measuring the change in resistance at a given point on the matrix where the screen is touched by an input (stylus or finger). The change in the resistance ratio marks the location on the touchscreen.
Driver Usage
Tslib
Test the working of touchscreen by using the Tslib utility.Tslib is an abstraction layer for touchscreen panel events, as well as a filter stack for the manipulation of those events. Tslib is generally used on embedded devices to provide a common user space interface to touchscreen functionality.
Environment variables
Make sure you have the following settings right.
- export TSLIB_FBDEVICE=/dev/fb0
- This is for the Fbdev device node to be used for display.
- export TSLIB_TSDEVICE=/dev/input/touchscreen0
Execution
- First run ts_calibrate to calibrate the touch screen.
- You can now run ts_test application. This application helps in moving a cross-hair pattern around the LCD touchscreen. The pattern moves with your stylus movements. Also there is a draw option supported. Using your stylus you can write/draw on touchscreen.
Driver Configuration
You can enable touchscreen driver as in the kernel as follows.
Device Drivers ---> Input device support ---> [*] Touchscreens ---> <*> TI Touchscreen Interface
Building as Loadable Kernel Module
- Incase if you want to build the drivers as modules, use <M> instead of <*> during menuconfig while selecting the drivers (as shown below). For more information on loadable modules referLoadable Module HOWTO
Device Drivers ---> Input device support ---> [*] Touchscreens ---> <M> TI Touchscreen Interface
- This step applies if the driver is built as module
- Do "make modules" to build the Touchscreen driver as module. The module should be present in "drivers/input/touchscreen/ti_tsc.ko".
- Load the driver using "ti_tsc.ko".
转载:http://processors.wiki.ti.com/index.php/AM335x_Touchscreen_Driver%27s_Guide
- AM335x Touchscreen Driver's Guide
- AM335x Touchscreen Driver's Guide 中文手册
- AM335x NAND Driver's Guide 中文手册
- AM335x LCD Controller Driver's Guide
- AM335x MMC/SD Driver's Guide中文手册
- AM335x LCD Controller Driver's Guide 中文手册
- AM335x U-Boot User's Guide
- AM335x PSP User's Guide 中文手册
- AM335x U-Boot User's Guide
- AM335x U-Boot User's Guide
- AM335x U-Boot User's Guide 中文手册
- Linux 802.11 Driver Developer’s Guide
- AM335X LCD Driver code
- Linux PSP GPIO Driver Guide
- The MSI Driver Guide HOWTO
- Symbian Developer's Guide
- Axis2 User's Guide
- Sharepoint User's Guide
- AM335x LCD Controller Driver's Guide
- 关键字弹出动画
- C++中的RTTI 与typeid
- 早睡早起后,如何高效利用好早起的时间?
- hdu 4708 Rotation Lock Puzzle
- AM335x Touchscreen Driver's Guide
- C/C++ 笔试、面试题目大汇总
- 一起学习iOS开发专用词汇,每天记3个,助你变大牛
- 编程语言关系图谱
- java Future用法和意义一句话击破
- !!!argc and argv as parameter of main function
- Friendly URLs for Liferay Portlets
- [转载]Linux strace命令
- nonparametric Bayesian model motivation