X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Fdemo%2Fcfg%2Fcfg_proc.h;h=384d4670dea817b94c8ee8ae18b24f07e241c3d5;hb=7d16fb1150acc2e0404373f01273bc9253bef0f6;hp=a35de093a2294cb1fcacaed2d7c6636289a9722d;hpb=32d1445272120a254d77ce8d1af1f527da7a2c17;p=bertos.git diff --git a/examples/demo/cfg/cfg_proc.h b/examples/demo/cfg/cfg_proc.h index a35de093..384d4670 100644 --- a/examples/demo/cfg/cfg_proc.h +++ b/examples/demo/cfg/cfg_proc.h @@ -32,7 +32,6 @@ * * \brief Kernel configuration parameters * - * \version $Id$ * \author Bernie Innocenti */ @@ -47,22 +46,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 2097152L /** * Preemptive process scheduling. * * $WIZ$ type = "boolean" + * $WIZ$ conditional_deps = "timer" */ #define CONFIG_KERN_PREEMPT 1 @@ -70,15 +78,21 @@ * Priority-based scheduling policy. * $WIZ$ type = "boolean" */ -#define CONFIG_KERN_PRI 0 +#define CONFIG_KERN_PRI 1 + +/** + * Priority-inheritance protocol. + * $WIZ$ type = "boolean" + */ +#define CONFIG_KERN_PRI_INHERIT 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 +#define CONFIG_KERN_QUANTUM 11 /** * Module logging level.