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.

[参考译文] MSPM0G3519:MSPM0G3519、MSPM0G3218:直接访问芯片端口引脚的示例代码

Guru**** 2874300 points

Other Parts Discussed in Thread: MSPM0G3519

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1627901/mspm0g3519-mspm0g3519-mspm0g3218-sample-code-to-access-directly-to-port-pin-of-chip

器件型号: MSPM0G3519

尊敬的 TI 团队:

目前我了解、若要访问组的端口(例如端口组 A)、我们将创建一个带有定义的 GPIO_Regs 的指针。 然后、我们将使用此指针指向端口 A 组 B 的地址并更改值。

我们是否有一些代码可以在不使用指针的情况下支撑端口、PIN?  

例如、在 Renesas 的芯片中、我们有这个代码行可以访问端口 9 引脚 2

P9_bit.no 2.
我们是否有类似的东西,如 PA_bit.no 9(访问 PA9 )?