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..2018 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 cryptographic subsystem.
35 */
36#if !defined(HAL_USE_CRY) || defined(__DOXYGEN__)
37#define HAL_USE_CRY FALSE
38#endif
39
40/**
41 * @brief Enables the EFlash subsystem.
42 */
43#if !defined(HAL_USE_EFL) || defined(__DOXYGEN__)
44#define HAL_USE_EFL FALSE
45#endif
46
47/**
48 * @brief Enables the I2C subsystem.
49 */
50#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
51#define HAL_USE_I2C FALSE
52#endif
53
54/**
55 * @brief Enables the ICU subsystem.
56 */
57#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
58#define HAL_USE_ICU TRUE
59#endif
60
61/**
62 * @brief Enables the PWM subsystem.
63 */
64#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
65#define HAL_USE_PWM TRUE
66#endif
67
68/**
69 * @brief Enables the RTC subsystem.
70 */
71#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
72#define HAL_USE_RTC TRUE
73#endif
74
75
76/**
77 * @brief Enables the SERIAL subsystem.
78 */
79#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
80#define HAL_USE_SERIAL TRUE
81#endif
82
83/**
84 * @brief Enables the SIO subsystem.
85 */
86#if !defined(HAL_USE_SIO) || defined(__DOXYGEN__)
87#define HAL_USE_SIO FALSE
88#endif
89
90
91/**
92 * @brief Enables the TRNG subsystem.
93 */
94#if !defined(HAL_USE_TRNG) || defined(__DOXYGEN__)
95#define HAL_USE_TRNG FALSE
96#endif
97
98/**
99 * @brief Enables the UART subsystem.
100 */
101#if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
102/* Configured in efifeatures.h */
103#if defined(TS_PRIMARY_UxART_PORT)
104#define HAL_USE_UART TRUE
105#else
106#define HAL_USE_UART FALSE
107#endif
108#endif
109
110/**
111 * @brief Enables the WSPI subsystem.
112 */
113#if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__)
114#define HAL_USE_WSPI FALSE
115#endif
116
117/**
118 * @brief Enables the WDG subsystem.
119 */
120#if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
121#define HAL_USE_WDG TRUE
122#endif
123
124/*===========================================================================*/
125/* PAL driver related settings. */
126/*===========================================================================*/
127
128/**
129 * @brief Enables synchronous APIs.
130 * @note Disabling this option saves both code and data space.
131 */
132#if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
133#define PAL_USE_WAIT FALSE
134#endif
135
136/*===========================================================================*/
137/* CAN driver related settings. */
138/*===========================================================================*/
139
140/**
141 * @brief Enforces the driver to use direct callbacks rather than OSAL events.
142 */
143#if !defined(CAN_ENFORCE_USE_CALLBACKS) || defined(__DOXYGEN__)
144#define CAN_ENFORCE_USE_CALLBACKS FALSE
145#endif
146
147/*===========================================================================*/
148/* CRY driver related settings. */
149/*===========================================================================*/
150
151/**
152 * @brief Enables the SW fall-back of the cryptographic driver.
153 * @details When enabled, this option, activates a fall-back software
154 * implementation for algorithms not supported by the underlying
155 * hardware.
156 * @note Fall-back implementations may not be present for all algorithms.
157 */
158#if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__)
159#define HAL_CRY_USE_FALLBACK FALSE
160#endif
161
162/**
163 * @brief Makes the driver forcibly use the fall-back implementations.
164 */
165#if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__)
166#define HAL_CRY_ENFORCE_FALLBACK FALSE
167#endif
168
169/*===========================================================================*/
170/* SDC driver related settings. */
171/*===========================================================================*/
172
173/**
174 * @brief Include support for MMC cards.
175 * @note MMC support is not yet implemented so this option must be kept
176 * at @p FALSE.
177 */
178#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
179#define SDC_MMC_SUPPORT FALSE
180#endif
181
182/**
183 * @brief OCR initialization constant for V20 cards.
184 */
185#if !defined(SDC_INIT_OCR_V20) || defined(__DOXYGEN__)
186#define SDC_INIT_OCR_V20 0x50FF8000U
187#endif
188
189/**
190 * @brief OCR initialization constant for non-V20 cards.
191 */
192#if !defined(SDC_INIT_OCR) || defined(__DOXYGEN__)
193#define SDC_INIT_OCR 0x80100000U
194#endif
195
196/*===========================================================================*/
197/* SPI driver related settings. */
198/*===========================================================================*/
199
200/**
201 * @brief Enables circular transfers APIs.
202 * @note Disabling this option saves both code and data space.
203 */
204#if !defined(SPI_USE_CIRCULAR) || defined(__DOXYGEN__)
205#define SPI_USE_CIRCULAR FALSE
206#endif
207
208/**
209 * @brief Handling method for SPI CS line.
210 * @note Disabling this option saves both code and data space.
211 */
212#if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__)
213#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
214#endif
215
216/*===========================================================================*/
217/* UART driver related settings. */
218/*===========================================================================*/
219
220/**
221 * @brief Enables synchronous APIs.
222 * @note Disabling this option saves both code and data space.
223 */
224#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
225/* Configured in efifeatures.h */
226#if defined(TS_PRIMARY_UxART_PORT)
227#define UART_USE_WAIT TRUE
228#else
229#define UART_USE_WAIT FALSE
230#endif
231#endif
232
233
234#endif /* HALCONF_H */
235
236/** @} */