HALFRED  0.4.0
hal_config_template.h
Go to the documentation of this file.
1 
10 #ifndef HAL_CONFIG_H
11 #define HAL_CONFIG_H
12 
13 
18 
19 // Note:
20 // The HAL_ENABLE_xxx definitions control which HAL modules will be used by
21 // your application. You should enable only the modules you use, to avoid
22 // compilation of unnecessary code.
23 
24 
25 // -----------------------------------------------------------------------------
26 // CORE MODULE CONFIGURATION SECTION
27 // -----------------------------------------------------------------------------
28 
29 // If defined as 1, the core will support power management.
30 // If defined as 0, then core will not support power modes
31 // like in older versions of the hal - for example frequency
32 // could be set just by definition
33 #define HAL_CORE_USE_POWER_MANAGEMENT 0
34 
41 #define HAL_CORE_IS_BIG_ENDIAN 0
42 
43 // -----------------------------------------------------------------------------
44 // HEAP MODULE CONFIGURATION SECTION
45 // -----------------------------------------------------------------------------
46 
70 #define HAL_HEAP_MODE 0
71 
73 #define HAL_HEAP_SIZE 0
74 
79 #define HAL_HEAP_DEBUG 0
80 
81 // -----------------------------------------------------------------------------
82 // STACK MODULE CONFIGURATION SECTION
83 // -----------------------------------------------------------------------------
84 
86 #define HAL_STACK_SIZE 1024
87 
88 // -----------------------------------------------------------------------------
89 // CLK MODULE CONFIGURATION SECTION
90 // -----------------------------------------------------------------------------
91 
93 #define HAL_ENABLE_CLK 1
94 
95 // -----------------------------------------------------------------------------
96 // DELAY MODULE CONFIGURATION
97 // -----------------------------------------------------------------------------
98 
100 #define HAL_ENABLE_DELAY 0
101 
106 #define HAL_F_CPU 80000000
107 
108 // -----------------------------------------------------------------------------
109 // GPIO MODULE CONFIGURATION SECTION
110 // -----------------------------------------------------------------------------
111 
113 #define HAL_ENABLE_GPIO 1
114 
115 // Note: For each GPIO pin you want to provide for your application, you should prepare
116 // at least 3 definitions, specifying port, pin and at least one configuration.
117 
118 // -----------------------------------------------------------------------------
119 // DIAG MODULE CONFIGURATION SECTION
120 // -----------------------------------------------------------------------------
121 
123 #define HAL_ENABLE_DIAG 0
124 
130 #define HAL_DIAG_MAX_CHANNELS 4
131 
133 #define HAL_DIAG_LEVEL 0
134 
136 #define HAL_DIAG_USE_ERROR_BUFFERING 1
137 
140 #define HAL_DIAG_ERROR_BUFFER_SIZE 30
141 
143 #define HAL_DIAG_USE_ERROR_TIME_STAMPS 1
144 
146 #define HAL_DIAG_ERROR_SEND_AS_FORMATED_DATA 0
147 
148 // -----------------------------------------------------------------------------
149 // IO MODULE CONFIGURATION SECTION
150 // -----------------------------------------------------------------------------
151 
153 #define HAL_ENABLE_IO 1
154 
161 #define HAL_IO_OS_INTEGRATION 0
162 
164 #define HAL_IO_USE_EVENTS 0
165 
166 // -----------------------------------------------------------------------------
167 // TIM MODULE CONFIGURATION SECTION
168 // -----------------------------------------------------------------------------
169 
171 #define HAL_ENABLE_TIM 0
172 
173 // -----------------------------------------------------------------------------
174 // OS MODULE CONFIGURATION SECTION
175 // -----------------------------------------------------------------------------
176 
178 #define HAL_ENABLE_OS 0
179 
181 #define HAL_OS_NOTIFIER_POOL_SIZE 10
182 
183 // -----------------------------------------------------------------------------
184 // CLI MODULE CONFIGURATION SECTION
185 // -----------------------------------------------------------------------------
186 
188 #define HAL_ENABLE_CLI 0
189 
190 
193 #endif /* HAL_CONFIG_H */