目前我们希望设置GPIO1_21 pin脚。
1,相关API接口是哪个?
2,对应的arch/arm/目录下的mach是哪一个呢?omap2?
3,有没有相关的文档或者工具,麻烦指导下。
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.
目前我们希望设置GPIO1_21 pin脚。
1,相关API接口是哪个?
2,对应的arch/arm/目录下的mach是哪一个呢?omap2?
3,有没有相关的文档或者工具,麻烦指导下。
你可以参考下这个文档:http://processors.wiki.ti.com/index.php/GPIO_Driver_Guide
具体应用可以参考/arch/arm/mach-omap2/Board-am335xevm.c文件中的gpio_keys_init(),对应驱动在\drivers\input\keyboard\gpio_keys.c中