linuxman-phil 发表于 2010-08-10 16:19

求助啊,s3c2410_ts.c触摸屏驱动的gpio配置疑问

前些天看了s3c2410的触摸屏控制器的datesheet,今天阅读了内核为2.6.32.2中的触摸屏驱动s3c2410_ts.c,其中对GPIO的配置无法理解:
下面贴上源代码:   1.         /* Configure GPIOs */
   2.         s3c2410_ts_connect();   1. static inline void s3c2410_ts_connect(void)
   2. {
   3.         s3c2410_gpio_cfgpin(S3C2410_GPG(12), S3C2410_GPG12_XMON);
   4.         s3c2410_gpio_cfgpin(S3C2410_GPG(13), S3C2410_GPG13_nXPON);
   5.         s3c2410_gpio_cfgpin(S3C2410_GPG(14), S3C2410_GPG14_YMON);
   6.         s3c2410_gpio_cfgpin(S3C2410_GPG(15), S3C2410_GPG15_nYPON);
   7. }s3c2410不是有专门的adc输入引脚吗?那么他为什么把GPG12-GPG15配置成11(系统保留)呢?
请大虾指点迷津:em16:

embeddedlwp 发表于 2011-05-20 15:48

关注

吴中落苏 发表于 2011-05-27 09:57

我也很困惑,后发觉2。6。34中有注释:

s3c2410_ts_connect - configure gpio for s3c2410 systems

Configure the GPIO for the S3C2410 system, where we have external FETs
connected to the device (later systems such as the S3C2440 integrate
these into the device).
页: [1]
查看完整版本: 求助啊,s3c2410_ts.c触摸屏驱动的gpio配置疑问