summaryrefslogtreecommitdiff
path: root/apps/examples/serialblaster
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-04-30 14:03:36 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-04-30 14:03:36 -0600
commitc45aa638678d72635e08ede22bf775013034522a (patch)
treed074fe4cb662f0cf3947fe9b8af3e65294380f9c /apps/examples/serialblaster
parent1457f4e92db9fe9e3555a20cb43646afd52ce1f8 (diff)
downloadpx4-nuttx-c45aa638678d72635e08ede22bf775013034522a.tar.gz
px4-nuttx-c45aa638678d72635e08ede22bf775013034522a.tar.bz2
px4-nuttx-c45aa638678d72635e08ede22bf775013034522a.zip
Update configuration an make logic in order to select that the serial blaster task priority and stack size. From Bob Doiron
Diffstat (limited to 'apps/examples/serialblaster')
-rw-r--r--apps/examples/serialblaster/Kconfig9
-rw-r--r--apps/examples/serialblaster/Makefile7
2 files changed, 14 insertions, 2 deletions
diff --git a/apps/examples/serialblaster/Kconfig b/apps/examples/serialblaster/Kconfig
index 2cb733445..f0fca5b2f 100644
--- a/apps/examples/serialblaster/Kconfig
+++ b/apps/examples/serialblaster/Kconfig
@@ -10,4 +10,13 @@ config EXAMPLES_SERIALBLASTER
Enable the serial blaster example
if EXAMPLES_SERIALBLASTER
+
+config EXAMPLES_SERIALBLASTER_STACKSIZE
+ int "CPU hog stack size"
+ default 2048
+
+config EXAMPLES_SERIALBLASTER_PRIORITY
+ int "CPU hog task priority"
+ default 50
+
endif
diff --git a/apps/examples/serialblaster/Makefile b/apps/examples/serialblaster/Makefile
index da9eb45a9..3205ddbc8 100644
--- a/apps/examples/serialblaster/Makefile
+++ b/apps/examples/serialblaster/Makefile
@@ -62,9 +62,12 @@ ROOTDEPPATH = --dep-path .
# Built-in application info
+CONFIG_EXAMPLES_SERIALBLASTER_PRIORITY ?= 50
+CONFIG_EXAMPLES_SERIALBLASTER_STACKSIZE ?= 2048
+
APPNAME = serialblaster
-PRIORITY = SCHED_PRIORITY_DEFAULT
-STACKSIZE = 2048
+PRIORITY = $(CONFIG_EXAMPLES_SERIALBLASTER_PRIORITY)
+STACKSIZE = $(CONFIG_EXAMPLES_SERIALBLASTER_STACKSIZE)
# Common build