工具/软件:Code Composer Studio
我们正在尝试从 TMS320C6748开发板上的 GPIO 引脚读取数据、因此我们当前将电源连接到 J14上的引脚3、下面的代码在 CCS 7中以调试模式运行。 它不会感应电压的变化。 我们的 GPIO 引脚代码配置是否有问题? 在该板上、我们可以在哪里访问 GPIO 引脚? 此外、我们知道开关5、6、7、8也以某种方式连接到 GPIO、是否有人可以详细说明这一点?
提前感谢您的回答!
/**
* main.c
*
//#include "hw_emifa2.h"
//#include "hw_types.h"
//#include "SoC_C6748.h"
//#include "uartStdio.h"
//#include "interrupt.h"
//#include "EMIFA.h"
//#include "evmC6748.h"
#include "hw_gpio.h"
#include "gpio.h"
#include
#include "SoC_C6748.h"
#include "lcdkC6748.h"
#define _SOC_C6748_H_
//#define EMIFA_READ_SETUP_RESETVAL (0x00)
//#define EMIFA_READ_STROBE_RESETVAL (0x00)
//#define EMIFA_READ_HOLD_RESETVAL (0x00)
//#define EMIFA_TA_RESETVAL (0x00)
int main (空)
{
printf ("hello world\n");
while (1){
printf ("%d\n"、GPIOPinRead (SOC_GPIO_0_regs、0x03));
}
}