How to set gpio interrupt on both edge on MK60F120?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to set gpio interrupt on both edge on MK60F120?

Jump to solution
571 Views
danielchai
Senior Contributor I

Hi All,

When I use

lwgpio_int_init(&switch4, LWGPIO_INT_MODE_RISING);

to set the interrupt mode for a I/O, how can I set the interrupt mode to both edge?

Thank you.

-Daniel

0 Kudos
1 Solution
330 Views
danielchai
Senior Contributor I

On MQXIOUG.pdf page 244, it said you can set it as

lwgpio_int_init(&switch4, LWGPIO_INT_MODE_RISING|LWGPIO_INT_MODE_FALLING);

View solution in original post

0 Kudos
1 Reply
331 Views
danielchai
Senior Contributor I

On MQXIOUG.pdf page 244, it said you can set it as

lwgpio_int_init(&switch4, LWGPIO_INT_MODE_RISING|LWGPIO_INT_MODE_FALLING);

0 Kudos