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.

[参考译文] AM2634-Q1:如何读取 GPIO 寄存器的所有 32 位或 16 位

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1590311/am2634-q1-how-to-read-all-32-or-16-bits-of-gpio-register

器件型号: AM2634-Q1

是否有 API 来读取完整的 GPIO 寄存器? 我想在寄存器中将整个 GPIO 读取为 16 位或 8 位值。 例如、我想读取 Port0 寄存器的整个 GPIO4 寄存器。  

 

谢谢

Varma

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

    您好、

    我们没有 API 来读取完整的 GPIO 寄存器。 但是、您可以使用 HW_RD_REG32 ()、它是 SDK 中的一个标准 API、由驱动程序用于读取完整的寄存器。

    此致、

    Ashwin