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.
工具/软件:Code Composer Studio
您好,
我想知道如何读取GPIO 引脚上的值。 我尝试分配一个变量来读取GPIO 引脚,但 没有获得任何o/p
下面是我的代码:
#include "DSP28x_Project.h"
INT A;
Void主(void)
{
EALLOW;
GpioCtrlRegs.GPAMUX1.bit.GPIO14 = 0;
gpioCtrlRegs.GPADIR.bit.GPIO14 = 1;
EDIS;
a=GpioDataRegs.GPADAT.bit.GPIO14;
}
请帮我解决这个问题。