From 35933d81318223e06e578398a2c2634db3e009f2 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 27 Mar 2020 15:20:11 +0900 Subject: [PATCH] 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. --- examples/igmp/Makefile | 2 +- examples/powerled/Makefile | 2 +- examples/powermonitor/Makefile | 2 +- examples/relays/Makefile | 2 +- examples/smps/Makefile | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/igmp/Makefile b/examples/igmp/Makefile index ca86eb4b0..4c9460a16 100644 --- a/examples/igmp/Makefile +++ b/examples/igmp/Makefile @@ -37,7 +37,7 @@ PROGNAME = igmp PRIORITY = SCHED_PRIORITY_DEFAULT -STACKSIZE = 1024 +STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE) MODULE = $(CONFIG_EXAMPLES_IGMP) # IGMP Networking Example diff --git a/examples/powerled/Makefile b/examples/powerled/Makefile index 5e30ff589..6e5e25ca2 100644 --- a/examples/powerled/Makefile +++ b/examples/powerled/Makefile @@ -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 diff --git a/examples/powermonitor/Makefile b/examples/powermonitor/Makefile index 215b12fe5..8bc2d008d 100644 --- a/examples/powermonitor/Makefile +++ b/examples/powermonitor/Makefile @@ -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 diff --git a/examples/relays/Makefile b/examples/relays/Makefile index 7dc023336..f0fd33410 100644 --- a/examples/relays/Makefile +++ b/examples/relays/Makefile @@ -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 diff --git a/examples/smps/Makefile b/examples/smps/Makefile index 08d7ae220..a513ab012 100644 --- a/examples/smps/Makefile +++ b/examples/smps/Makefile @@ -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