You are here

whether the GPIO interrupt can be disable after the gpio had been init? | Cypress Semiconductor

whether the GPIO interrupt can be disable after the gpio had been init?

Summary: 2 Replies, Latest post by wang xinlong on 08 Mar 2016 07:22 PM PST
Verified Answers: 0
Last post
Log in to post new comments.
wang xinlong's picture
User
40 posts

I init the gpio with interrupt,when the MCU get a interrupt event,and then if i can disable the interrupt,because i use this gpio as other function?

mady's picture
Cypress Employee
967 posts

Hi,

Yes. You can call the CyU3PGpifSetSimpleConfig API again to configure the GPIO again for the second time without any interrupt enabled. By this you can use the GPIO for other functions.

Regards,

- Madhu Sudhan

wang xinlong's picture
User
40 posts

Can i call the CyU3PGpifSetSimpleConfig API again in the interrupt function?

Log in to post new comments.