Oct 28, 2018
12:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 28, 2018
12:58 PM
Hello,
In the sample USBFS_UART01 sample, one of the automatically generated sources is:
USBUART_episr.c
I want that my callback will be called upon an interrupt.
Should I modify USBUART_episr.c ?
I also added:
USBUART_EnableSofInt (); to main.c right after:
USBUART_Start
In general, how can I connect a specified interrupt in a device to my code ?
Thank you,
Zvika
Solved! Go to Solution.
Labels
- Labels:
-
PSoC 5LP
1 Solution
Oct 29, 2018
09:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 29, 2018
09:00 PM
Hi,
Even when there is no active data transmission, the host uses Start of Frame (SOF) tokens to keep devices out of a suspend state.
In the ISR of particular EP you can use API "USBFS_GetEPCount()" which returns the current byte count from the specified USBFS endpoint.
It is dependent on your firmware that you write in callback.
5 Replies