-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding support for custom SOF ISR for CFG_TUD_VENDOR #2220
Conversation
- The previous check is likely not needed
|
How is a vendor driver not managed by usbd? I don't get it. If that is the case it makes absolutely no sense for me that there is a I agree that there should be a function to enable the SOF of the MCU but besides that... |
SOF interrupt is not always enabled since it interrupt 1 every 1ms which hurt performance and ampere. It will only enabled when needed. When will vendor eanble sof, and when will it disable sof interrupt ? Read my above explanation for audio sof for feedback endpoint. |
Again, yes the control of that is missing. The code I use so far is much older and rely on a symbol ( It also doesn't matter if it hurts performance when it's needed. Of course it should be off when it's not currently needed. What's the preferred way if an implementation wants to have it's own audio driver with endpoint control? I would imagine in that case the vendor driver should be used instead of altering the audio driver code of TinyUSB. If that is needed for audio why not for video? There can be just video and in a real time stream audio and video even needs to be synchronized. I'm still irritated why you think a vendor driver isn't controlled by usbd. |
English is not my first language, and I don't like to read and type much text. vendor sof is not auto managed by usdb, application turn it on and off by itself and stay permanently after that. Audio sof is only enabled when needed in run time by usbd. |
English is not my first langue either... At first I thought I know how a vendor defined device should look like. Due to your feedback I'm not sure anymore. 😟 I was expecting that each device should have at least one standard class from TinyUSB defined in the So if the internal classes are off the table, the driver can only be loaded by an application driver via Either way, sadly I haven't found a single example in the framework how the internal vendor class can be used or how to implement a custom application driver. So I would really appreciative if you can show me how TinyUSB is supposed to be used for a custom vendor define implementation which don't uses any of the common standard classes of TinyUSB. |
|
Ok, thank you.... ❤️ That helped to understand how you want it to be used. |
A draft for a generic SOF callback which is executed in the main loop via
tud_task()
can be found here: #2213