You are here

How to Create Thread in PSOC CY8KIT-059 | Cypress Semiconductor

How to Create Thread in PSOC CY8KIT-059

Summary: 11 Replies, Latest post by ANKS on 09 Nov 2016 12:19 AM PST
Verified Answers: 1
Last post
Log in to post new comments.
vinay.kushwah_1925991's picture
User
22 posts

Hi,

 

I want to create a thread in PSOC CY8KIT-059. i  linux we use pthread to create a thread but herei do  not  how to create thread in psoc.

is there any API is available for this ?  please tell me.

 

waitinf for your reply....

user_1377889's picture
User
9572 posts

There is no OS in a PSoC, so there is no API fro starting threads. You may consider using free RTOS which could do that.

 

Bob

vinay.kushwah_1925991's picture
User
22 posts

One question 

How to trigger USBUART Receiving interrupt. i am using USBUART_SOF_ISR. do i need to call it in main function as video tutorial has given on website for interrupt for switch ?

vinay.kushwah_1925991's picture
User
22 posts

Hey Bob i am waiting for reply

 

user_1377889's picture
User
9572 posts

May I have lunch?

I cannot find an interrupt. Probably you need to poll for USBUART_DataIsReady()

 

Bob

vinay.kushwah_1925991's picture
User
22 posts

Sorry i did not know that.

Hi Bob,

USBUART working with polling method but what i want,  when ever any data is coming through USBUART (Interrupt like switch)i want to perform some action.

 

So this thing i am looking  for ?

one more thing how to use USBUART_SOF_ISR ?

 

 

user_1377889's picture
User
9572 posts

SOF is "Start Of Frame" I do not know when it exactly fires.

 

Bob

vinay.kushwah_1925991's picture
User
22 posts

Hi  Bob,

Since i stucked on that part only  i did not find enough document related to USBUART ISR and how to use it . so can you do a favor, in your team can you ask about that because it is really important to me tomorrow i have to delivered the code but i am stuck with USBUART ISR.

 

Please  help me waiting for your ans...

 

 

user_1377889's picture
User
9572 posts

I would suggest you to get in contact with Cypress directly: At top of this page select "Design support -> Create a Support Case" and ask your question. You will be helped by a Cypress engineer.

Bob

user_342122993's picture
User
578 posts

vinay,

check this thread if any relevalt information re: USBUART and ISR

http://www.cypress.com/forum/psoc-5-device-programming/looking-advice-us...

vinay.kushwah_1925991's picture
User
22 posts

Hi ,

 

Is it possible to know how to enable USBUART ISR because it is different from  normal isr

waiting for your reply

Log in to post new comments.