Add at91sam7x bertos example.
[bertos.git] / examples / at91sam7x / cfg / cfg_proc.h
1 /**\r
2  * \file\r
3  * <!--\r
4  * This file is part of BeRTOS.\r
5  *\r
6  * Bertos is free software; you can redistribute it and/or modify\r
7  * it under the terms of the GNU General Public License as published by\r
8  * the Free Software Foundation; either version 2 of the License, or\r
9  * (at your option) any later version.\r
10  *\r
11  * This program is distributed in the hope that it will be useful,\r
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14  * GNU General Public License for more details.\r
15  *\r
16  * You should have received a copy of the GNU General Public License\r
17  * along with this program; if not, write to the Free Software\r
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA\r
19  *\r
20  * As a special exception, you may use this file as part of a free software\r
21  * library without restriction.  Specifically, if other files instantiate\r
22  * templates or use macros or inline functions from this file, or you compile\r
23  * this file and link it with other files to produce an executable, this\r
24  * file does not by itself cause the resulting executable to be covered by\r
25  * the GNU General Public License.  This exception does not however\r
26  * invalidate any other reasons why the executable file might be covered by\r
27  * the GNU General Public License.\r
28  *\r
29  * Copyright 2001, 2004 Develer S.r.l. (http://www.develer.com/)\r
30  * Copyright 1999, 2000, 2001, 2008 Bernie Innocenti <bernie@codewiz.org>\r
31  * -->\r
32  *\r
33  * \brief Kernel configuration parameters\r
34  *\r
35  * \version $Id: cfg_proc.h 2659 2009-04-24 09:28:30Z batt $\r
36  * \author Bernie Innocenti <bernie@codewiz.org>\r
37  */\r
38 \r
39 #ifndef CFG_PROC_H\r
40 #define CFG_PROC_H\r
41 \r
42 /**\r
43  * Enable the multithreading kernel.\r
44  *\r
45  * $WIZ$ type = "autoenabled"\r
46  */\r
47 #define CONFIG_KERN 1\r
48 \r
49 /**\r
50  * Kernel interrupt supervisor.\r
51  * $WIZ$ type = "boolean"\r
52  */\r
53 #define CONFIG_KERN_IRQ 0\r
54 \r
55 /**\r
56  * Dynamic memory allocation for processes.\r
57  *\r
58  * $WIZ$ type = "boolean"\r
59  * $WIZ$ supports = "False"\r
60  */\r
61 #define CONFIG_KERN_HEAP 0\r
62 \r
63 /**\r
64  * Preemptive process scheduling. WARNING: Experimental, still incomplete!\r
65  *\r
66  * $WIZ$ type = "boolean"\r
67  */\r
68 #define CONFIG_KERN_PREEMPT 0\r
69 \r
70 /**\r
71  * Priority-based scheduling policy.\r
72  * $WIZ$ type = "boolean"\r
73  */\r
74 #define CONFIG_KERN_PRI 0\r
75 \r
76 /**\r
77  * Time sharing quantum (a prime number prevents interference effects) [ms].\r
78  *\r
79  * $WIZ$ type = "int"\r
80  * $WIZ$ min = "0"\r
81  */\r
82 #define CONFIG_KERN_QUANTUM 47\r
83 \r
84 /**\r
85  * Module logging level.\r
86  *\r
87  * $WIZ$ type = "enum"\r
88  * $WIZ$ value_list = "log_level"\r
89  */\r
90 #define KERN_LOG_LEVEL LOG_LVL_ERR\r
91 \r
92 /**\r
93  * Module logging format.\r
94  *\r
95  * $WIZ$ type = "enum"\r
96  * $WIZ$ value_list = "log_format"\r
97  */\r
98 #define KERN_LOG_FORMAT LOG_FMT_VERBOSE\r
99 \r
100 #endif /*  CFG_PROC_H */\r