Tool/software: Code Composer Studio
I made one code of led blink for my pcb. I changed the board files according to my PCB. the pcb led is active low so i made the following configuration in pin configuration table.
const PIN_Config BoardGpioInitTable[] = {
CC2640R2_LAUNCHXL_DIO1 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW| PIN_PUSHPULL | PIN_DRVSTR_MAX, /* LED initially off */
PIN_TERMINATE
};
to make my led glow initially.
my gpio configuration is:
GPIO_PinConfig gpioPinConfigs[] = {
/* Input pins */
//GPIOCC26XX_DIO_01 | GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_RISING, /* Button 0 */
// GPIOCC26XX_DIO_14 | GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_RISING, /* Button 1 */
/* Output pins */
GPIOCC26XX_DIO_01 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_LOW,
//GPIOCC26XX_DIO_06 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_LOW,
};
The led keeps glowing and is not blinking i am not able to understand where the mistake is.
Please help me with this.
urgently required.
Smriti