你好,使用TI的MSP432E401Y中,使用PD7和PE7作为按键,结果发现该按键已经被锁定,想知道如何解锁,希望得到参考代码
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.
你好,使用的是MSP432E401Y Launch Pad改动后的开发板,通过设置PD7为输出高电平模式没有反应, (Blinky例程中,同LED类似)
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);
while(!SysCtlPeripheralReady(SYSCTL_PERIPH_GPIOD))
{ };
GPIOPinTypeGPIOOutput(GPIO_PORTD_BASE, GPIO_PIN_7);
GPIOPinWrite(GPIO_PORTD_BASE,GPIO_PIN_7,GPIO_PIN_7);
通过万用表检查发现该引脚为浮空状态,阅读资料后发发现该引脚被锁定(上图为数据手册截图,要求对PD7和PE7解锁使用):参考https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/738949/rtos-msp432e401y-pull-up-down-not-working-on-pd7 后 但是无法编译通过 Power_setDependency()函数,求指导,网上代码都没有成功,问如何解锁该引脚作为普通使用,谢谢