I've attached some simplified code that exhibits what I think is odd behavior. If you run the code on the CY8CKIT-001 with the CY8C38 module installed you'll notice that when you touch a CapSense component the LED lights for a short period of time and it is identified on the display. Note that the PGA_Inv component is not started, it is commented out.
Now uncomment the PGA_Inv component and rebuild and run the project. Now, the LED blinks and the CapSense routines overwrite each other continuously. The PGA_Inv component must be triggering CapSense events.
Any idea as to what obvious thing I am missing?
If anyone is experiencing continuous CapSense events being triggered for no apparent reason, try moving CapSense_start() and CapSense_InitalizeAllBaselines() to the point after all analog components have been started.