eclipse-threadx / usbx

Eclipse ThreadX - USBX is a high-performance USB host, device, and on-the-go (OTG) embedded stack, that is fully integrated with Eclipse ThreadX RTOS
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/usbx/index.md
MIT License
157 stars 91 forks source link

standalone usbx host stack support #121

Closed mendez23 closed 11 months ago

mendez23 commented 11 months ago

Greetings!

Is USBX host stack supported in standalone mode, i.e, without using Threadx or an RTOS?

Thank you!

BluesharkPD commented 11 months ago

Yes it work's for host class hid, storage, cdc acm, printer, hub

mendez23 commented 11 months ago

@BluesharkPD , thanks for the confirmation.

I have few follow-on questions:

  1. Is hub class supported as part standalone usbx host stack?
  2. Is composite hid device as part of device stack supported?
  3. Since device stack can also be standalone, can both device and host stack be used together as standalone?
  4. I'm assuming that using other rtos like freertos is still ok, but usbx stack itself is single threaded, correct?

I would really appreciate some clarity here, and thank you in advance!

BluesharkPD commented 11 months ago

@mendez23 which mcu are you using??, you need to enchure that usbx controllers support standalone mode

BluesharkPD commented 11 months ago
  1. Yess hub class is supported in standalone mode.
  2. Most of USBX device class work in standalone.
  3. I guess yess since otg mode is supported.
  4. In Rtos mode only thread mx is supported but in standalone mode i suppose that if you put usb process in a thread it it will work fine.
mendez23 commented 11 months ago

@BluesharkPD thanks for the clarifications! currently using stm32f746 for prototyping -- usbx examples work, but have not tried standalone mode..

BluesharkPD commented 11 months ago

As I khnow the last x-cube-azrtos-f7 is not up to date so I recommende to refer to h7 azrtos package it support standalone and update middleware and controllers interface. There's also standalone host and device application. For Stm32h7 and stm32F7 it's the same ip so application could be similar.

mendez23 commented 11 months ago

@BluesharkPD thanks. Will check them out.