You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/03/27 07:43:24 UTC

[incubator-nuttx-apps] 04/07: examples: Replace hardcoded stack sizes to DEFAULT_TASK_STACKSIZE

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 35933d81318223e06e578398a2c2634db3e009f2
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri Mar 27 15:20:11 2020 +0900

    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 ca86eb4..4c9460a 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 5e30ff5..6e5e25c 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 215b12f..8bc2d00 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 7dc0233..f0fd334 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 08d7ae2..a513ab0 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