From: batt Date: Tue, 26 Aug 2008 13:59:49 +0000 (+0000) Subject: Add application specific config file. X-Git-Tag: 2.0.0~228 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=55b3b80799d416fe5da018adc1ba6a840bc36ce0;p=bertos.git Add application specific config file. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1706 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/app/at91sam7s/cfg/cfg_kern.h b/app/at91sam7s/cfg/cfg_kern.h new file mode 100644 index 00000000..bc4594a4 --- /dev/null +++ b/app/at91sam7s/cfg/cfg_kern.h @@ -0,0 +1,70 @@ +/** + * \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 */