I have modified your file and attached here. I have configured GPIO 49 as output in that firmware. Search for the text "mady" in that file to see the places where I have made the changes.
You can use CyU3PGpioSimpleSetValue API in the firmware to drive that GPIO high or low.
cyfxslfifosync.txt.zip 6.9 K