How to set gpio interrupt on both edge on MK60F120?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to set gpio interrupt on both edge on MK60F120?

ソリューションへジャンプ
1,152件の閲覧回数
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 解決策
911件の閲覧回数
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 返信
912件の閲覧回数
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 件の賞賛
返信