-
触摸屏及ADC驱动在mini2440上的实现
资源介绍
mini2440的ADC驱动和触摸屏驱动, 包括修改后mini2440的BSP(linux-2.6.39.4).
ADC驱动注册为misc device, 挂载再platform bus
触摸屏驱动注册为input device, 挂载再platform bus上, 并根据官方自带的BSP进行修改, 使它隶属于option peature。
测试信息:
#/home/readadc
adc value: 416
Do you want to read again?n
#/home/test_input
Type is 1, code is 330, value is 1.
ABS_PRESSURE = 1
x = 201.
y = 327.
Type is 0, code is 0, value is 0.
x = 200.
y = 329.
Type is 0, code is 0, value is 0.
x = 201.
y = 330.
Type is 0, code is 0, value is 0.
y = 326.
Type is 0, code is 0, value is 0.
x = 206.
y = 319.
Type is 0, code is 0, value is 0.
x = 211.
y = 314.
Type is 0, code is 0, value is 0.
x = 219.
#/home/readadc
adc value: 416
Do you want to read again?n
- 上一篇: 发酵法生产京尼平菌株的筛选与培养 (2011年)
- 下一篇: linux内核详解和0.01内核源代码