Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Multiple Threads

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Multiple Threads
Moderator:
RSKV

Post Reply
Follow this topic



Multiple Threads

clh23047 posted on 12 Jul 2012 6:53 AM PST
Top Contributor
65 Forum Posts
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



Re: Multiple Threads

RSKV posted on 13 Jul 2012 02:46 AM PST
Cypress Employee
655 Forum Posts

 Hi Lehua Chen,

Please refer to example project "GpioComplexApp". It is using multiple threads.

Regards,

sai krishna.



Re: Multiple Threads

clh23047 posted on 13 Jul 2012 05:43 AM PST
Top Contributor
65 Forum Posts

Hello, sai Krishna,

Thank you for your reply. I just solved the problem.

Thanks a lot.

Lehua Chen



Re: Multiple Threads

RSKV posted on 14 Jul 2012 03:53 AM PST
Cypress Employee
655 Forum Posts

 Good to hear that your problem is solved.

Regards,

sai krishna.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.