X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Ftriface%2Fcfg%2Fcfg_proc.h;fp=examples%2Ftriface%2Fcfg%2Fcfg_proc.h;h=e4489517cd177cb81aebfad4c30e592969cab07c;hb=696a3273d14c39b7ad03a5d0a2d031e6c3724483;hp=0000000000000000000000000000000000000000;hpb=d2ecd94debd768bf03d2f5b0ec4640d3456a6100;p=bertos.git 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 */