From be67ba527fb3ff881e715e19d40ec1e40be4d523 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 22 Apr 2014 10:38:08 -0600 Subject: Misc changes to get a clean compilation after incorporating all of Bob Doison's changes --- apps/examples/cpuhog/Kconfig | 11 ++++++++++- apps/examples/cpuhog/Makefile | 7 +++++-- 2 files changed, 15 insertions(+), 3 deletions(-) (limited to 'apps/examples/cpuhog') diff --git a/apps/examples/cpuhog/Kconfig b/apps/examples/cpuhog/Kconfig index a74074537..a632c4c7d 100644 --- a/apps/examples/cpuhog/Kconfig +++ b/apps/examples/cpuhog/Kconfig @@ -4,10 +4,19 @@ # config EXAMPLES_CPUHOG - bool "CPU Hog" + bool "CPU hog" default n ---help--- Enable the cpuhog example if EXAMPLES_CPUHOG + +config EXAMPLES_CPUHOG_STACKSIZE + int "CPU hog stack size" + default 2048 + +config EXAMPLES_CPUHOG_PRIORITY + int "CPU hog task priority" + default 50 + endif diff --git a/apps/examples/cpuhog/Makefile b/apps/examples/cpuhog/Makefile index 995380b0e..ae3977d13 100644 --- a/apps/examples/cpuhog/Makefile +++ b/apps/examples/cpuhog/Makefile @@ -62,9 +62,12 @@ ROOTDEPPATH = --dep-path . # Built-in application info +ONFIG_EXAMPLES_CPUHOG_PRIORITY ?= 50 +CONFIG_EXAMPLES_CPUHOG_STACKSIZE ?= 2048 + APPNAME = cpuhog -PRIORITY = SCHED_PRIORITY_LOW -STACKSIZE = 1024 +PRIORITY = $(CONFIG_EXAMPLES_CPUHOG_PRIORITY) +STACKSIZE = $(CONFIG_EXAMPLES_CPUHOG_STACKSIZE) # Common build -- cgit v1.2.3