2 Replies Latest reply on Nov 4, 2015 6:12 AM by alex.j_1416716

    INTERRUPT IN CX3

    nagarajan.k

       hi,

         

          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. 

         

       

         

      Regards,

         

      Nagarajan.K 

        • 1. Re: INTERRUPT IN CX3
          kumr

           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.

          • 2. Re: INTERRUPT IN CX3
            alex.j_1416716

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