Part Number:CC3200-LAUNCHXL
Tool/software: Code Composer Studio
Hi everyone,
I am working with CC3200 LAUNCHXL and CCS. I´ve configured a GPIO interrupt for both edges, and it works, but I would like to distinguish between rise or falling edge when the interrupt routine is halted.
This is what I want to achieve:
//***************************************************************************** // //! GPIO INTERRUPT ROUTINE // //***************************************************************************** void GPIOTask() { // // Clear the interrupt, this is important else the interrupt will // re-trigger as soon as the control exits this handler // // Distinguish between rising or falling edge //If falling edge, do { // Action 1 //} else do { // Action 2 //} //MAP_GPIOIntClear(GPIOA1_BASE,GPIO_PIN_4); GPIOIntClear(GPIOA1_BASE,GPIO_PIN_4); IntPendClear(INT_GPIOA1); UART_PRINT("Interrupt on PIN 3: P03 \n\r"); IntEnable(INT_GPIOA1); GPIOIntEnable(GPIOA1_BASE,GPIO_INT_PIN_4); }
Do you know how can I distinguish between falling or rising edge?
Thanks in advance. I hope you can guide me on this.