USB Composite library?
USB Composite library?
Looking at the usb hid and serial code, it looks like things are quite different from the libmaple core on the USB side. But it should still be possible to port my USB Composite library to this core, with a little bit more abstraction. Is anyone interested in helping out?
Re: USB Composite library?
I could hep on this.
Give me some hints on how you think to integrate it.
Give me some hints on how you think to integrate it.
Re: USB Composite library?
Thanks! I'll do some more abstracting, hopefully getting things to the point where it's clear which functions need to be rewritten.
Re: USB Composite library?
My plan is to do some light abstracting in a way that makes usb_generic.c be the only thing that needs to be rewritten. In other words, my hope is that eventually none of the plugins will need any changes. And I'm hoping I can do the abstracting in a way that doesn't add bloat.
Re: USB Composite library?
In the "abstracted" branch, I'm slowly moving all core-centric code to usb_generic.*. Then we'll just need to port that.
Re: USB Composite library?
I've tried to move all the core-dependent code to usb_generic.*. This is in the abstracted branch.
However, looking at the official stm32 core, it looks like it will be a non-trivial task to rewrite usb_generic.* to work with the official core's usb support. I think it might be easiest to interface usb_generic.* with the low-level drivers.
But I know very little about the official core, and the HAL stuff looks impenetrable.
However, looking at the official stm32 core, it looks like it will be a non-trivial task to rewrite usb_generic.* to work with the official core's usb support. I think it might be easiest to interface usb_generic.* with the low-level drivers.
But I know very little about the official core, and the HAL stuff looks impenetrable.
Re: USB Composite library?
Let me know what is your entry point for USB.
Probably we coiuld add the HIDComposite as a library.
Probably we coiuld add the HIDComposite as a library.
Re: USB Composite library?
One other approach could be to add the USB composite as a standalone feature mutually exclusive with the default USB stack from ST.
I'm following the TinyUSB project which seems promising.
I'm following the TinyUSB project which seems promising.
Re: USB Composite library?
That would still require work to interface with HAL as currently the code is only for stm32f1.
-
- Posts: 13
- Joined: Fri Apr 24, 2020 5:03 am
Re: USB Composite library?
Would like to see tid happen, can help with testing if necessary