首页| 论坛| 消息

标题:ts_event的问题
作者:xiaoc
日期:2007-12-18 13:14
内容:

大家好!

我的触模屏是ads7846
内核已经提供了驱动ads7846.c
不过他里面的struct ts_event和tslib-1.3里的提供的那几个都不对应
我驱动里的struct ts_event是这样的
struct ts_event {
/* For portability, we can't read 12 bit values using SPI (which
* would make the controller deliver them as native byteorder u16
* with msbs zeroed). Instead, we read them as two 8-bit values,
* *** WHICH NEED BYTESWAPPING *** and range adjustment.
*/
u16 x;
u16 y;
u16 z1,z2;
int ignore;
};


这个问题应该怎么解决呢 要改驱动吗?
还是有别的解决办法?


#1 [xiaoc 12-18 17:48]
怎么没有高人现身呢?
ts_calibrate 会调用ts_read_raw来读屏 为什么我每次只能读出来3个字节讷?
有没有熟悉ads7846的 这3个字节都代表什么阿?
#2 [xiaoc 12-20 16:06]
触摸屏基本搞定了
原因是内核没把tsdev.c编进去
input_attach_handler把我的device和mousedev_handler连起来了
最后还得靠自己
是不是问题太easy了都懒的回答阿
#3 [shiroki 12-27 12:52]
又来了...噎人哪

回复 发表
主题 版块