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:
parent
2ecdf4c554
commit
35933d8131
@ -37,7 +37,7 @@
|
||||
|
||||
PROGNAME = igmp
|
||||
PRIORITY = SCHED_PRIORITY_DEFAULT
|
||||
STACKSIZE = 1024
|
||||
STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE)
|
||||
MODULE = $(CONFIG_EXAMPLES_IGMP)
|
||||
|
||||
# IGMP Networking Example
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user