aboutsummaryrefslogtreecommitdiff
path: root/keyboards/function96/halconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/function96/halconf.h')
-rw-r--r--keyboards/function96/halconf.h522
1 files changed, 522 insertions, 0 deletions
diff --git a/keyboards/function96/halconf.h b/keyboards/function96/halconf.h
new file mode 100644
index 000000000..97696353f
--- /dev/null
+++ b/keyboards/function96/halconf.h
@@ -0,0 +1,522 @@
1/*
2 ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
6 http://www.apache.org/licenses/LICENSE-2.0
7 Unless required by applicable law or agreed to in writing, software
8 distributed under the License is distributed on an "AS IS" BASIS,
9 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 See the License for the specific language governing permissions and
11 limitations under the License.
12*/
13
14/**
15 * @file templates/halconf.h
16 * @brief HAL configuration header.
17 * @details HAL configuration file, this file allows to enable or disable the
18 * various device drivers from your application. You may also use
19 * this file in order to override the device drivers default settings.
20 *
21 * @addtogroup HAL_CONF
22 * @{
23 */
24
25#ifndef HALCONF_H
26#define HALCONF_H
27
28#define _CHIBIOS_HAL_CONF_
29#define _CHIBIOS_HAL_CONF_VER_7_0_
30
31#include "mcuconf.h"
32
33/**
34 * @brief Enables the PAL subsystem.
35 */
36#if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
37#define HAL_USE_PAL TRUE
38#endif
39
40/**
41 * @brief Enables the ADC subsystem.
42 */
43#if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
44#define HAL_USE_ADC FALSE
45#endif
46
47/**
48 * @brief Enables the CAN subsystem.
49 */
50#if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
51#define HAL_USE_CAN FALSE
52#endif
53
54/**
55 * @brief Enables the cryptographic subsystem.
56 */
57#if !defined(HAL_USE_CRY) || defined(__DOXYGEN__)
58#define HAL_USE_CRY FALSE
59#endif
60
61/**
62 * @brief Enables the DAC subsystem.
63 */
64#if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
65#define HAL_USE_DAC FALSE
66#endif
67
68/**
69 * @brief Enables the GPT subsystem.
70 */
71#if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
72#define HAL_USE_GPT FALSE
73#endif
74
75/**
76 * @brief Enables the I2C subsystem.
77 */
78#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
79#define HAL_USE_I2C FALSE
80#endif
81
82/**
83 * @brief Enables the I2S subsystem.
84 */
85#if !defined(HAL_USE_I2S) || defined(__DOXYGEN__)
86#define HAL_USE_I2S FALSE
87#endif
88
89/**
90 * @brief Enables the ICU subsystem.
91 */
92#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
93#define HAL_USE_ICU FALSE
94#endif
95
96/**
97 * @brief Enables the MAC subsystem.
98 */
99#if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
100#define HAL_USE_MAC FALSE
101#endif
102
103/**
104 * @brief Enables the MMC_SPI subsystem.
105 */
106#if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
107#define HAL_USE_MMC_SPI FALSE
108#endif
109
110/**
111 * @brief Enables the PWM subsystem.
112 */
113#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
114#define HAL_USE_PWM TRUE
115#endif
116
117/**
118 * @brief Enables the RTC subsystem.
119 */
120#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
121#define HAL_USE_RTC FALSE
122#endif
123
124/**
125 * @brief Enables the SDC subsystem.
126 */
127#if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
128#define HAL_USE_SDC FALSE
129#endif
130
131/**
132 * @brief Enables the SERIAL subsystem.
133 */
134#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
135#define HAL_USE_SERIAL FALSE
136#endif
137
138/**
139 * @brief Enables the SERIAL over USB subsystem.
140 */
141#if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
142#define HAL_USE_SERIAL_USB FALSE
143#endif
144
145/**
146 * @brief Enables the SIO subsystem.
147 */
148#if !defined(HAL_USE_SIO) || defined(__DOXYGEN__)
149#define HAL_USE_SIO FALSE
150#endif
151
152/**
153 * @brief Enables the SPI subsystem.
154 */
155#if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
156#define HAL_USE_SPI FALSE
157#endif
158
159/**
160 * @brief Enables the TRNG subsystem.
161 */
162#if !defined(HAL_USE_TRNG) || defined(__DOXYGEN__)
163#define HAL_USE_TRNG FALSE
164#endif
165
166/**
167 * @brief Enables the UART subsystem.
168 */
169#if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
170#define HAL_USE_UART FALSE
171#endif
172
173/**
174 * @brief Enables the USB subsystem.
175 */
176#if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
177#define HAL_USE_USB TRUE
178#endif
179
180/**
181 * @brief Enables the WDG subsystem.
182 */
183#if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
184#define HAL_USE_WDG FALSE
185#endif
186
187/**
188 * @brief Enables the WSPI subsystem.
189 */
190#if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__)
191#define HAL_USE_WSPI FALSE
192#endif
193
194/*===========================================================================*/
195/* PAL driver related settings. */
196/*===========================================================================*/
197
198/**
199 * @brief Enables synchronous APIs.
200 * @note Disabling this option saves both code and data space.
201 */
202#if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__)
203#define PAL_USE_CALLBACKS FALSE
204#endif
205
206/**
207 * @brief Enables synchronous APIs.
208 * @note Disabling this option saves both code and data space.
209 */
210#if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
211#define PAL_USE_WAIT FALSE
212#endif
213
214/*===========================================================================*/
215/* ADC driver related settings. */
216/*===========================================================================*/
217
218/**
219 * @brief Enables synchronous APIs.
220 * @note Disabling this option saves both code and data space.
221 */
222#if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
223#define ADC_USE_WAIT TRUE
224#endif
225
226/**
227 * @brief Enables the @p adcAcquireBus() and @p adcReleaseBus() APIs.
228 * @note Disabling this option saves both code and data space.
229 */
230#if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
231#define ADC_USE_MUTUAL_EXCLUSION TRUE
232#endif
233
234/*===========================================================================*/
235/* CAN driver related settings. */
236/*===========================================================================*/
237
238/**
239 * @brief Sleep mode related APIs inclusion switch.
240 */
241#if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
242#define CAN_USE_SLEEP_MODE TRUE
243#endif
244
245/**
246 * @brief Enforces the driver to use direct callbacks rather than OSAL events.
247 */
248#if !defined(CAN_ENFORCE_USE_CALLBACKS) || defined(__DOXYGEN__)
249#define CAN_ENFORCE_USE_CALLBACKS FALSE
250#endif
251
252/*===========================================================================*/
253/* CRY driver related settings. */
254/*===========================================================================*/
255
256/**
257 * @brief Enables the SW fall-back of the cryptographic driver.
258 * @details When enabled, this option, activates a fall-back software
259 * implementation for algorithms not supported by the underlying
260 * hardware.
261 * @note Fall-back implementations may not be present for all algorithms.
262 */
263#if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__)
264#define HAL_CRY_USE_FALLBACK FALSE
265#endif
266
267/**
268 * @brief Makes the driver forcibly use the fall-back implementations.
269 */
270#if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__)
271#define HAL_CRY_ENFORCE_FALLBACK FALSE
272#endif
273
274/*===========================================================================*/
275/* DAC driver related settings. */
276/*===========================================================================*/
277
278/**
279 * @brief Enables synchronous APIs.
280 * @note Disabling this option saves both code and data space.
281 */
282#if !defined(DAC_USE_WAIT) || defined(__DOXYGEN__)
283#define DAC_USE_WAIT TRUE
284#endif
285
286/**
287 * @brief Enables the @p dacAcquireBus() and @p dacReleaseBus() APIs.
288 * @note Disabling this option saves both code and data space.
289 */
290#if !defined(DAC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
291#define DAC_USE_MUTUAL_EXCLUSION TRUE
292#endif
293
294/*===========================================================================*/
295/* I2C driver related settings. */
296/*===========================================================================*/
297
298/**
299 * @brief Enables the mutual exclusion APIs on the I2C bus.
300 */
301#if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
302#define I2C_USE_MUTUAL_EXCLUSION TRUE
303#endif
304
305/*===========================================================================*/
306/* MAC driver related settings. */
307/*===========================================================================*/
308
309/**
310 * @brief Enables the zero-copy API.
311 */
312#if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
313#define MAC_USE_ZERO_COPY FALSE
314#endif
315
316/**
317 * @brief Enables an event sources for incoming packets.
318 */
319#if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
320#define MAC_USE_EVENTS TRUE
321#endif
322
323/*===========================================================================*/
324/* MMC_SPI driver related settings. */
325/*===========================================================================*/
326
327/**
328 * @brief Delays insertions.
329 * @details If enabled this options inserts delays into the MMC waiting
330 * routines releasing some extra CPU time for the threads with
331 * lower priority, this may slow down the driver a bit however.
332 * This option is recommended also if the SPI driver does not
333 * use a DMA channel and heavily loads the CPU.
334 */
335#if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
336#define MMC_NICE_WAITING TRUE
337#endif
338
339/*===========================================================================*/
340/* SDC driver related settings. */
341/*===========================================================================*/
342
343/**
344 * @brief Number of initialization attempts before rejecting the card.
345 * @note Attempts are performed at 10mS intervals.
346 */
347#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
348#define SDC_INIT_RETRY 100
349#endif
350
351/**
352 * @brief Include support for MMC cards.
353 * @note MMC support is not yet implemented so this option must be kept
354 * at @p FALSE.
355 */
356#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
357#define SDC_MMC_SUPPORT FALSE
358#endif
359
360/**
361 * @brief Delays insertions.
362 * @details If enabled this options inserts delays into the MMC waiting
363 * routines releasing some extra CPU time for the threads with
364 * lower priority, this may slow down the driver a bit however.
365 */
366#if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
367#define SDC_NICE_WAITING TRUE
368#endif
369
370/**
371 * @brief OCR initialization constant for V20 cards.
372 */
373#if !defined(SDC_INIT_OCR_V20) || defined(__DOXYGEN__)
374#define SDC_INIT_OCR_V20 0x50FF8000U
375#endif
376
377/**
378 * @brief OCR initialization constant for non-V20 cards.
379 */
380#if !defined(SDC_INIT_OCR) || defined(__DOXYGEN__)
381#define SDC_INIT_OCR 0x80100000U
382#endif
383
384/*===========================================================================*/
385/* SERIAL driver related settings. */
386/*===========================================================================*/
387
388/**
389 * @brief Default bit rate.
390 * @details Configuration parameter, this is the baud rate selected for the
391 * default configuration.
392 */
393#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
394#define SERIAL_DEFAULT_BITRATE 38400
395#endif
396
397/**
398 * @brief Serial buffers size.
399 * @details Configuration parameter, you can change the depth of the queue
400 * buffers depending on the requirements of your application.
401 * @note The default is 16 bytes for both the transmission and receive
402 * buffers.
403 */
404#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
405#define SERIAL_BUFFERS_SIZE 16
406#endif
407
408/*===========================================================================*/
409/* SERIAL_USB driver related setting. */
410/*===========================================================================*/
411
412/**
413 * @brief Serial over USB buffers size.
414 * @details Configuration parameter, the buffer size must be a multiple of
415 * the USB data endpoint maximum packet size.
416 * @note The default is 256 bytes for both the transmission and receive
417 * buffers.
418 */
419#if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__)
420#define SERIAL_USB_BUFFERS_SIZE 1
421#endif
422
423/**
424 * @brief Serial over USB number of buffers.
425 * @note The default is 2 buffers.
426 */
427#if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__)
428#define SERIAL_USB_BUFFERS_NUMBER 2
429#endif
430
431/*===========================================================================*/
432/* SPI driver related settings. */
433/*===========================================================================*/
434
435/**
436 * @brief Enables synchronous APIs.
437 * @note Disabling this option saves both code and data space.
438 */
439#if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
440#define SPI_USE_WAIT TRUE
441#endif
442
443/**
444 * @brief Enables circular transfers APIs.
445 * @note Disabling this option saves both code and data space.
446 */
447#if !defined(SPI_USE_CIRCULAR) || defined(__DOXYGEN__)
448#define SPI_USE_CIRCULAR FALSE
449#endif
450
451
452/**
453 * @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
454 * @note Disabling this option saves both code and data space.
455 */
456#if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
457#define SPI_USE_MUTUAL_EXCLUSION TRUE
458#endif
459
460/**
461 * @brief Handling method for SPI CS line.
462 * @note Disabling this option saves both code and data space.
463 */
464#if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__)
465#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
466#endif
467
468/*===========================================================================*/
469/* UART driver related settings. */
470/*===========================================================================*/
471
472/**
473 * @brief Enables synchronous APIs.
474 * @note Disabling this option saves both code and data space.
475 */
476#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
477#define UART_USE_WAIT FALSE
478#endif
479
480/**
481 * @brief Enables the @p uartAcquireBus() and @p uartReleaseBus() APIs.
482 * @note Disabling this option saves both code and data space.
483 */
484#if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
485#define UART_USE_MUTUAL_EXCLUSION FALSE
486#endif
487
488/*===========================================================================*/
489/* USB driver related settings. */
490/*===========================================================================*/
491
492/**
493 * @brief Enables synchronous APIs.
494 * @note Disabling this option saves both code and data space.
495 */
496#if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
497#define USB_USE_WAIT TRUE
498#endif
499
500/*===========================================================================*/
501/* WSPI driver related settings. */
502/*===========================================================================*/
503
504/**
505 * @brief Enables synchronous APIs.
506 * @note Disabling this option saves both code and data space.
507 */
508#if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__)
509#define WSPI_USE_WAIT TRUE
510#endif
511
512/**
513 * @brief Enables the @p wspiAcquireBus() and @p wspiReleaseBus() APIs.
514 * @note Disabling this option saves both code and data space.
515 */
516#if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
517#define WSPI_USE_MUTUAL_EXCLUSION TRUE
518#endif
519
520#endif /* HALCONF_H */
521
522/** @} */