Tool/software: TI-RTOS
I am using ti-processor-sdk-rtos-am57xx-evm-03.01.00.06 with SYS/BIOS 6.45.01.29 GA Release for evm AM572x device and CCS v6.2.
Running TI RTOS on Cortex M4.
I have configured the pin as Input and I am registering the GPIO callback but I am not getting the gpio callback called when given trigger externally.
When same pin is configured as output and do gpio toggle is working fine.
Is there any step i have missed to get the interrupt callback?
GPIO6_19
#define GPIO_PIN_NUM (0x13) // 19
#define GPIO_PORT_NUM (0x06)
GPIO_PinConfig gpioPinConfigs[] = {
GPIO_DEVICE_CONFIG(GPIO_PORT_NUM, GPIO_PIN_NUM) |
GPIO_CFG_INPUT |GPIO_CFG_IN_INT_BOTH_EDGES
}
Void taskFxn(UArg a0, UArg a1)
{
System_printf("enter taskFxn()\n");
/* GPIO initialization */
GPIO_init();
/* Set the callback function */
GPIO_setCallback(0U, AppGpioCallbackFxn);
/* Enable GPIO interrupt on the specific gpio pin */
GPIO_enableInt(0U);
}
/*
* ======== Callback function ========
*/
void AppGpioCallbackFxn(void)
{
count++;
System_printf("AppGpioCallbackFxn %d\n",count );
//gpio_intr_triggered = 1;
}