Hi,

Have a look at samples/basic/button/src/main.c  for instance.

Zephyr GPIO API  first requires to configure it through gpio_pin_configure()
and then to setup a callback and enabled/disable the relevant pin for that callback (you can do it by port directly,
if you need multiples pins at once). We don't expose the mask/unmask logic directly.

Tomasz

Hi tomasz and mahendra

what #define to be used in gpio_pin_configure to mask and unmask gpio interrupt ?
can you help me with an example ?

On Thu, Dec 8, 2016 at 8:20 PM, Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> wrote:
Hi,

So from the application level to mask and unmask gpio interrupts can I use QM_IR_MASK_INTERRUPTS & QM_IR_UNMASK_INTERRUPTS functions

(Or) should I use settings in gpio_pin_configure function ??


The second one. Always use the Zephyr GPIO API, so include/gpio.h

Tomasz