STM32F4-Discovery: Add another missing configuration; fix names of configurations

This commit is contained in:
Gregory Nutt 2015-04-30 13:02:38 -06:00
parent 5f992dd1a9
commit 1d881c2d35
3 changed files with 14 additions and 9 deletions

View File

@ -12,11 +12,16 @@ config STM32F4DISBB
Select if you are using the STM32F4DIS-BB base board with the Select if you are using the STM32F4DIS-BB base board with the
STM32F4Discovery. STM32F4Discovery.
config USBHOST_STACKSIZE config STM32F4DISCO_USBHOST_STACKSIZE
int "USB host waiter stack size" int "USB host waiter stack size"
default 1024 default 1024
depends on USBHOST depends on USBHOST
config STM32F4DISCO_USBHOST_PRIO
int "USB host waiter task priority"
default 100
depends on USBHOST
config PM_BUTTONS config PM_BUTTONS
bool "PM button support" bool "PM button support"
default n default n

View File

@ -1696,7 +1696,7 @@ Where <subdir> is one of the following:
To be determined To be determined
Board Selection -> Board Selection ->
CONFIG_USBHOST_STACKSIZE=2048 (bigger than it needs to be) CONFIG_STM32F4DISCO_USBHOST_STACKSIZE=2048 (bigger than it needs to be)
RTOS Features -> Work Queue Support RTOS Features -> Work Queue Support
CONFIG_SCHED_LPWORK=y : Low priority queue support is needed CONFIG_SCHED_LPWORK=y : Low priority queue support is needed
@ -1715,7 +1715,7 @@ Where <subdir> is one of the following:
STATUS: STATUS:
2015-04-30 2015-04-30
Just beginning to test. Appears to be fully functional.
nxlines: nxlines:
------ ------

View File

@ -69,12 +69,12 @@
# undef HAVE_USB # undef HAVE_USB
#endif #endif
#ifndef CONFIG_USBHOST_DEFPRIO #ifndef CONFIG_STM32F4DISCO_USBHOST_PRIO
# define CONFIG_USBHOST_DEFPRIO 50 # define CONFIG_STM32F4DISCO_USBHOST_PRIO 100
#endif #endif
#ifndef CONFIG_USBHOST_STACKSIZE #ifndef CONFIG_STM32F4DISCO_USBHOST_STACKSIZE
# define CONFIG_USBHOST_STACKSIZE 1024 # define CONFIG_STM32F4DISCO_USBHOST_STACKSIZE 1024
#endif #endif
/************************************************************************************ /************************************************************************************
@ -227,8 +227,8 @@ int stm32_usbhost_initialize(void)
uvdbg("Start usbhost_waiter\n"); uvdbg("Start usbhost_waiter\n");
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO, pid = task_create("usbhost", CONFIG_STM32F4DISCO_USBHOST_PRIO,
CONFIG_USBHOST_STACKSIZE, CONFIG_STM32F4DISCO_USBHOST_STACKSIZE,
(main_t)usbhost_waiter, (FAR char * const *)NULL); (main_t)usbhost_waiter, (FAR char * const *)NULL);
return pid < 0 ? -ENOEXEC : OK; return pid < 0 ? -ENOEXEC : OK;
} }