Jul 12, 2012
08:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 12, 2012
08:53 AM
Hello, everyone,
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?
Thank you very much
3 Replies
Anonymous
Not applicable
Jul 13, 2012
04:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 13, 2012
04:46 AM
Hi Lehua Chen,
Please refer to example project "GpioComplexApp". It is using multiple threads.
Regards,
sai krishna.
Jul 13, 2012
07:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 13, 2012
07:43 AM
Anonymous
Not applicable
Jul 14, 2012
05:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 14, 2012
05:53 AM
Good to hear that your problem is solved.
Regards,
sai krishna.