apps/testing/mm: Make stacksize configurable ()

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:
patacongo 2020-01-30 10:43:04 -06:00 committed by GitHub
parent ba6377078b
commit 7a8790f1b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 4 deletions
testing/mm

@ -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