Brick Groove Machine
0.9.3
Firmware embarqué pour contrôleur/synthé Brick
Chargement...
Recherche...
Aucune correspondance
chconf.h
Aller à la documentation de ce fichier.
1
/*
2
ChibiOS - Copyright (C) 2006..2024 Giovanni Di Sirio
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16
26
#ifndef CHCONF_H
27
#define CHCONF_H
28
29
#define _CHIBIOS_RT_CONF_
30
#define _CHIBIOS_RT_CONF_VER_8_0_
31
32
/* Option maintenue depuis ta config */
33
#if !defined(CH_CFG_HARDENING_LEVEL)
34
#define CH_CFG_HARDENING_LEVEL 0
35
#endif
36
37
/*===========================================================================*/
42
/*===========================================================================*/
43
47
#if !defined(CH_CFG_SMP_MODE)
48
#define CH_CFG_SMP_MODE FALSE
49
#endif
50
53
/*===========================================================================*/
58
/*===========================================================================*/
59
64
#if !defined(CH_CFG_ST_RESOLUTION)
65
#define CH_CFG_ST_RESOLUTION 32
66
#endif
67
72
#if !defined(CH_CFG_ST_FREQUENCY)
73
#define CH_CFG_ST_FREQUENCY 10000
74
#endif
75
80
#if !defined(CH_CFG_INTERVALS_SIZE)
81
#define CH_CFG_INTERVALS_SIZE 32
82
#endif
83
88
#if !defined(CH_CFG_TIME_TYPES_SIZE)
89
#define CH_CFG_TIME_TYPES_SIZE 32
90
#endif
91
96
#if !defined(CH_CFG_ST_TIMEDELTA)
97
#define CH_CFG_ST_TIMEDELTA 2
98
#endif
99
102
/*===========================================================================*/
107
/*===========================================================================*/
108
113
#if !defined(CH_CFG_TIME_QUANTUM)
114
#define CH_CFG_TIME_QUANTUM 0
115
#endif
116
120
#if !defined(CH_CFG_NO_IDLE_THREAD)
121
#define CH_CFG_NO_IDLE_THREAD FALSE
122
#endif
123
126
/*===========================================================================*/
131
/*===========================================================================*/
132
136
#if !defined(CH_CFG_OPTIMIZE_SPEED)
137
#define CH_CFG_OPTIMIZE_SPEED TRUE
138
#endif
139
142
/*===========================================================================*/
147
/*===========================================================================*/
148
149
#if !defined(CH_CFG_USE_TM)
150
#define CH_CFG_USE_TM TRUE
151
#endif
152
153
#if !defined(CH_CFG_USE_TIMESTAMP)
154
#define CH_CFG_USE_TIMESTAMP TRUE
155
#endif
156
157
#if !defined(CH_CFG_USE_REGISTRY)
158
#define CH_CFG_USE_REGISTRY TRUE
159
#endif
160
161
#if !defined(CH_CFG_USE_WAITEXIT)
162
#define CH_CFG_USE_WAITEXIT TRUE
163
#endif
164
165
#if !defined(CH_CFG_USE_SEMAPHORES)
166
#define CH_CFG_USE_SEMAPHORES TRUE
167
#endif
168
169
#if !defined(CH_CFG_USE_SEMAPHORES_PRIORITY)
170
#define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE
171
#endif
172
173
#if !defined(CH_CFG_USE_MUTEXES)
174
#define CH_CFG_USE_MUTEXES TRUE
175
#endif
176
177
#if !defined(CH_CFG_USE_MUTEXES_RECURSIVE)
178
#define CH_CFG_USE_MUTEXES_RECURSIVE FALSE
179
#endif
180
181
#if !defined(CH_CFG_USE_CONDVARS)
182
#define CH_CFG_USE_CONDVARS TRUE
183
#endif
184
185
#if !defined(CH_CFG_USE_CONDVARS_TIMEOUT)
186
#define CH_CFG_USE_CONDVARS_TIMEOUT TRUE
187
#endif
188
189
#if !defined(CH_CFG_USE_EVENTS)
190
#define CH_CFG_USE_EVENTS TRUE
191
#endif
192
193
#if !defined(CH_CFG_USE_EVENTS_TIMEOUT)
194
#define CH_CFG_USE_EVENTS_TIMEOUT TRUE
195
#endif
196
197
#if !defined(CH_CFG_USE_MESSAGES)
198
#define CH_CFG_USE_MESSAGES TRUE
199
#endif
200
201
#if !defined(CH_CFG_USE_MESSAGES_PRIORITY)
202
#define CH_CFG_USE_MESSAGES_PRIORITY FALSE
203
#endif
204
205
#if !defined(CH_CFG_USE_DYNAMIC)
206
#define CH_CFG_USE_DYNAMIC TRUE
207
#endif
208
211
/*===========================================================================*/
216
/*===========================================================================*/
217
218
#if !defined(CH_CFG_USE_MAILBOXES)
219
#define CH_CFG_USE_MAILBOXES TRUE
220
#endif
221
222
/* >>> Ton choix conservé: pas de memchecks par défaut <<< */
223
#if !defined(CH_CFG_USE_MEMCHECKS)
224
#define CH_CFG_USE_MEMCHECKS FALSE
225
#endif
226
227
#if !defined(CH_CFG_USE_MEMCORE)
228
#define CH_CFG_USE_MEMCORE TRUE
229
#endif
230
231
#if !defined(CH_CFG_MEMCORE_SIZE)
232
#define CH_CFG_MEMCORE_SIZE 0
233
#endif
234
235
#if !defined(CH_CFG_USE_HEAP)
236
#define CH_CFG_USE_HEAP TRUE
237
#endif
238
239
#if !defined(CH_CFG_USE_MEMPOOLS)
240
#define CH_CFG_USE_MEMPOOLS TRUE
241
#endif
242
243
#if !defined(CH_CFG_USE_OBJ_FIFOS)
244
#define CH_CFG_USE_OBJ_FIFOS TRUE
245
#endif
246
247
#if !defined(CH_CFG_USE_PIPES)
248
#define CH_CFG_USE_PIPES TRUE
249
#endif
250
251
#if !defined(CH_CFG_USE_OBJ_CACHES)
252
#define CH_CFG_USE_OBJ_CACHES TRUE
253
#endif
254
255
#if !defined(CH_CFG_USE_DELEGATES)
256
#define CH_CFG_USE_DELEGATES TRUE
257
#endif
258
259
#if !defined(CH_CFG_USE_JOBS)
260
#define CH_CFG_USE_JOBS TRUE
261
#endif
262
265
/*===========================================================================*/
270
/*===========================================================================*/
271
272
#if !defined(CH_CFG_USE_FACTORY)
273
#define CH_CFG_USE_FACTORY TRUE
274
#endif
275
276
#if !defined(CH_CFG_FACTORY_MAX_NAMES_LENGTH)
277
#define CH_CFG_FACTORY_MAX_NAMES_LENGTH 8
278
#endif
279
280
#if !defined(CH_CFG_FACTORY_OBJECTS_REGISTRY)
281
#define CH_CFG_FACTORY_OBJECTS_REGISTRY TRUE
282
#endif
283
284
#if !defined(CH_CFG_FACTORY_GENERIC_BUFFERS)
285
#define CH_CFG_FACTORY_GENERIC_BUFFERS TRUE
286
#endif
287
288
#if !defined(CH_CFG_FACTORY_SEMAPHORES)
289
#define CH_CFG_FACTORY_SEMAPHORES TRUE
290
#endif
291
292
#if !defined(CH_CFG_FACTORY_MAILBOXES)
293
#define CH_CFG_FACTORY_MAILBOXES TRUE
294
#endif
295
296
#if !defined(CH_CFG_FACTORY_OBJ_FIFOS)
297
#define CH_CFG_FACTORY_OBJ_FIFOS TRUE
298
#endif
299
300
#if !defined(CH_CFG_FACTORY_PIPES) || defined(__DOXYGEN__)
301
#define CH_CFG_FACTORY_PIPES TRUE
302
#endif
303
306
/*===========================================================================*/
311
/*===========================================================================*/
312
313
#if !defined(CH_DBG_STATISTICS)
314
#define CH_DBG_STATISTICS FALSE
315
#endif
316
317
#if !defined(CH_DBG_SYSTEM_STATE_CHECK)
318
#define CH_DBG_SYSTEM_STATE_CHECK FALSE
319
#endif
320
321
#if !defined(CH_DBG_ENABLE_CHECKS)
322
#define CH_DBG_ENABLE_CHECKS FALSE
323
#endif
324
325
#if !defined(CH_DBG_ENABLE_ASSERTS)
326
#define CH_DBG_ENABLE_ASSERTS FALSE
327
#endif
328
329
/* >>> Ton choix conservé: trace SLOW activée <<< */
330
#if !defined(CH_DBG_TRACE_MASK)
331
#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_SLOW
332
#endif
333
334
#if !defined(CH_DBG_TRACE_BUFFER_SIZE)
335
#define CH_DBG_TRACE_BUFFER_SIZE 128
336
#endif
337
338
/* >>> Ton choix conservé: stack check activé <<< */
339
#if !defined(CH_DBG_ENABLE_STACK_CHECK)
340
#define CH_DBG_ENABLE_STACK_CHECK TRUE
341
#endif
342
343
#if !defined(CH_DBG_FILL_THREADS)
344
#define CH_DBG_FILL_THREADS FALSE
345
#endif
346
347
#if !defined(CH_DBG_THREADS_PROFILING)
348
#define CH_DBG_THREADS_PROFILING FALSE
349
#endif
350
353
/*===========================================================================*/
358
/*===========================================================================*/
359
360
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
361
/* Add system custom fields here.*/
362
363
#define CH_CFG_SYSTEM_INIT_HOOK() { \
364
/* Add system initialization code here.*/
\
365
}
366
367
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
368
/* Add OS instance custom fields here.*/
369
370
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
371
/* Add OS instance initialization code here.*/
\
372
}
373
374
#define CH_CFG_THREAD_EXTRA_FIELDS \
375
/* Add threads custom fields here.*/
376
377
#define CH_CFG_THREAD_INIT_HOOK(tp) { \
378
/* Add threads initialization code here.*/
\
379
}
380
381
#define CH_CFG_THREAD_EXIT_HOOK(tp) { \
382
/* Add threads finalization code here.*/
\
383
}
384
385
#define CH_CFG_CONTEXT_SWITCH_HOOK(ntp, otp) { \
386
/* Context switch code here.*/
\
387
}
388
389
#define CH_CFG_IRQ_PROLOGUE_HOOK() { \
390
/* IRQ prologue code here.*/
\
391
}
392
393
#define CH_CFG_IRQ_EPILOGUE_HOOK() { \
394
/* IRQ epilogue code here.*/
\
395
}
396
397
#define CH_CFG_IDLE_ENTER_HOOK() { \
398
/* Idle-enter code here.*/
\
399
}
400
401
#define CH_CFG_IDLE_LEAVE_HOOK() { \
402
/* Idle-leave code here.*/
\
403
}
404
405
#define CH_CFG_IDLE_LOOP_HOOK() { \
406
/* Idle loop code here.*/
\
407
}
408
409
#define CH_CFG_SYSTEM_TICK_HOOK() { \
410
/* System tick event code here.*/
\
411
}
412
413
#define CH_CFG_SYSTEM_HALT_HOOK(reason) { \
414
/* System halt code here.*/
\
415
}
416
417
#define CH_CFG_TRACE_HOOK(tep) { \
418
/* Trace code here.*/
\
419
}
420
421
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
422
/* Faults handling code here.*/
\
423
}
424
427
/*===========================================================================*/
428
/* Port-specific settings (override port settings defaulted in chcore.h). */
429
/*===========================================================================*/
430
431
#endif
/* CHCONF_H */
432
cfg
chconf.h
Généré par
1.9.8