我在用AM3517 EVM开发板,我现在想实现GPIO口的高低电平控制,不知道怎样实现一个简单的驱动,有人做过吗,能提供一个例子吗?谢谢!
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.
我在用AM3517 EVM开发板,我现在想实现GPIO口的高低电平控制,不知道怎样实现一个简单的驱动,有人做过吗,能提供一个例子吗?谢谢!
可以在网上找到很多gpio驱动框架的例子,只需要参照3517的数据手册对寄存器进行配置就可以实现了。
uboot-03.00.00.02\board\omap3\omap3517evm
u-boot-03.00.00.05\board\ti\am3517evm
根据使用版本需要在那里先声明一下使用的管脚,之后就可以控制GPIO了,这样是可以的,不知道还有没有其他方法