Other Parts Discussed in Thread: CC3220SF
Hi there,
I'm new to TI products. Thanks for you to support so much of reference and helps.
I would like to set some of my GPIOs as INPUT, but it seems like some of them failed.
For example, these are what I set in CC3220SF_LAUNCHXL.c and .h:
GPIO_PinConfig gpioPinConfigs[] = {
/* for set device */
/* GPIO_DEVICE_0, pin63*/
GPIOCC32XX_GPIO_08 | GPIO_CFG_INPUT | GPIO_CFG_IN_INT_BOTH_EDGES,
/* GPIO_DEVICE_1, pin 53*/
GPIOCC32XX_GPIO_30 | GPIO_CFG_INPUT | GPIO_CFG_IN_INT_BOTH_EDGES,
/* GPIO_DEVICE_2, pin 50*/
GPIOCC32XX_GPIO_00 | GPIO_CFG_INPUT | GPIO_CFG_IN_INT_BOTH_EDGES,
...
};
GPIO_CallbackFxn gpioCallbackFunctions[] = {
NULL, /* GPIO_DEVICE_0 */
NULL, /* GPIO_DEVICE_1 */
NULL, /* GPIO_DEVICE_2 */
...
};
typedef enum CC3220SF_LAUNCHXL_GPIOName {
/* for read device */
GPIO_DEVICE_0,
GPIO_DEVICE_1,
GPIO_DEVICE_2,
...
CC3220SF_LAUNCHXL_GPIOCOUNT
} CC3220SF_LAUNCHXL_GPIOName;
When the pins are connected, only GPIO_DEVICE1 and 2 can read the signals. DEVICE_0 seems not read anything, and its interrupt callback doesn't work neither.
(It can do GPIO_write so... I suppose the GPIO mapping is correct?)
It also happens with some other pins as I trying to figure out which of them can be set to input successfully, even with some of them are said to have GPIO as primary function. (such as pin 45, GPIO_31)
Is there anything I missed for the set-up or any suggestion way how I can check for this?
Thank you.