From: bernie Date: Tue, 21 Feb 2006 16:05:53 +0000 (+0000) Subject: Move from cfg/ to top-level. X-Git-Tag: 1.0.0~708 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=62f9988bccb9a9ae97e85ee551f839bdb150405b;p=bertos.git Move from cfg/ to top-level. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@533 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/cfg/config_kern.h b/cfg/config_kern.h deleted file mode 100755 index 63327dd1..00000000 --- a/cfg/config_kern.h +++ /dev/null @@ -1,83 +0,0 @@ -/*! - * \file - * - * - * \brief Kernel configuration parameters - * - * \version $Id$ - * - * \author Bernardo Innocenti - */ - -/*#* - *#* $Log$ - *#* Revision 1.3 2005/11/04 16:20:01 bernie - *#* Fix reference to README.devlib in header. - *#* - *#* Revision 1.2 2005/04/11 19:10:27 bernie - *#* Include top-level headers from cfg/ subdir. - *#* - *#* Revision 1.1 2005/04/11 19:04:13 bernie - *#* Move top-level headers to cfg/ subdir. - *#* - *#* Revision 1.5 2004/08/25 14:12:08 rasky - *#* Aggiornato il comment block dei log RCS - *#* - *#* Revision 1.4 2004/08/24 16:19:38 bernie - *#* Add missing header. - *#* - *#* Revision 1.3 2004/07/30 14:24:16 rasky - *#* Task switching con salvataggio perfetto stato di interrupt (SR) - *#* Kernel monitor per dump informazioni su stack dei processi - *#* - *#* Revision 1.2 2004/06/03 11:27:09 bernie - *#* Add dual-license information. - *#* - *#* Revision 1.1 2004/05/23 17:48:35 bernie - *#* Add top-level files. - *#* - *#*/ -#ifndef CONFIG_KERN_H -#define CONFIG_KERN_H - -#include /* ARCH_EMUL */ - -/*! - * \name Modules activation - * - * \{ - */ -/* Module/option Active Dependencies */ -#define CONFIG_KERN_SCHED (1) -#define CONFIG_KERN_SIGNALS (1 && CONFIG_KERN_SCHED) -#define CONFIG_KERN_TIMER (1) -#define CONFIG_KERN_HEAP (0) -#define CONFIG_KERN_SEMAPHORES (0 && CONFIG_KERN_SIGNALS) -#define CONFIG_KERN_MONITOR (1 && CONFIG_KERN_SCHED) -/*\}*/ - -/* EXPERIMENTAL */ -#define CONFIG_KERN_PREEMPTIVE (0 && CONFIG_KERN_SCHED && CONFIG_KERN_TIMER) - - -#define CONFIG_KERN_HEAPSIZE 0x4000 /*!< Heap size (16KB) */ -#define CONFIG_KERN_QUANTUM 50 /*!< Scheduler time sharing quantum in ticks */ - -#if (ARCH & ARCH_EMUL) - #define CONFIG_KERN_DEFSTACKSIZE 65536 -#else - #define CONFIG_KERN_DEFSTACKSIZE 128 /*!< Default stack size for each thread */ -#endif - -/* Memory fill codes to help debugging */ -#if CONFIG_KERN_MONITOR - #define CONFIG_KERN_STACKFILLCODE 0xA5A5 - #define CONFIG_KERN_MEMFILLCODE 0xDBDB -#endif - - -#endif /* CONFIG_KERN_H */ diff --git a/config_kern.h b/config_kern.h new file mode 100755 index 00000000..420a48e8 --- /dev/null +++ b/config_kern.h @@ -0,0 +1,84 @@ +/*! + * \file + * + * + * \brief Kernel configuration parameters + * + * \version $Id$ + * + * \author Bernardo Innocenti + */ + +/*#* + *#* $Log$ + *#* Revision 1.7 2006/02/21 16:05:53 bernie + *#* Move from cfg/ to top-level. + *#* + *#* Revision 1.3 2005/11/04 16:20:01 bernie + *#* Fix reference to README.devlib in header. + *#* + *#* Revision 1.2 2005/04/11 19:10:27 bernie + *#* Include top-level headers from cfg/ subdir. + *#* + *#* Revision 1.1 2005/04/11 19:04:13 bernie + *#* Move top-level headers to cfg/ subdir. + *#* + *#* Revision 1.5 2004/08/25 14:12:08 rasky + *#* Aggiornato il comment block dei log RCS + *#* + *#* Revision 1.4 2004/08/24 16:19:38 bernie + *#* Add missing header. + *#* + *#* Revision 1.3 2004/07/30 14:24:16 rasky + *#* Task switching con salvataggio perfetto stato di interrupt (SR) + *#* Kernel monitor per dump informazioni su stack dei processi + *#* + *#* Revision 1.2 2004/06/03 11:27:09 bernie + *#* Add dual-license information. + *#* + *#* Revision 1.1 2004/05/23 17:48:35 bernie + *#* Add top-level files. + *#* + *#*/ +#ifndef CONFIG_KERN_H +#define CONFIG_KERN_H + +#include /* ARCH_EMUL */ + +/*! + * \name Modules activation + * + * \{ + */ +/* Module/option Active Dependencies */ +#define CONFIG_KERN_SCHED (1) +#define CONFIG_KERN_SIGNALS (1 && CONFIG_KERN_SCHED) +#define CONFIG_KERN_TIMER (1) +#define CONFIG_KERN_HEAP (0) +#define CONFIG_KERN_SEMAPHORES (0 && CONFIG_KERN_SIGNALS) +#define CONFIG_KERN_MONITOR (1 && CONFIG_KERN_SCHED) +/*\}*/ + +/* EXPERIMENTAL */ +#define CONFIG_KERN_PREEMPTIVE (0 && CONFIG_KERN_SCHED && CONFIG_KERN_TIMER) + +#define CONFIG_KERN_QUANTUM 50 /*!< Time sharing quantum in timer ticks. */ + +#if (ARCH & ARCH_EMUL) + #define CONFIG_KERN_DEFSTACKSIZE 65536 +#else + #define CONFIG_KERN_DEFSTACKSIZE 128 /*!< Default stack size for each thread. */ +#endif + +/* Memory fill codes to help debugging */ +#if CONFIG_KERN_MONITOR + #define CONFIG_KERN_STACKFILLCODE 0xA5A5 + #define CONFIG_KERN_MEMFILLCODE 0xDBDB +#endif + + +#endif /* CONFIG_KERN_H */