Hi,
I am trying to toggle GPIO25 (PIN_21) on cc3200 but it doing nothing. I wrote program
unsigned char g_ucPIN21gpio;
unsigned int ulPort = 3;
#define PIN21gpio 25
GPIO_IF_GetPortNPin(PIN21gpio, &ulPort, &g_ucPIN21gpio);
GPIO_IF_Set(PIN21gpio, ulPort, g_ucPIN21gpio, 0);
MAP_UtilsDelay(8000000);
GPIO_IF_Set(PIN21gpio, ulPort, g_ucPIN21gpio, 1);
MAP_UtilsDelay(8000000);
I have used Pin Mux tool to create mux.h and .c file
void PinMuxConfig(void)
{
//
// Enable Peripheral Clocks
//
PRCMPeripheralClkEnable(PRCM_GPIOA3, PRCM_RUN_MODE_CLK);
//
// Configure PIN_21 for GPIO Output
//
PinTypeGPIO(PIN_21, PIN_MODE_0, false);
GPIODirModeSet(GPIOA3_BASE, 0x2, GPIO_DIR_MODE_OUT);
}
can anyone of you suggest me what is wrong here. Thank You in advance.