From 1a1b4e3cd8f4956f708b4a46aa25e9c001ae777d Mon Sep 17 00:00:00 2001 From: arighi Date: Thu, 18 Mar 2010 11:49:59 +0000 Subject: [PATCH] demo: enable dynamic memory allocator (kernel heap) by default. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3236 38d2e660-2303-0410-9eaa-f027e97ec537 --- examples/demo/cfg/cfg_proc.h | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/examples/demo/cfg/cfg_proc.h b/examples/demo/cfg/cfg_proc.h index a35de093..7c6dc34d 100644 --- a/examples/demo/cfg/cfg_proc.h +++ b/examples/demo/cfg/cfg_proc.h @@ -47,22 +47,31 @@ #define CONFIG_KERN 1 /** - * Kernel interrupt supervisor. + * Kernel interrupt supervisor. WARNING: Experimental, still incomplete! * $WIZ$ type = "boolean" + * $WIZ$ supports = "False" */ #define CONFIG_KERN_IRQ 0 /** * Dynamic memory allocation for processes. - * * $WIZ$ type = "boolean" + * $WIZ$ conditional_deps = "heap" + */ +#define CONFIG_KERN_HEAP 1 + +/** + * Size of the dynamic memory pool used by processes. + * $WIZ$ type = "int" + * $WIZ$ min = 0 */ -#define CONFIG_KERN_HEAP 0 +#define CONFIG_KERN_HEAP_SIZE 262144L /** * Preemptive process scheduling. * * $WIZ$ type = "boolean" + * $WIZ$ conditional_deps = "timer", "idle" */ #define CONFIG_KERN_PREEMPT 1 @@ -70,13 +79,13 @@ * Priority-based scheduling policy. * $WIZ$ type = "boolean" */ -#define CONFIG_KERN_PRI 0 +#define CONFIG_KERN_PRI 1 /** * Time sharing quantum (a prime number prevents interference effects) [ms]. * * $WIZ$ type = "int" - * $WIZ$ min = "0" + * $WIZ$ min = 1 */ #define CONFIG_KERN_QUANTUM 47 -- 2.25.1