3 Replies Latest reply on Jan 7, 2015 6:43 PM by seyhana_

    Configure gpio for external interrupt issue- SN8000 evk

    userc_10213

      Hi

       

      I want to configure a gpio of SN8000 evk for external interrupt.I used the following code for this purpose (WICED SDK 2.4.1)

       

      static void gpio_irq_handler( void* arg )

      {

          UNUSED_PARAMETER(arg);

          if(EXTI_GetITStatus(EXTI_Line3) != RESET)

          {

              //Handle the interrupt

              EXTI_ClearITPendingBit(EXTI_Line3);

          }

      }

       

      void application_start( )

      {

          wiced_init( );

          wiced_gpio_init(WICED_GPIO_4,INPUT_PULL_DOWN);   //WICED_GPIO_4 is A3

          gpio_irq_enable(GPIOA, 3, IRQ_TRIGGER_RISING_EDGE, gpio_irq_handler, 0);

          //custom_irq_pin_config();

          while(1);

      }

       

      I connected a MSP430 board which simulates HIGH->LOW and LOW->HIGH transitions to the ST17 (A3 as per schematics of SN8000 evk) and I was able to the interrupt is getting triggered for both Rising and Falling edge even-though I have configured it for Rising edge only (checked by putting a break point inside the ISR).

       

      What might be causing this issue? How can I solve it?

       

      Regards

      Hariprasad C R