summaryrefslogtreecommitdiff
path: root/apps/interpreters
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-06 16:57:17 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-06 16:57:17 -0600
commitf96eabc250fc5e157bd669399e1cf4938e0b58a0 (patch)
tree38b62659eaca3c59eae4bf936307f327a672ed5b /apps/interpreters
parent80e2886efc442e3c0b0cb8d25386706e1957138d (diff)
downloadnuttx-f96eabc250fc5e157bd669399e1cf4938e0b58a0.tar.gz
nuttx-f96eabc250fc5e157bd669399e1cf4938e0b58a0.tar.bz2
nuttx-f96eabc250fc5e157bd669399e1cf4938e0b58a0.zip
BAS: Support configurable stacksize and priority. Default stacksize boosted to 4096
Diffstat (limited to 'apps/interpreters')
-rw-r--r--apps/interpreters/bas/Kconfig12
-rw-r--r--apps/interpreters/bas/Makefile9
2 files changed, 18 insertions, 3 deletions
diff --git a/apps/interpreters/bas/Kconfig b/apps/interpreters/bas/Kconfig
index 12c80828c..f1b8090f0 100644
--- a/apps/interpreters/bas/Kconfig
+++ b/apps/interpreters/bas/Kconfig
@@ -39,6 +39,18 @@ config INTERPRETER_BAS_VERSION
string "Version number"
default "2.4"
+config INTERPRETER_BAS_PRIORITY
+ int "Basic interpreter priority"
+ default 100
+ ---help---
+ Task priority of the Basic interpreter main task
+
+config INTERPRETER_BAS_STACKSIZE
+ int "Basic interpreter stack size"
+ default 4096
+ ---help---
+ Size of the stack allocated for the Basic interpreter main task
+
config INTERPRETER_BAS_USE_LR0
bool "LR0 parser"
default n
diff --git a/apps/interpreters/bas/Makefile b/apps/interpreters/bas/Makefile
index 9382ddfc5..de92992b3 100644
--- a/apps/interpreters/bas/Makefile
+++ b/apps/interpreters/bas/Makefile
@@ -68,9 +68,12 @@ endif
# BAS built-in application info
-APPNAME = bas
-PRIORITY = SCHED_PRIORITY_DEFAULT
-STACKSIZE = 2048
+CONFIG_INTERPRETER_BAS_PRIORITY ?= 100
+CONFIG_INTERPRETER_BAS_STACKSIZE ?= 4096
+
+APPNAME = bas
+PRIORITY = $(CONFIG_INTERPRETER_BAS_PRIORITY)
+STACKSIZE = $(CONFIG_INTERPRETER_BAS_STACKSIZE)
# Build targets