TinyUSB

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
networkfusion
Posts: 18
Joined: Thu May 18, 2017 11:57 am
Has thanked: 1 time
Been thanked: 6 times

TinyUSB

Post by networkfusion »

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...
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: TinyUSB

Post by Giovanni »

Well, it would be interesting, OSAL requirements look pretty easy to implement on top of our API.

Giovanni
mobyfab
Posts: 484
Joined: Sat Nov 19, 2011 6:47 pm
Has thanked: 21 times
Been thanked: 31 times

Re: TinyUSB

Post by mobyfab »

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
mobyfab
Posts: 484
Joined: Sat Nov 19, 2011 6:47 pm
Has thanked: 21 times
Been thanked: 31 times

Re: TinyUSB

Post by mobyfab »

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.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: TinyUSB

Post by Giovanni »

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
Ludeks
Posts: 9
Joined: Sun Mar 13, 2016 2:52 pm
Has thanked: 3 times

Re: TinyUSB

Post by Ludeks »

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?
mobyfab
Posts: 484
Joined: Sat Nov 19, 2011 6:47 pm
Has thanked: 21 times
Been thanked: 31 times

Re: TinyUSB

Post by mobyfab »

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 :)
Post Reply