summaryrefslogtreecommitdiff
path: root/apps/examples/serialrx
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/serialrx
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/serialrx')
-rw-r--r--apps/examples/serialrx/Kconfig9
-rw-r--r--apps/examples/serialrx/Makefile7
2 files changed, 14 insertions, 2 deletions
diff --git a/apps/examples/serialrx/Kconfig b/apps/examples/serialrx/Kconfig
index ddced0ee5..25b3f39e1 100644
--- a/apps/examples/serialrx/Kconfig
+++ b/apps/examples/serialrx/Kconfig
@@ -10,4 +10,13 @@ config EXAMPLES_SERIALRX
Enable the serial RX example
if EXAMPLES_SERIALRX
+
+config EXAMPLES_SERIALRX_STACKSIZE
+ int "Serial Rx stack size"
+ default 2048
+
+config EXAMPLES_SERIALRX_PRIORITY
+ int "Serial Rx task priority"
+ default 50
+
endif
diff --git a/apps/examples/serialrx/Makefile b/apps/examples/serialrx/Makefile
index 66d485b8d..f184f3e2e 100644
--- a/apps/examples/serialrx/Makefile
+++ b/apps/examples/serialrx/Makefile
@@ -62,9 +62,12 @@ ROOTDEPPATH = --dep-path .
# Built-in application info
+CONFIG_EXAMPLES_SERIALRX_PRIORITY ?= 50
+CONFIG_EXAMPLES_SERIALRX_STACKSIZE ?= 2048
+
APPNAME = serialrx
-PRIORITY = SCHED_PRIORITY_LOW
-STACKSIZE = 2048
+PRIORITY = $(CONFIG_EXAMPLES_SERIALRX_PRIORITY)
+STACKSIZE = $(CONFIG_EXAMPLES_SERIALRX_STACKSIZE)
# Common build