You are here

INTERRUPT IN CX3 | Cypress Semiconductor


Summary: 2 Replies, Latest post by alex on 04 Nov 2015 06:12 AM PST
Verified Answers: 0
Last post
Log in to post new comments.
naga_silicic's picture
10 posts


    I am Nagarajan.K , new to This CX3 ,Actually I want know How to use Gpio Interrupts in cx3,My exact application is controlling Camera Sensor Parameter With No of GPIO Keys with Help Of Interrupt, Thansk In Advance. 




scutifer's picture
Cypress Employee
134 posts

 GPIO interrupts in CX3 work exactly the same way as in FX3.


Basically, you configure the GPIO using CyU3PGpioSetSimpleConfig where you can set the interrupt mode. Then, your GPIO interrupt callback that you registered via CyU3PGpioInit or CyU3PRegisterGpioCallBack will be called when FX3/CX3 sees that specific interrupt in that pin.


Inside the GPIO interrupt callback (of type CyU3PGpioIntrCb_t), the GPIO that actually saw the interrupt will be passed as the argument. Filter this out and do whatever you like. But note that this interrupt call is made in interrupt context, which means that any blocking API calls cannot be made from this callback.


You should do as little computation as possible and then exit the callback quickly.

alex's picture
3 posts

Thanks for the explanation. GPIO interrupt is working fine......

Log in to post new comments.