Change the comment style for the modules and the list, and use the newParser to parse...
[bertos.git] / bertos / cfg / cfg_kern.h
index 368e59d0387fed43e07a9602542dca0f24e41c55..8bf4325f3263dfe61397a1e12bfae4fd6ebb63a7 100644 (file)
  * invalidate any other reasons why the executable file might be covered by
  * the GNU General Public License.
  *
- * Copyright 2001,2004 Develer S.r.l. (http://www.develer.com/)
- * Copyright 1999,2000,2001 Bernie Innocenti <bernie@codewiz.org>
- *
+ * Copyright 2001, 2004 Develer S.r.l. (http://www.develer.com/)
+ * Copyright 1999, 2000, 2001, 2008 Bernie Innocenti <bernie@codewiz.org>
  * -->
  *
  * \brief Kernel configuration parameters
  *
  * \version $Id$
- *
  * \author Bernie Innocenti <bernie@codewiz.org>
  */
 
 #ifndef CFG_KERN_H
 #define CFG_KERN_H
 
-#include "cfg/cfg_arch.h"  /* ARCH_EMUL */
-
 /**
- * Multithreading kernel.
+ * Enable the multithreading kernel.
+ *
+ * $WIZARD = { "type" : "boolean" }
  */
-#define CONFIG_KERNEL 0
+#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" }
 
 /**
- * \name Modules activation
+ * [ms] Time sharing quantum (a prime number prevents interference effects)
  *
- * \{
+ * $WIZARD = { "type" : "int", "min" : "0" }
  */
-/*      Module/option          Active    Dependencies */
-#define CONFIG_KERN_SCHED       (0)
-#define CONFIG_KERN_SIGNALS     (0    && CONFIG_KERN_SCHED)
-#define CONFIG_KERN_TIMER       (0)
-#define CONFIG_KERN_HEAP        (0)
-#define CONFIG_KERN_SEMAPHORES  (0    && CONFIG_KERN_SIGNALS)
-#define CONFIG_KERN_MONITOR     (0    && CONFIG_KERN_SCHED)
-/*\}*/
-
-/* EXPERIMENTAL */
-#define CONFIG_KERN_PREEMPTIVE  (0    && CONFIG_KERN_SCHED && CONFIG_KERN_TIMER)
+#define CONFIG_KERN_QUANTUM     47
 
-#define CONFIG_KERN_QUANTUM     50    /**< Time sharing quantum in timer ticks. */
+/**
+ * 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" }
+ */
+#define KERN_LOG_FORMAT     LOG_FMT_VERBOSE
 
 #endif /*  CFG_KERN_H */