rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
halconf.h
Go to the documentation of this file.
1/*
2 ChibiOS - Copyright (C) 2006..2015 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
17/**
18 * @file templates/halconf.h
19 * @brief HAL configuration header.
20 * @details HAL configuration file, this file allows to enable or disable the
21 * various device drivers from your application. You may also use
22 * this file in order to override the device drivers default settings.
23 *
24 * @addtogroup HAL_CONF
25 * @{
26 */
27
28#ifndef _HALCONF_H_
29#define _HALCONF_H_
30
31#include "rusefi_halconf.h"
32
33/**
34 * @brief Enables the EXT subsystem.
35 */
36#if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)
37#define HAL_USE_EXT FALSE
38#endif
39
40/**
41 * @brief Enables the I2C subsystem.
42 */
43#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
44#define HAL_USE_I2C FALSE
45#endif
46
47/**
48 * @brief Enables the ICU subsystem.
49 */
50#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
51#define HAL_USE_ICU FALSE
52#endif
53
54/**
55 * @brief Enables the PWM subsystem.
56 */
57#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
58#define HAL_USE_PWM FALSE
59#endif
60
61/**
62 * @brief Enables the RTC subsystem.
63 */
64#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
65#define HAL_USE_RTC FALSE
66#endif
67
68/**
69 * @brief Enables the SDC subsystem.
70 */
71#if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
72#define HAL_USE_SDC FALSE
73#endif
74
75/**
76 * @brief Enables the SERIAL subsystem.
77 */
78#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
79#define HAL_USE_SERIAL FALSE
80#endif
81
82/**
83 * @brief Enables the UART subsystem.
84 */
85#if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
86#define HAL_USE_UART TRUE
87#endif
88
89/**
90 * @brief Enables the USB subsystem.
91 */
92#if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
93#define HAL_USE_USB FALSE
94#endif
95
96
97/**
98 * @brief Enables the community overlay.
99 */
100#if !defined(HAL_USE_COMMUNITY) || defined(__DOXYGEN__)
101#define HAL_USE_COMMUNITY TRUE
102#endif
103
104/**
105 * @brief Enables the TIMCAP subsystem.
106 */
107#if !defined(HAL_USE_COMP) || defined(__DOXYGEN__)
108#define HAL_USE_COMP TRUE
109#endif
110
111/*===========================================================================*/
112/* PAL driver related settings. */
113/*===========================================================================*/
114
115/**
116 * @brief Enables synchronous APIs.
117 * @note Disabling this option saves both code and data space.
118 */
119#if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
120#define PAL_USE_WAIT TRUE
121#endif
122
123/*===========================================================================*/
124/* SDC driver related settings. */
125/*===========================================================================*/
126
127/**
128 * @brief Include support for MMC cards.
129 * @note MMC support is not yet implemented so this option must be kept
130 * at @p FALSE.
131 */
132#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
133#define SDC_MMC_SUPPORT FALSE
134#endif
135
136/*===========================================================================*/
137/* SPI driver related settings. */
138/*===========================================================================*/
139
140#if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__)
141#define SPI_SELECT_MODE SPI_SELECT_MODE_LLD
142#endif
143
144/*===========================================================================*/
145/* UART driver related settings. */
146/*===========================================================================*/
147
148/**
149 * @brief Enables synchronous APIs.
150 * @note Disabling this option saves both code and data space.
151 */
152#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
153#define UART_USE_WAIT TRUE
154#endif
155
156/**
157 * @brief Enables the @p uartAcquireBus() and @p uartReleaseBus() APIs.
158 * @note Disabling this option saves both code and data space.
159 */
160#if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
161#define UART_USE_MUTUAL_EXCLUSION FALSE
162#endif
163
164#endif /* _HALCONF_H_ */
165
166/** @} */