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.

GPIO驱动GPIO_TO_PIN()宏解释?

大家好:

          最近看GPIO驱动,遇到一个宏 GPIO_TO_PIN(bank,gpio) ,其中展开为bank*16+gpio;由于对GPIO理解不深,所以想请教,这个宏准确的参数意思和返回值,还有为什么是乘以16,然后就是GPIO1到GPIO6中某个引脚是和这个函数如何对应,请举例说明一下(最好以omap4系列举例),非常感谢!!!