讯为itop4412开发板触摸屏调试
来源:互联网 发布:js获取div中的ul标签 编辑:程序博客网 时间:2024/06/13 07:28
代码分析
驱动位置:drivers/input/touchscreen/ft5x06_ts.c
static int __init ft5x0x_ts_init(void){ int ret; int type; type = get_lcd_type();#if 1 //TP1_EN //printk("==%s: TP1_EN==\n", __FUNCTION__); ret = gpio_request(EXYNOS4_GPL0(2), "TP1_EN"); if (ret) { printk(KERN_ERR "failed to request TP1_EN for " "I2C control\n"); //return err; } gpio_direction_output(EXYNOS4_GPL0(2), 1); s3c_gpio_cfgpin(EXYNOS4_GPL0(2), S3C_GPIO_OUTPUT); gpio_free(EXYNOS4_GPL0(2)); mdelay(5);#endif#if 1 printk("==%s: reset==\n", __FUNCTION__); ret = gpio_request(EXYNOS4_GPX0(3), "GPX0_3"); if (ret) { gpio_free(EXYNOS4_GPX0(3)); ret = gpio_request(EXYNOS4_GPX0(3), "GPX0_3"); if(ret) { printk("ft5xox: Failed to request GPX0_3 \n"); } } gpio_direction_output(EXYNOS4_GPX0(3), 0); mdelay(200); gpio_direction_output(EXYNOS4_GPX0(3), 1); s3c_gpio_cfgpin(EXYNOS4_GPX0(3), S3C_GPIO_OUTPUT); gpio_free(EXYNOS4_GPX0(3)); msleep(300);#endif //type = get_lcd_type(); if(0x00 == type) //9.7 { TOUCH_MAX_X = 1024; TOUCH_MAX_Y = 768;#ifdef CONFIG_VT //for Ubuntu touch_size = 1; scal_xy = 1;#else touch_size = 0; scal_xy = 1;#endif } else if(0x01 == type) //7.0 {#ifdef CONFIG_VT //for Ubuntu TOUCH_MAX_X = 800;//1280; TOUCH_MAX_Y = 1280;//800; scal_xy = 1; touch_size = 0;#else touch_size = 1;//0; swap_xy ===》在这里控制触摸屏的xy坐标翻转#endif } else if(0x02 == type) //4.3 { ; } if(1 == touch_size) { swap_xy = 1; } else { swap_xy = 0; } return i2c_add_driver(&ft5x0x_ts_driver);}
0 0
- 讯为itop4412开发板触摸屏调试
- 讯为ITOP4412开发板的IO配置方法
- [转帖]移植mplayer到迅为itop4412开发板
- 讯为ITOP4412的按键驱动分析
- 讯为ITOP4412的按键驱动分析
- 【分享】迅为iTOP4412开发板-Android系统屏幕旋转设置
- 基于迅为itop4412开发板的4G模块SIM7100的拨号上网的实现
- 基于迅为Itop4412开发板上控制ds18b20测量温度
- 基于迅为itop4412开发板的4G模块SIM7100的拨号上网的实现
- 迅为iTOP4412开发板上如何移植SDIO接口WIFI
- 【分享】iTOP4412开发板-Bluetooth移植文档
- 移植opencv2.4.9到itop4412开发板
- 移植mplayer到itop4412开发板
- iTop4412开发板的模块配置方法
- 【分享】iTOP4412开发板-Bluetooth移植文档
- itop4412开发板无法编译recovery
- JLINKv9在迅为iTop4412精英板上的应用
- 移植linux3.7.4系统到itop4412开发板记录
- java连接MYSQL
- 检测点3.2
- 2017年签到
- 用zookeeper实现分布式session
- 一天一篇文章吧总结一天也总结自我
- 讯为itop4412开发板触摸屏调试
- Java 链接MYSQL 显示数据所有记录
- spring mvc的表单类型转换(custom property editor)
- 区块链开发(一)搭建基于以太坊的私有链环境
- 线程池 ExecutorService 详细介绍以及注意点区别
- Git——创建版本库
- Android 7.0对比Android6.0新特性
- JavaScript里面的prototype是什么意思
- 几种流行Webservice框架性能对比