BAS: Support configurable stacksize and priority. Default stacksize boosted to 4096

This commit is contained in:
Gregory Nutt 2014-11-06 16:57:17 -06:00
parent ce1b820bc5
commit 9301ed8991
2 changed files with 18 additions and 3 deletions

View File

@ -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

View File

@ -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