mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
Get SAMA5D configurations ready for USB hub testing
This commit is contained in:
@@ -1951,8 +1951,9 @@ USB High-Speed Host
|
||||
CONFIG_USBHOST_MSC=y : Enable the mass storage class driver
|
||||
CONFIG_USBHOST_HIDKBD=y : Enable the HID keyboard class driver
|
||||
|
||||
Library Routines
|
||||
CONFIG_SCHED_WORKQUEUE=y : Worker thread support is required
|
||||
RTOS Features -> Work Queue Support
|
||||
CONFIG_SCHED_WORKQUEUE=y : High priority worker thread support is required
|
||||
CONFIG_SCHED_HPWORK=y :
|
||||
|
||||
Application Configuration -> NSH Library
|
||||
CONFIG_NSH_ARCHINIT=y : NSH board-initialization
|
||||
@@ -1985,12 +1986,46 @@ USB High-Speed Host
|
||||
CONFIG_USBHOST_MSC=y : Enable the mass storage class driver
|
||||
CONFIG_USBHOST_HIDKBD=y : Enable the HID keyboard class driver
|
||||
|
||||
Library Routines
|
||||
CONFIG_SCHED_WORKQUEUE=y : Worker thread support is required
|
||||
RTOS Features -> Work Queue Support
|
||||
CONFIG_SCHED_WORKQUEUE=y : High priority worker thread support is required
|
||||
CONFIG_SCHED_HPWORK=y :
|
||||
|
||||
Application Configuration -> NSH Library
|
||||
CONFIG_NSH_ARCHINIT=y : NSH board-initialization
|
||||
|
||||
USB Hub Support
|
||||
----------------
|
||||
|
||||
USB hub support can be included by adding the following changes to the configuration (in addition to those listed above):
|
||||
|
||||
Drivers -> USB Host Driver Support
|
||||
CONFIG_USBHOST_HUB=y : Enable the hub class
|
||||
CONFIG_USBHOST_ASYNCH=y : Asynchonous I/O supported needed for hubs
|
||||
|
||||
System Type -> USB High Speed Host driver options
|
||||
CONFIG_SAMA5_OHCI_NEDS=12 : You will probably want more pipes
|
||||
CONFIG_SAMA5_OHCI_NTDS=18
|
||||
CONFIG_SAMA5_OHCI_TDBUFFERS=12
|
||||
CONFIG_SAMA5_OHCI_TDBUFSIZE=128
|
||||
|
||||
Board Selection ->
|
||||
CONFIG_SAMA5D4EK_USBHOST_STACKSIZE=2048 (bigger than it needs to be)
|
||||
|
||||
RTOS Features -> Work Queue Support
|
||||
CONFIG_SCHED_LPWORK=y : Low priority queue support is needed
|
||||
CONFIG_SCHED_LPNTHREADS=1
|
||||
CONFIG_SCHED_LPWORKSTACKSIZE=1024
|
||||
|
||||
NOTES:
|
||||
|
||||
1. It is necessary to perform work on the low-priority work queue
|
||||
(vs. the high priority work queue) because deferred hub-related
|
||||
work requires some delays and waiting that is not appropriate on
|
||||
the high priority work queue.
|
||||
|
||||
2. Stack usage make increase when USB hub support is enabled because
|
||||
the nesting depth of certain USB host class logic can increase.
|
||||
|
||||
Mass Storage Device Usage
|
||||
-------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user