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

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
waxi_1305956
Level 3
Level 3

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?

0 Likes
2 Replies
Anonymous
Not applicable

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

0 Likes

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

0 Likes