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.

CC2640R2F: Initializing an ISR callback function on CC2640R2_LAUNCHXL_SPI_SLAVE_READY.

Part Number: CC2640R2F
Other Parts Discussed in Thread: TMP116

Hi

I need to initialize an ISR callback on CC2640R2_LAUNCHXL_SPI_SLAVE_READY. I made the changes at the following positions.

GPIO_PinConfig gpioPinConfigs[] = {
/* Input pins */
GPIOCC26XX_DIO_13 | GPIO_DO_NOT_CONFIG, /* Button 0 */
GPIOCC26XX_DIO_14 | GPIO_DO_NOT_CONFIG, /* Button 1 */

GPIOCC26XX_DIO_15 | GPIO_DO_NOT_CONFIG, /* CC2640R2_LAUNCHXL_SPI_MASTER_READY */
GPIOCC26XX_DIO_21 | GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_FALLING, /* CC2640R2_LAUNCHXL_SPI_SLAVE_READY configured as falling edge triggered*/
/* Output pins */
GPIOCC26XX_DIO_07 | GPIO_DO_NOT_CONFIG, /* Green LED */
GPIOCC26XX_DIO_06 | GPIO_DO_NOT_CONFIG, /* Red LED */
GPIOCC26XX_DIO_30 | GPIO_DO_NOT_CONFIG, /* TMP116_EN */

/* SPI Flash CSN */
GPIOCC26XX_DIO_20 | GPIO_DO_NOT_CONFIG,

/* SD CS */
GPIOCC26XX_DIO_21 | GPIO_DO_NOT_CONFIG,

/* Sharp Display - GPIO configurations will be done in the Display files */
GPIOCC26XX_DIO_24 | GPIO_DO_NOT_CONFIG, /* SPI chip select */
GPIOCC26XX_DIO_22 | GPIO_DO_NOT_CONFIG, /* LCD power control */
GPIOCC26XX_DIO_23 | GPIO_DO_NOT_CONFIG, /*LCD enable */
};

And  

GPIO_CallbackFxn gpioCallbackFunctions[] = {
NULL, /* Button 0 */
NULL, /* Button 1 */
NULL, /* CC2640R2_LAUNCHXL_SPI_MASTER_READY */
SendDataOverSpi, /* CC2640R2_LAUNCHXL_SPI_SLAVE_READY callback function */
};

Now when i trigger the interrupt the breakpoint doesn't hits at SendDataOverSpi .


Is there anything I'm missing while configuring the ISR callback.

Regards

Sudhanshu