Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > How to configue the threadIndex of CyU3PGpifSocketConfigure()

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



How to configue the threadIndex of CyU3PGpifSocketConfigure()
Moderator:
RSKV

Post Reply
Follow this topic



How to configue the threadIndex of CyU3PGpifSocketConfigure()

tickyy posted on 06 Mar 2012 12:09 AM PST
Member
7 Forum Posts

Hi,

   I  want to set the FLAGA and FLAGB as the partial flag by using CyU3PGpifSocketConfigure(),but I don't understand the mean of threadIndex.What parameter I should give to the threadIndex.Is the name of the thread?




Re: How to configue the threadIndex of CyU3PGpifSocketConfigure()

Chris R. posted on 06 Mar 2012 01:56 AM PST
Top Contributor
135 Forum Posts

The thread index is the associated thread of the socket. Without modifications the 4 threads 0 to 3 are 1:1 mapped to the sockets 0 to 3. This is made in the GPIF descriptor file.



Re: How to configue the threadIndex of CyU3PGpifSocketConfigure()

tickyy posted on 06 Mar 2012 04:29 AM PST
Member
7 Forum Posts

Thanks.I have make the configue as CyU3PGpifSocketConfigure(0,CY_FX_PRODUCER_PPORT_SOCKET,3,CyFalse,0).But I don't get  the result. It also has  3  cycle latency.I have make this configue after the CyU3PUsbStart. Does this configue is right?

Thanks



Re: How to configue the threadIndex of CyU3PGpifSocketConfigure()

Chris R. posted on 06 Mar 2012 11:50 AM PST
Top Contributor
135 Forum Posts

Did you also change the GPIF descriptor to route the partial flag to the output pin?



Re: How to configue the threadIndex of CyU3PGpifSocketConfigure()

tickyy posted on 06 Mar 2012 07:51 PM PST
Member
7 Forum Posts

Hi  Chris R:

    I'm sorry.I don't change the the GPIF descriptor befor.But when I change the the descriptor,I meet the new problem.

   I used code base on the slfifosync of Release version 1.0.So in my project,it doesn't have  the  GPIF descriptor.It replaced by cyfxslfifosync.h.I have tried as follow.

Firstly,  I change the value of  Sync_Slave_Fifo_2Bit_CyFxGpifRegValue in the cyfxslfifosync.h.

        The number 0x00000018,  /*  PIB_GPIF_CTRL_BUS_SELECT */ is changed into 0x00000019((as the partial).

        when I download the file using the control center,the computer show the equitpment  can't be recognized on the down rigtht corner.

Secondly,I change the number 0x00000018 into 0x00000010(as the dedicated).

      It can download well.But the three cycle latency don't disappear.

Thirdly,I use the GPIF II to generate the file .I set FLAGA connect to current_Thread_DMA_waterMark.

         In the project ,I use the file of cyfxgpif2config.h replace the cyfxslfifosync.h.

        when I download the file, meeting the same problem like the first.

That't the problem I met.Can you give me some adjust.

Thanks. 

 



Re: How to configue the threadIndex of CyU3PGpifSocketConfigure()

tickyy posted on 09 Mar 2012 10:50 PM PST
Member
7 Forum Posts

Does some one has met this?



Re: How to configue the threadIndex of CyU3PGpifSocketConfigure()

lint posted on 30 Mar 2012 07:29 AM PST
Top Contributor
21 Forum Posts

hi,tickyy!

can you tell me where is the function CyU3PGpifSocketConfigure()?i just saw it in the head file"cyu3gpif.h",but i can't find where the function is used(i mean in the example the cypress provide),can you tell me?

regards,

lint



Re: How to configue the threadIndex of CyU3PGpifSocketConfigure()

tickyy posted on 01 Apr 2012 02:30 AM PST
Member
7 Forum Posts

Hi  lint,

    It  didn't used  in the example of cypress support.You have to try by yourself.



Re: How to configue the threadIndex of CyU3PGpifSocketConfigure()

lint posted on 03 Apr 2012 01:22 AM PST
Top Contributor
21 Forum Posts

 thanks,tickyy,i know






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.