Hi,
I am using cc3200 launchpad,during debugging i am unable to access the gpio registers.
Regards
Arun
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.
Hi,
I am using cc3200 launchpad,during debugging i am unable to access the gpio registers.
Regards
Arun
Hi Arun,
Before you access peripheral registers, you need to enable the peripheral clock using PRCMPeripheralClkEnable() API.
Can you please confirm if your code does this call.
Pasting the code snippet (generated by TI Pinmux utility) from the blinky example :
PinMuxConfig(void)
{
//
// Enable Peripheral Clocks
//
MAP_PRCMPeripheralClkEnable(PRCM_GPIOA1, PRCM_RUN_MODE_CLK);
//
// Configure PIN_64 for GPIOOutput
//
MAP_PinTypeGPIO(PIN_64, PIN_MODE_0, false);
MAP_GPIODirModeSet(GPIOA1_BASE, 0x2, GPIO_DIR_MODE_OUT);
//
// Configure PIN_01 for GPIOOutput
//
MAP_PinTypeGPIO(PIN_01, PIN_MODE_0, false);
MAP_GPIODirModeSet(GPIOA1_BASE, 0x4, GPIO_DIR_MODE_OUT);
//
// Configure PIN_02 for GPIOOutput
//
MAP_PinTypeGPIO(PIN_02, PIN_MODE_0, false);
MAP_GPIODirModeSet(GPIOA1_BASE, 0x8, GPIO_DIR_MODE_OUT);
}
Thanks and Regards,
Praveen
Hi Praveen Kumar
Yes I have enabled the peripheral clock using PRCMPeripheralClkEnable() API using TI pinmux utility.can u explain how to initialise launchpad Push buttons,how do i get interrupt for the button press
Regards
Arun