From: arighi Date: Wed, 12 May 2010 16:26:46 +0000 (+0000) Subject: stmp103: enable kernel preemption, task priorities and heap allocator in the example... X-Git-Tag: 2.5.0~245 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=18c9862abc9435165b47c78a69ef32c45da2d420;p=bertos.git stmp103: enable kernel preemption, task priorities and heap allocator in the example application. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3672 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/examples/stm32p103/cfg/cfg_proc.h b/examples/stm32p103/cfg/cfg_proc.h index b13b657a..bff5d853 100644 --- a/examples/stm32p103/cfg/cfg_proc.h +++ b/examples/stm32p103/cfg/cfg_proc.h @@ -58,7 +58,7 @@ * $WIZ$ type = "boolean" * $WIZ$ conditional_deps = "timer" */ -#define CONFIG_KERN_PREEMPT 0 +#define CONFIG_KERN_PREEMPT 1 /** * Time sharing quantum (a prime number prevents interference effects) [ms]. @@ -72,21 +72,21 @@ * Priority-based scheduling policy. * $WIZ$ type = "boolean" */ -#define CONFIG_KERN_PRI 0 +#define CONFIG_KERN_PRI 1 /** * Dynamic memory allocation for processes. * $WIZ$ type = "boolean" * $WIZ$ conditional_deps = "heap" */ -#define CONFIG_KERN_HEAP 0 +#define CONFIG_KERN_HEAP 1 /** * Size of the dynamic memory pool used by processes. * $WIZ$ type = "int" * $WIZ$ min = 0 */ -#define CONFIG_KERN_HEAP_SIZE 16384L +#define CONFIG_KERN_HEAP_SIZE 8192L /** * Module logging level.