summaryrefslogtreecommitdiff
path: root/apps/examples/cpuhog
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-04-22 10:38:08 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-04-22 10:38:08 -0600
commitbe67ba527fb3ff881e715e19d40ec1e40be4d523 (patch)
tree95d0270b388e47938d66a6802114a9c662eaa5bc /apps/examples/cpuhog
parent3186036d92f495768edf903135ad737728e6a5b7 (diff)
downloadnuttx-be67ba527fb3ff881e715e19d40ec1e40be4d523.tar.gz
nuttx-be67ba527fb3ff881e715e19d40ec1e40be4d523.tar.bz2
nuttx-be67ba527fb3ff881e715e19d40ec1e40be4d523.zip
Misc changes to get a clean compilation after incorporating all of Bob Doison's changes
Diffstat (limited to 'apps/examples/cpuhog')
-rw-r--r--apps/examples/cpuhog/Kconfig11
-rw-r--r--apps/examples/cpuhog/Makefile7
2 files changed, 15 insertions, 3 deletions
diff --git a/apps/examples/cpuhog/Kconfig b/apps/examples/cpuhog/Kconfig
index a74074537..a632c4c7d 100644
--- a/apps/examples/cpuhog/Kconfig
+++ b/apps/examples/cpuhog/Kconfig
@@ -4,10 +4,19 @@
#
config EXAMPLES_CPUHOG
- bool "CPU Hog"
+ bool "CPU hog"
default n
---help---
Enable the cpuhog example
if EXAMPLES_CPUHOG
+
+config EXAMPLES_CPUHOG_STACKSIZE
+ int "CPU hog stack size"
+ default 2048
+
+config EXAMPLES_CPUHOG_PRIORITY
+ int "CPU hog task priority"
+ default 50
+
endif
diff --git a/apps/examples/cpuhog/Makefile b/apps/examples/cpuhog/Makefile
index 995380b0e..ae3977d13 100644
--- a/apps/examples/cpuhog/Makefile
+++ b/apps/examples/cpuhog/Makefile
@@ -62,9 +62,12 @@ ROOTDEPPATH = --dep-path .
# Built-in application info
+ONFIG_EXAMPLES_CPUHOG_PRIORITY ?= 50
+CONFIG_EXAMPLES_CPUHOG_STACKSIZE ?= 2048
+
APPNAME = cpuhog
-PRIORITY = SCHED_PRIORITY_LOW
-STACKSIZE = 1024
+PRIORITY = $(CONFIG_EXAMPLES_CPUHOG_PRIORITY)
+STACKSIZE = $(CONFIG_EXAMPLES_CPUHOG_STACKSIZE)
# Common build