X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fcfg_kern.h;h=dd987b93c19aba8cbbf312d6d4f771071076c35a;hb=5d5cb6250eacac50a8a587296e109c787764f5b8;hp=bc4594a420b6d8c2ee6f8d4c342193226a95319f;hpb=987af80e4f01eede282792e6932054d1b111745f;p=bertos.git diff --git a/bertos/cfg/cfg_kern.h b/bertos/cfg/cfg_kern.h index bc4594a4..dd987b93 100644 --- a/bertos/cfg/cfg_kern.h +++ b/bertos/cfg/cfg_kern.h @@ -41,30 +41,42 @@ /** * Enable the multithreading kernel. + * + * $WIZ$ type = "boolean" */ #define CONFIG_KERN 1 +#define CONFIG_KERN_SCHED 1 ///< Process schedling. $WIZ$ type = "boolean" +#define CONFIG_KERN_SIGNALS 1 ///< Inter-process signals. $WIZ$ type = "boolean" +#define CONFIG_KERN_IRQ 0 ///< Interrupt supervisor. $WIZ$ type = "boolean" +#define CONFIG_KERN_HEAP 0 ///< Dynamic memory allocation. $WIZ$ type = "boolean" +#define CONFIG_KERN_SEMAPHORES 1 ///< Re-entrant mutual exclusion primitives. $WIZ$ type = "boolean" +#define CONFIG_KERN_MONITOR 1 ///< Process monitor. $WIZ$ type = "boolean" +#define CONFIG_KERN_PREEMPT 0 ///< Preemptive process scheduling. $WIZ$ type = "boolean" +#define CONFIG_KERN_PRI 0 ///< Priority-based scheduling policy. $WIZ$ type = "boolean" + /** - * \name Optional kernel features - * \{ + * [ms] Time sharing quantum (a prime number prevents interference effects) + * + * $WIZ$ type = "int" + * $WIZ$ min = "0" */ -#define CONFIG_KERN_SCHED 1 ///< Process schedling -#define CONFIG_KERN_SIGNALS 1 ///< Inter-process signals -#define CONFIG_KERN_IRQ 0 ///< Interrupt supervisor -#define CONFIG_KERN_HEAP 0 ///< Dynamic memory allocation -#define CONFIG_KERN_SEMAPHORES 1 ///< Re-entrant mutual exclusion primitives -#define CONFIG_KERN_MONITOR 1 ///< Process monitor -#define CONFIG_KERN_PREEMPT 0 ///< Preemptive process scheduling -#define CONFIG_KERN_PRI 0 ///< Priority-based scheduling policy -/*\}*/ - -/// [ms] Time sharing quantum (a prime number prevents interference effects) #define CONFIG_KERN_QUANTUM 47 -/// Module logging level. +/** + * Module logging level. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ #define KERN_LOG_LEVEL LOG_LVL_ERR -/// Module logging format. +/** + * Module logging level. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ #define KERN_LOG_FORMAT LOG_FMT_VERBOSE #endif /* CFG_KERN_H */