From: batt Date: Wed, 25 Mar 2009 16:33:22 +0000 (+0000) Subject: Update triface to new kernel config. X-Git-Tag: 2.1.0~252 X-Git-Url: https://codewiz.org/gitweb?p=bertos.git;a=commitdiff_plain;h=696a3273d14c39b7ad03a5d0a2d031e6c3724483 Update triface to new kernel config. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2430 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/examples/triface/boot/cfg/cfg_kern.h b/examples/triface/boot/cfg/cfg_kern.h deleted file mode 100644 index 78031e3e..00000000 --- a/examples/triface/boot/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 0 - -/** - * \name Optional kernel features - * \{ - */ -#define CONFIG_KERN_SCHED 0 ///< Process schedling -#define CONFIG_KERN_SIGNALS 0 ///< Inter-process signals -#define CONFIG_KERN_IRQ 0 ///< Interrupt supervisor -#define CONFIG_KERN_HEAP 0 ///< Dynamic memory allocation -#define CONFIG_KERN_SEMAPHORES 0 ///< Re-entrant mutual exclusion primitives -#define CONFIG_KERN_MONITOR 0 ///< 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/triface/boot/cfg/cfg_proc.h b/examples/triface/boot/cfg/cfg_proc.h new file mode 100644 index 00000000..e4489517 --- /dev/null +++ b/examples/triface/boot/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 0 + +/** + * 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/triface/cfg/cfg_kern.h b/examples/triface/cfg/cfg_kern.h deleted file mode 100644 index 78031e3e..00000000 --- a/examples/triface/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 0 - -/** - * \name Optional kernel features - * \{ - */ -#define CONFIG_KERN_SCHED 0 ///< Process schedling -#define CONFIG_KERN_SIGNALS 0 ///< Inter-process signals -#define CONFIG_KERN_IRQ 0 ///< Interrupt supervisor -#define CONFIG_KERN_HEAP 0 ///< Dynamic memory allocation -#define CONFIG_KERN_SEMAPHORES 0 ///< Re-entrant mutual exclusion primitives -#define CONFIG_KERN_MONITOR 0 ///< 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/triface/cfg/cfg_proc.h b/examples/triface/cfg/cfg_proc.h new file mode 100644 index 00000000..e4489517 --- /dev/null +++ b/examples/triface/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 0 + +/** + * 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 */