From f96eabc250fc5e157bd669399e1cf4938e0b58a0 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 6 Nov 2014 16:57:17 -0600 Subject: BAS: Support configurable stacksize and priority. Default stacksize boosted to 4096 --- apps/interpreters/bas/Kconfig | 12 ++++++++++++ apps/interpreters/bas/Makefile | 9 ++++++--- 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 -- cgit v1.2.3