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.

CC3220S-LAUNCHXL: How do you program a GPIO correctly.

Part Number: CC3220S-LAUNCHXL
Other Parts Discussed in Thread: CC3220S

Hi,

I am trying to add another GPIO to the this launch pad project.

I have done the following:

Placed:  GPIOCC32XX_GPIO_12 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_HIGH in gpioPinConfigs[] at index 5 in CC3220s_LaunchXL.c file and added it to GPIOName enum at index 5 as well in CC3220s_LaunchXL.h file.

Is this all that is needed?   I didnt not do a GPIO_Write to make it a '1' because I defaulted it to be high:

GPIOCC32XX_GPIO_12 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_HIGH

GPIO_12 is Pin 3 on the Part.

What am I missing?

Ozzy