Firstly, define and configure a GPIO that you want to control from the control endpoint.
Please add a vendor request to CyFxSlFifoApplnUSBSetupCB() block and add the desired test case.
Please find the attached .c file with the modified firmware for reference on where to add the vendor requests in the block.
The attached firmware consists of a pin (54) that is toggled when a vendor request 0x76 is transferred to the device from the control centre.
cyfxslfifosync.c.zip 7.1 K
That help was great.
Very clear how to init the gpio bits and where to place the code for the vendor request... Thanks.
I had replied with more questions but after some effort I managed to find it all
and get it working and edited this reply...