7 Replies Latest reply on Aug 18, 2016 11:22 AM by Intel Corporation

    Intel Edison MCU API - How to unregister a interrupt handler?

    rbulha

      How to unregister a interrupt handler?

       

      I need to catch the first pulse and then, I must disable the interrupt to happens.

       

      How could I do that? On MCU API documentation there is only:

       

      int gpio_register_interrupt(int gpio, int mode, irq_handler_t isr);

      ...where:

      gpio: GPIO port number

      mode: 0 = falling edge interrupt, 1 = rising edge interrupt

      isr: interrupt handler function

      Return value: 0 if successful

       

      I've already try to point the irq_handler_t  to 0, but doesn't work.