From: batt Date: Wed, 25 Mar 2009 16:25:45 +0000 (+0000) Subject: Update demo to new kernel configuration files. X-Git-Tag: 2.1.0~255 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=44850320cfcd4eac56531d427d27e1f6a4e27b47;p=bertos.git Update demo to new kernel configuration files. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2427 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/examples/demo/cfg/cfg_kern.h b/examples/demo/cfg/cfg_kern.h deleted file mode 100644 index bc4594a4..00000000 --- a/examples/demo/cfg/cfg_kern.h +++ /dev/null @@ -1,70 +0,0 @@ -/** - * \file - * - * - * \brief Kernel configuration parameters - * - * \version $Id$ - * \author Bernie Innocenti - */ - -#ifndef CFG_KERN_H -#define CFG_KERN_H - -/** - * Enable the multithreading kernel. - */ -#define CONFIG_KERN 1 - -/** - * \name Optional kernel features - * \{ - */ -#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. -#define KERN_LOG_LEVEL LOG_LVL_ERR - -/// Module logging format. -#define KERN_LOG_FORMAT LOG_FMT_VERBOSE - -#endif /* CFG_KERN_H */ diff --git a/examples/demo/cfg/cfg_monitor.h b/examples/demo/cfg/cfg_monitor.h new file mode 100644 index 00000000..6391b407 --- /dev/null +++ b/examples/demo/cfg/cfg_monitor.h @@ -0,0 +1,48 @@ +/** + * \file + * + * + * \brief Kernel monitor configuration parameters + * + * \version $Id$ + * \author Bernie Innocenti + */ + +#ifndef CFG_MONITOR_H +#define CFG_MONITOR_H + +/** + * Process monitor. + * $WIZ$ type = "autoenabled" + */ +#define CONFIG_KERN_MONITOR 1 + +#endif /* CFG_MONITOR_H */ diff --git a/examples/demo/cfg/cfg_proc.h b/examples/demo/cfg/cfg_proc.h new file mode 100644 index 00000000..745634da --- /dev/null +++ b/examples/demo/cfg/cfg_proc.h @@ -0,0 +1,99 @@ +/** + * \file + * + * + * \brief Kernel configuration parameters + * + * \version $Id$ + * \author Bernie Innocenti + */ + +#ifndef CFG_PROC_H +#define CFG_PROC_H + +/** + * Enable the multithreading kernel. + * + * $WIZ$ type = "autoenabled" + */ +#define CONFIG_KERN 1 + +/** + * Kernel interrupt supervisor. + * $WIZ$ type = "boolean" + */ +#define CONFIG_KERN_IRQ 0 + +/** + * Dynamic memory allocation for processes. + * + * $WIZ$ type = "boolean" + */ +#define CONFIG_KERN_HEAP 0 + +/** + * Preemptive process scheduling. WARNING: Experimental, still incomplete! + * + * $WIZ$ type = "boolean" + */ +#define CONFIG_KERN_PREEMPT 0 + +/** + * Priority-based scheduling policy. + * $WIZ$ type = "boolean" + */ +#define CONFIG_KERN_PRI 0 + +/** + * Time sharing quantum (a prime number prevents interference effects) [ms]. + * + * $WIZ$ type = "int" + * $WIZ$ min = "0" + */ +#define CONFIG_KERN_QUANTUM 47 + +/** + * Module logging level. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ +#define KERN_LOG_LEVEL LOG_LVL_ERR + +/** + * Module logging format. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_format" + */ +#define KERN_LOG_FORMAT LOG_FMT_VERBOSE + +#endif /* CFG_PROC_H */ diff --git a/examples/demo/cfg/cfg_sem.h b/examples/demo/cfg/cfg_sem.h new file mode 100644 index 00000000..86ed110d --- /dev/null +++ b/examples/demo/cfg/cfg_sem.h @@ -0,0 +1,48 @@ +/** + * \file + * + * + * \brief Kernel semaphores configuration parameters. + * + * \version $Id$ + * \author Bernie Innocenti + */ + +#ifndef CFG_SEM_H +#define CFG_SEM_H + +/** + * Re-entrant mutual exclusion primitives. + * $WIZ$ type = "autoenabled" + */ +#define CONFIG_KERN_SEMAPHORES 1 + +#endif /* CFG_SEM_H */ diff --git a/examples/demo/cfg/cfg_signal.h b/examples/demo/cfg/cfg_signal.h new file mode 100644 index 00000000..ed85119b --- /dev/null +++ b/examples/demo/cfg/cfg_signal.h @@ -0,0 +1,48 @@ +/** + * \file + * + * + * \brief Kernel signals configuration parameters + * + * \version $Id$ + * \author Bernie Innocenti + */ + +#ifndef CFG_SIGNAL_H +#define CFG_SIGNAL_H + +/** + * Inter-process signals. + * $WIZ$ type = "autoenabled" + */ +#define CONFIG_KERN_SIGNALS 1 + +#endif /* CFG_SIGNAL_H */