How to set gpio interrupt on both edge on MK60F120?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to set gpio interrupt on both edge on MK60F120?

跳至解决方案
1,140 次查看
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 项奖励
回复
1 解答
899 次查看
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 项奖励
回复
1 回复
900 次查看
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 项奖励
回复