examples: Replace hardcoded stack sizes to DEFAULT_TASK_STACKSIZE

Where the hardcoded values are less than 2048.
Using a bit more memory for examples should not be a critical problem.
This commit is contained in:
YAMAMOTO Takashi 2020-03-27 15:20:11 +09:00 committed by Xiang Xiao
parent 2ecdf4c554
commit 35933d8131
5 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@
PROGNAME = igmp
PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = 1024
STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE)
MODULE = $(CONFIG_EXAMPLES_IGMP)
# IGMP Networking Example

View File

@ -41,7 +41,7 @@ MAINSRC = powerled_main.c
PROGNAME = powerled
PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = 1024
STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE)
MODULE = $(CONFIG_EXAMPLES_POWERLED)
include $(APPDIR)/Application.mk

View File

@ -36,7 +36,7 @@
PROGNAME = powermonitor
PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = 768
STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE)
MODULE = $(CONFIG_EXAMPLES_POWERMONITOR)
MAINSRC = powermonitor_main.c

View File

@ -43,7 +43,7 @@ MAINSRC = relays_main.c
PROGNAME = relays
PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = 512
STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE)
MODULE = $(CONFIG_EXAMPLES_RELAYS)
include $(APPDIR)/Application.mk

View File

@ -41,7 +41,7 @@ MAINSRC = smps_main.c
PROGNAME = smps
PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = 1024
STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE)
MODULE = $(CONFIG_EXAMPLES_SMPS)
include $(APPDIR)/Application.mk