Other Parts Discussed in Thread: CC1310
Greetings
I am looking to configure a GPIO pin, to be set (go "high) in the mainThread. However, when toggling the pin to go "high", it sits at 0V, when I measure the pin's voltage. I am using a CC1310 launchpad and editing the uartEcho example for this, where I want to configure IOID_25 specifically. This will be the CS pin for SPI communication for SPI0. I've referred to the documentation of creating a custom board and I have created a define in CC1310_LAUNCHPADXL.h;
#define CC1310_LAUNCHXL_GPIO_TEST_PIN IOID_25;
and I've defined the pin in Board.h as;
#define Board_TEST_GPIO_PIN25 CC1310_LAUNCHXL_GPIO_TEST_PIN.
I have also added configuration parameters for the pin itself in CC1310_LAUNCHPADXL.c, in the BoardGpioInitTable array;
CC1310_LAUNCHXL_GPIO_TEST_PIN | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW| PIN_PUSHPULL | PIN_DRVSTR_MAX,
To use the GPIO pin I've defined, I have created a function in a separate .c/.h file that includes <ti/drivers/GPIO.h> and Board.h and toggles the pin in the while(1) loop in the mainThread by;
GPIO_write(Board_TEST_GPIO_PIN25, Board_GPIO_LED_ON).
The pin however, does not go high when flashing the board. Other than the steps above, I am unsure where else I should make changes as beyond the steps I've implemented, the docs state that the GPIO_PinConfig be altered, however that is an array which seems to initialise the unused pins. I've made sure that GPIOCC26XX_DIO_25 is not present in that array.
Any help would be appreciated to find out why the pin is not going "high".
Regards