intel-iot-devkit / zmraa

mraa.io implementation for Zephyr. Provides a way to use the mraa.io C API on Zephyr 1.4, 1.5 & 1.6 and use UPM modules.
MIT License
8 stars 13 forks source link

GPIO Interrupts do not appear to work #41

Closed jontrulson closed 7 years ago

jontrulson commented 7 years ago

Hi,

I am setting up an interrupt to trigger on GPIO 2. This is for the Arduino 101, Zephyr 1.6.

Calling mraa_gpio_isr() succeeds (no error is returned), however interrupts fail to be triggered.

mraa_gpio_isr(dev->gpio, MRAA_GPIO_EDGE_RISING, &wfs_flow_isr, dev)

_wfs_flowdev is the interrupt function, and dev is the device context I am supplying.

Any clues?

whbruce commented 7 years ago

I ran a test with GPIO #4 on Arduino 101, Zephyr 1.7 and it worked as expected.

jontrulson commented 7 years ago

Yes, once I updated to Zephyr 1.7 and new SDK, it all worked as expected. I'll close this.