/************************************************
各位前辈:如题,小弟现在在搞一个linux下的触摸屏驱动,现有如下几个问题请教,恳请指点,谢谢! 要求:触摸屏通过USB口接到开发板(S3C2440为主芯片的)上,当用笔在触摸屏上滑动时,有一个鼠标箭头在开发板屏幕的相应位置显示; 问题: 1.要实现要求的功能需要哪些驱动?除了USB驱动,触摸屏驱动外还有吗? 2.要在开发板的屏幕显示一个鼠标,那就必须要在Qt或别的图形界面下显示对吗? 3.如果要在Qt下显示鼠标,是不是将触摸...
文件: 触摸屏.rar 大小: 182KB 下载: 下载 S3c2410开发板linux2.6移植触摸屏驱动移植 在 linux2.6.14 中没有提供 s3c2410 的驱动,所以我们要新建驱动文件,我们在 linux2.6.14/drivers/input/touchscreen 目录下建立新的文件 hfrk_s3c2410_ts.c 文件,驱动文件我们可以参考类似的触摸屏驱动,具体的内容参看网站或者光盘提供的源代码。 首先:我们需要修改 linux2.6.14/drivers/input/touchscreen 目录下的 makefile 文件,在...
嵌入式开发之触摸屏驱动移植移植 1、关于怎么把这个驱动用起来就不用再说了吧!如果还不清楚,就认真看看platform_device的相关资料,在我前面的帖子里也有很多介绍。 见/arch/arm/mach-s3c2410/dev.c文件: static struct s3c2410_ts_mach_info sbc2410_ts_platdata = { .delay = 10000, .presc = 49, .oversampling_shift = 2, }; struct platform_device s3c_device_ts = { .name =...
linux设备驱动归纳总结(十三):1.触摸屏与ADC时钟
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
1. # gedit drivers/input/touchscreen/Makefile 在最后加入下面一句: obj-$(CONFIG_TOUCHSCREEN_S3C2410) += s3c2410_ts.o 2. # gedit drivers/input/touchscreen/Kconfig 在12行找到: if INPUT_TOUCHSCREEN 在其后加入以下: config TOUCHSCREEN_S3C2410 tristate "Samsung S3C2410 touchscreen input driver" help Say Y here if you have the s3c2410 touchscreen. If un...
/* * The functions for inserting/removing us as a module. */ static int __init s3c2410ts_probe(struct device *dev) { struct s3c2410_ts_mach_info *info; info = ( struct s3c2410_ts_mach_info *)dev->platform_data; 注: s3c2410_ts_mach_info这个结构需要我们去填充,里面存放的是触摸屏需要的一些配置参数,见下面的附录部分。 if (!info) { printk(KERN_ERR "Hm... t...
s3c2410触摸屏在linux下的驱动分析 一 触摸屏驱动在/kernel/drivers/char/s3c2410-ts.c 文件中。 该驱动总要有以下重要数据结构: 1.触摸屏的file_operations static struct file_operations s3c2410_fops={ owner: THIS_MODULE, open: s3c2410_ts_open, read: s3c2410_ts_read, release: s3c2410_ts_release, #ifdef USE_ASYNC fasync: s3c2410_ts_fasync, #endif poll: s3c2410_ts_poll, }; 2.全...
s3c2410触摸屏在linux下的驱动分析 一 触摸屏驱动在/kernel/drivers/char/s3c2410-ts.c 文件中。 该驱动总要有以下重要数据结构: 1.触摸屏的file_operations static struct file_operations s3c2410_fops={ owner: THIS_MODULE, open: s3c2410_ts_open, read: s3c2410_ts_read, release: s3c2410_ts_release, #ifdef USE_ASYNC fasync: s3c2410_ts_fasync, #endif poll: s3c2410_ts_poll, }; 2....