Tool/software: Code Composer Studio
We're trying to read from GPIO pins on the TMS320C6748 dev board, so we currently have a power source connected to pin 3 on J14, with the code below running in debug mode in CCS 7. It's not sensing the change in voltage. Is there a problem with our code configuration of the GPIO pins? Where on this board would we be able to access GPIO pins? Additionally, we know the switches 5,6,7,8 are also connected to GPIO somehow, could someone elaborate on that please?
Thanks in advance for your answer!
/**
* 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 <stdio.h>
#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(void)
{
printf("hello world\n");
while(1){
printf("%d\n", GPIOPinRead(SOC_GPIO_0_REGS, 0x03));
}
}