X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fcfg_kern.h;h=1330abc48f994514c180ff72abacf464bf3ab7f5;hb=b9e1e52093d33494bf4a8ca27c14a56a25b6e0bc;hp=8bf4325f3263dfe61397a1e12bfae4fd6ebb63a7;hpb=a66622f826a7ee317cb0459735cbb70bbd27e6da;p=bertos.git diff --git a/bertos/cfg/cfg_kern.h b/bertos/cfg/cfg_kern.h index 8bf4325f..1330abc4 100644 --- a/bertos/cfg/cfg_kern.h +++ b/bertos/cfg/cfg_kern.h @@ -30,50 +30,25 @@ * Copyright 1999, 2000, 2001, 2008 Bernie Innocenti * --> * - * \brief Kernel configuration parameters + * \brief Kernel configuration parameters (deprecated) * - * \version $Id$ * \author Bernie Innocenti */ #ifndef CFG_KERN_H #define CFG_KERN_H -/** - * Enable the multithreading kernel. - * - * $WIZARD = { "type" : "boolean" } - */ -#define CONFIG_KERN 1 - -#define CONFIG_KERN_SCHED 1 ///< Process schedling. $WIZARD = { "type" : "boolean" } -#define CONFIG_KERN_SIGNALS 1 ///< Inter-process signals. $WIZARD = { "type" : "boolean" } -#define CONFIG_KERN_IRQ 0 ///< Interrupt supervisor. $WIZARD = { "type" : "boolean" } -#define CONFIG_KERN_HEAP 0 ///< Dynamic memory allocation. $WIZARD = { "type" : "boolean" } -#define CONFIG_KERN_SEMAPHORES 1 ///< Re-entrant mutual exclusion primitives. $WIZARD = { "type" : "boolean" } -#define CONFIG_KERN_MONITOR 1 ///< Process monitor. $WIZARD = { "type" : "boolean" } -#define CONFIG_KERN_PREEMPT 0 ///< Preemptive process scheduling. $WIZARD = { "type" : "boolean" } -#define CONFIG_KERN_PRI 0 ///< Priority-based scheduling policy. $WIZARD = { "type" : "boolean" } - -/** - * [ms] Time sharing quantum (a prime number prevents interference effects) - * - * $WIZARD = { "type" : "int", "min" : "0" } - */ -#define CONFIG_KERN_QUANTUM 47 +#warning This file is deprecated, you should use the correct combination of cfg_proc.h, cfg_sem.h, cfg_signal.h and cfg_monitor.h +#include "cfg_proc.h" +#include "cfg_sem.h" +#include "cfg_signal.h" +#include "cfg_monitor.h" -/** - * Module logging level. - * - * $WIZARD = { "type" : "enum", "value_list" : "log_level" } - */ -#define KERN_LOG_LEVEL LOG_LVL_ERR /** - * Module logging level. - * - * $WIZARD = { "type" : "enum", "value_list" : "log_level" } + * Left for backwards compatibility. + * Do not use this anymore, will be deprecated soon. */ -#define KERN_LOG_FORMAT LOG_FMT_VERBOSE +#define CONFIG_KERN_SCHED CONFIG_KERN #endif /* CFG_KERN_H */