X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Ftriface%2Fboot%2Fcfg%2Fcfg_kern.h;fp=examples%2Ftriface%2Fboot%2Fcfg%2Fcfg_kern.h;h=78031e3e7a8954585172da9a7e3f1e6f87bb6433;hb=24c21c92d29b76a3f0de0a107f4bafef7bb0f812;hp=0000000000000000000000000000000000000000;hpb=6b7a2e7b20bc7fe05a61c17d6d96eb70c67a09c9;p=bertos.git diff --git a/examples/triface/boot/cfg/cfg_kern.h b/examples/triface/boot/cfg/cfg_kern.h new file mode 100644 index 00000000..78031e3e --- /dev/null +++ b/examples/triface/boot/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 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 */