From fc3d30f0bab9d80a534a20f64403db20178a0200 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 30 Apr 2015 11:26:35 -0600 Subject: [PATCH] STM32F4-Discovery: Add configuration option to select the size of the stack used with the usbhost waiter. Needs to be bigger when a hub is supported --- configs/stm32f4discovery/Kconfig | 5 +++++ configs/stm32f4discovery/README.txt | 3 +++ 2 files changed, 8 insertions(+) diff --git a/configs/stm32f4discovery/Kconfig b/configs/stm32f4discovery/Kconfig index 12478360523..cd4eb3e6191 100644 --- a/configs/stm32f4discovery/Kconfig +++ b/configs/stm32f4discovery/Kconfig @@ -12,6 +12,11 @@ config STM32F4DISBB Select if you are using the STM32F4DIS-BB base board with the STM32F4Discovery. +config USBHOST_STACKSIZE + int "USB host waiter stack size" + default 1024 + depends on USBHOST + config PM_BUTTONS bool "PM button support" default n diff --git a/configs/stm32f4discovery/README.txt b/configs/stm32f4discovery/README.txt index b3009480365..760f76d53b1 100644 --- a/configs/stm32f4discovery/README.txt +++ b/configs/stm32f4discovery/README.txt @@ -1695,6 +1695,9 @@ Where is one of the following: System Type -> USB host configuration To be determined + Board Selection -> + CONFIG_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