apps/testing/mm: Make stacksize configurable (#40)
Make stacksize as well as program name and priority configurable. The defaults are the same as the previous hardcoded values. The default stacksize of 2048 bytes is more than enough for most target applications. However, when running on the simulator, much large stack sizes are needed.
This commit is contained in:
parent
ba6377078b
commit
7a8790f1b4
@ -10,4 +10,20 @@ config TESTING_MM
|
||||
Enable the memory management test
|
||||
|
||||
if TESTING_MM
|
||||
|
||||
config TESTING_MM_PROGNAME
|
||||
string "Program name"
|
||||
default "mm"
|
||||
---help---
|
||||
This is the name of the program that will be used when the NSH ELF
|
||||
program is installed.
|
||||
|
||||
config TESTING_MM_PRIORITY
|
||||
int "Task priority"
|
||||
default 100
|
||||
|
||||
config TESTING_MM_STACKSIZE
|
||||
int "Stack size"
|
||||
default 2048
|
||||
|
||||
endif
|
||||
|
@ -37,10 +37,10 @@
|
||||
|
||||
# Memory Management Test
|
||||
|
||||
PROGNAME = mm
|
||||
PRIORITY = SCHED_PRIORITY_DEFAULT
|
||||
STACKSIZE = 2048
|
||||
MODULE = $(CONFIG_TESTING_MM)
|
||||
PROGNAME = $(CONFIG_TESTING_MM_PROGNAME)
|
||||
PRIORITY = $(CONFIG_TESTING_MM_PRIORITY)
|
||||
STACKSIZE = $(CONFIG_TESTING_MM_STACKSIZE)
|
||||
MODULE = $(CONFIG_TESTING_MM)
|
||||
|
||||
MAINSRC = mm_main.c
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user