TinyUSB
Moderators: RoccoMarco, lbednarz, tfAteba
-
networkfusion
- Posts: 18
- Joined: Thu May 18, 2017 11:57 am
- Has thanked: 1 time
- Been thanked: 6 times
TinyUSB
Just wondering what people think about https://github.com/hathach/tinyusb/ and perhaps of benefit if someone were to create a port for ChibiOS. I notice they have a port for FreeRTOS, and think it would unlock a lot of possibilities for ChibiOS (e.g. USB Host and Ethernet over USB) without major maintenance requirements...
- Giovanni
- Site Admin
- Posts: 14891
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: TinyUSB
Well, it would be interesting, OSAL requirements look pretty easy to implement on top of our API.
Giovanni
Giovanni
Re: TinyUSB
I'm working on a port, I'll do a pull request with one or two examples, but if you find any mistakes below let me know:
https://github.com/hathach/tinyusb/comp ... in:chibios
https://github.com/hathach/tinyusb/comp ... in:chibios
Re: TinyUSB
I'm adding support in the Contrib repo:
https://github.com/ChibiOS/ChibiOS-Contrib/pull/228
Untested so far but it compiles
Will try on my F4 disco board when I have the time.
https://github.com/ChibiOS/ChibiOS-Contrib/pull/228
Untested so far but it compiles
Will try on my F4 disco board when I have the time.
- Giovanni
- Site Admin
- Posts: 14891
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: TinyUSB
Great, if it works we could include it as an extension under /ext like FatFS and lwIP.
If possible try to create all the glue code as "bindings" to be placed under /os/various.
Giovanni
If possible try to create all the glue code as "bindings" to be placed under /os/various.
Giovanni
Re: TinyUSB
mobyfab wrote:I'm working on a port, I'll do a pull request with one or two examples, but if you find any mistakes below let me know:
https://github.com/hathach/tinyusb/comp ... in:chibios
Did you open any PR there?
Re: TinyUSB
no, the TinyUSB code is too "dirty" and it's much simpler to do it the other way around
I did 95% of the work but there's still a few bugs, it's here: https://github.com/ChibiOS/ChibiOS-Cont ... SB-CDC-MSC
If anyone has some time to debug it, that would be great
I did 95% of the work but there's still a few bugs, it's here: https://github.com/ChibiOS/ChibiOS-Cont ... SB-CDC-MSC
If anyone has some time to debug it, that would be great