From 025d47b0b704f2b6a1cd330d03a744631fe0d81a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 30 Apr 2014 14:03:36 -0600 Subject: [PATCH] Update configuration an make logic in order to select that the serial blaster task priority and stack size. From Bob Doiron --- ChangeLog.txt | 4 ++++ examples/serialblaster/Kconfig | 9 +++++++++ examples/serialblaster/Makefile | 7 +++++-- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 757110aec..80acd6d39 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -899,3 +899,7 @@ Windestam (2014-4-38). 7.3 2014-xx-xx Gregory Nutt + + * apps/examples/serialblaster: Update configuration an make logic in + order to select that the serial blaster task priority and stack size. + From Bob Doiron (2014-4-30). diff --git a/examples/serialblaster/Kconfig b/examples/serialblaster/Kconfig index 2cb733445..f0fca5b2f 100644 --- a/examples/serialblaster/Kconfig +++ b/examples/serialblaster/Kconfig @@ -10,4 +10,13 @@ config EXAMPLES_SERIALBLASTER Enable the serial blaster example if EXAMPLES_SERIALBLASTER + +config EXAMPLES_SERIALBLASTER_STACKSIZE + int "CPU hog stack size" + default 2048 + +config EXAMPLES_SERIALBLASTER_PRIORITY + int "CPU hog task priority" + default 50 + endif diff --git a/examples/serialblaster/Makefile b/examples/serialblaster/Makefile index da9eb45a9..3205ddbc8 100644 --- a/examples/serialblaster/Makefile +++ b/examples/serialblaster/Makefile @@ -62,9 +62,12 @@ ROOTDEPPATH = --dep-path . # Built-in application info +CONFIG_EXAMPLES_SERIALBLASTER_PRIORITY ?= 50 +CONFIG_EXAMPLES_SERIALBLASTER_STACKSIZE ?= 2048 + APPNAME = serialblaster -PRIORITY = SCHED_PRIORITY_DEFAULT -STACKSIZE = 2048 +PRIORITY = $(CONFIG_EXAMPLES_SERIALBLASTER_PRIORITY) +STACKSIZE = $(CONFIG_EXAMPLES_SERIALBLASTER_STACKSIZE) # Common build