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.
你(们)好 我正在尝试解锁 MSP432E40142 GPIO 引脚的 PD7引脚。 我知道您必须使用 GPIOLOCK 和 GPIOCR。
我现在尝试的代码是:
uint32_t GPIOLOCK = 0x4405B520;
HWREG (GPIOLOCK)= 0x4C4F4348;
要使用 HWREG(),我包含了 ti/ccs1020/ccs/tools/compiler/dMED/HTML/225.html 文件。
HWREG()函数调用现在抛出"expression must be a modifiable lvalue"错误。
如果除了 HWREG 之外还有一种更好的存储器访问方法、我就听不到了。
您好!
我能够找到另一位编写函数的用户的此 E2E 帖子,该用户也使用 HWREG()来解锁这些引脚。 您能不能看看、让我知道这是否也对您有用? https://e2e.ti.com/support/microcontrollers/msp430/f/msp-low-power-microcontroller-forum/738949/rtos-msp432e401y-pull-up-down-not-working-on-pd7
谢谢、
JD
谢谢 JD,它很有效!!