X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fcfg_proc.h;h=4a1deb294ddceff18bbe03e792d49883e09c80ca;hb=1a9205e1665e2ad0de939dc1b2cd782a8a31edc4;hp=b2337bf25e6202f4efd600f9d58ac8135344554a;hpb=a68e8a225a683ef7847f92ab89d8a202cf27973f;p=bertos.git diff --git a/bertos/cfg/cfg_proc.h b/bertos/cfg/cfg_proc.h index b2337bf2..4a1deb29 100644 --- a/bertos/cfg/cfg_proc.h +++ b/bertos/cfg/cfg_proc.h @@ -54,19 +54,20 @@ #define CONFIG_KERN_IRQ 0 /** - * Dynamic memory allocation for processes. + * Preemptive process scheduling. * * $WIZ$ type = "boolean" + * $WIZ$ conditional_deps = "timer" */ -#define CONFIG_KERN_HEAP 0 +#define CONFIG_KERN_PREEMPT 0 /** - * Preemptive process scheduling. WARNING: Experimental, still incomplete! + * Time sharing quantum (a prime number prevents interference effects) [ms]. * - * $WIZ$ type = "boolean" - * $WIZ$ supports = "False" + * $WIZ$ type = "int" + * $WIZ$ min = 1 */ -#define CONFIG_KERN_PREEMPT 0 +#define CONFIG_KERN_QUANTUM 11 /** * Priority-based scheduling policy. @@ -75,12 +76,18 @@ #define CONFIG_KERN_PRI 0 /** - * Time sharing quantum (a prime number prevents interference effects) [ms]. - * + * Dynamic memory allocation for processes. + * $WIZ$ type = "boolean" + * $WIZ$ conditional_deps = "heap" + */ +#define CONFIG_KERN_HEAP 0 + +/** + * Size of the dynamic memory pool used by processes. * $WIZ$ type = "int" - * $WIZ$ min = 1 + * $WIZ$ min = 0 */ -#define CONFIG_KERN_QUANTUM 47 +#define CONFIG_KERN_HEAP_SIZE 2048L /** * Module logging level.