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.

[参考译文] Linux/66AK2L06:如何知道每个 GPIO#39地址? 以及如何控制?

Guru**** 2927270 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/665885/linux-66ak2l06-how-to-know-each-gpio-s-address-and-how-to-control

器件型号:66AK2L06

工具/软件:Linux

您好!

我将尝试使用 GPIO 2、3输入和输出。

我将使用 mmap()来控制 GPIO,因为 sysfs 太慢(我希望输出频率达到5MHz)。

我在下面知道。

我知道 基地址和偏移量。

但我不知道每个 GPIO 引脚的地址。

例如、GPIO2的 DIR 寄存器和 GPIO3的 DIR 寄存器等等...

谢谢!