Seeking advice on which template (if any) to start from. | Cypress Semiconductor
Seeking advice on which template (if any) to start from.
I have been learning to use the basic features of the FX3, and have it doing the simple things (manipluating I/O pins works, communication on the I2C bus to multiple peripherals works), but I need advice when it comes to the code structure, as well as general concepts of working with USB endpoints.
In concept my board is a high speed sample source with the GPIF in 32 bit mode with an external clock of up to ~55 MHz.
Cypress support has advised me how to set up buffers in a ping pong configuration so I shouldn't lose data at buffer segment switches (though I lost the GPIF II examples since the mycase disappeared before I downloaded them... oops.).
1) Currently I am considering starting with the 'SlaveFifoAsync' project and modifying it to suit my application. Can anyone advise if this sounds like a good or bad fit to the description?
2) Later I intend to modify the system further to use a 2nd USB endpoint to send data from the logging PC to the board to control a DAC for dynamically setting gain. This leads me to my question about the user application structure as I can't currently figure out where the user 'thread' is defined. (Currently I have been working on a modified copy of USBBulkLoopAuto and I can't find where the user thread is after the call to 'CyU3PKernelEntry(); is made.
Sorry for the noobish questions and thanks in advance.