Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I test separately the Slave FIFO Syn example and the I2S example. They are working well. Now I need to combine these two firmware together. I want to create two threads, one for the Slave FIFO Syn ( P to U to PC; endpoint 0x81), the other for the I2S (PC to U to I2S; endpoint 0x01). In my program, there are two Thread_Entry(), each including its own application initialization (eg. CyFxSlFifoApplnInit ()). However the CyU3PUsbStart() and descriptors are called in both application initialization functions. This induces that only one function can work (Slave FIFO Syn or I2S). What is the strategy to call the CyU3PUsbStart() and descriptors in the case of multiple threads?