请问一下,那个am335x的板子触摸屏的模拟量管脚在那个文件设置的。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
TSCADC部分的管教是专门的管脚,没有其他的模式,不需要进行pinmux设置。
我是想说,比如我A0原来是作为电阻触摸屏的X+输入,现在怎么样把他改成X-或是把除A0以外的模拟量输入改成X+。
首先要搞清楚AM335x的TRM手册中Touchscreen Controller章节对TSC功能的描述,特别是关于Figure 12-2. Functional Block Diagram的理解。了解采样过程是怎样,driver如何处理的。
然后再根据你想要的接线模式,确认在每个采样step中,如何开关相应的SW来实现该功能,改写driver。
PS:并非任意通道都可以随意配置,主要是VDDA的SW和VSSA的SW不是每一个通道上都有。