cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ 5, 3 & 1

Anonymous
Not applicable

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....

0 Likes
1 Solution
AnkitaS_51
Employee

There are ISR for each endpoints inside the file USBUART_episr.c. You can add your code in the OUT EP. When host is sending data to device OUT EP ISR will be triggered.

View solution in original post

0 Likes
11 Replies
Bob_Marlowe
Expert II

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

0 Likes
Anonymous
Not applicable

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 ?

0 Likes
Anonymous
Not applicable

Hey Bob i am waiting for reply

0 Likes
Bob_Marlowe
Expert II

May I have lunch?

   

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

   

 

   

Bob

0 Likes
Anonymous
Not applicable

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 ?

0 Likes
Bob_Marlowe
Expert II

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

   

 

   

Bob

0 Likes
Anonymous
Not applicable

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...

0 Likes
Bob_Marlowe
Expert II

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

0 Likes
odissey1
Honored Contributor II

vinay,

   

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

   

http://www.cypress.com/forum/psoc-5-device-programming/looking-advice-using-usbuart-interrupt-driven...

0 Likes
Anonymous
Not applicable

Hi ,

   

 

   

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

   

waiting for your reply

0 Likes
AnkitaS_51
Employee

There are ISR for each endpoints inside the file USBUART_episr.c. You can add your code in the OUT EP. When host is sending data to device OUT EP ISR will be triggered.

View solution in original post

0 Likes