- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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....
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey Bob i am waiting for reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May I have lunch?
I cannot find an interrupt. Probably you need to poll for USBUART_DataIsReady()
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SOF is "Start Of Frame" I do not know when it exactly fires.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
vinay,
check this thread if any relevalt information re: USBUART and ISR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ,
Is it possible to know how to enable USBUART ISR because it is different from normal isr
waiting for your reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.