rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
hw_layer
ports
stm32
stm32h7
cfg
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 FALSE
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
#define HAL_USE_UART FALSE
103
#endif
104
105
/**
106
* @brief Enables the WSPI subsystem.
107
*/
108
#if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__)
109
#define HAL_USE_WSPI FALSE
110
#endif
111
112
/**
113
* @brief Enables the WDG subsystem.
114
*/
115
#if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
116
#define HAL_USE_WDG TRUE
117
#endif
118
119
/*===========================================================================*/
120
/* PAL driver related settings. */
121
/*===========================================================================*/
122
123
/**
124
* @brief Enables synchronous APIs.
125
* @note Disabling this option saves both code and data space.
126
*/
127
#if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
128
#define PAL_USE_WAIT FALSE
129
#endif
130
131
/*===========================================================================*/
132
/* CAN driver related settings. */
133
/*===========================================================================*/
134
135
/**
136
* @brief Enforces the driver to use direct callbacks rather than OSAL events.
137
*/
138
#if !defined(CAN_ENFORCE_USE_CALLBACKS) || defined(__DOXYGEN__)
139
#define CAN_ENFORCE_USE_CALLBACKS FALSE
140
#endif
141
142
/*===========================================================================*/
143
/* CRY driver related settings. */
144
/*===========================================================================*/
145
146
/**
147
* @brief Enables the SW fall-back of the cryptographic driver.
148
* @details When enabled, this option, activates a fall-back software
149
* implementation for algorithms not supported by the underlying
150
* hardware.
151
* @note Fall-back implementations may not be present for all algorithms.
152
*/
153
#if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__)
154
#define HAL_CRY_USE_FALLBACK FALSE
155
#endif
156
157
/**
158
* @brief Makes the driver forcibly use the fall-back implementations.
159
*/
160
#if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__)
161
#define HAL_CRY_ENFORCE_FALLBACK FALSE
162
#endif
163
164
/*===========================================================================*/
165
/* SDC driver related settings. */
166
/*===========================================================================*/
167
168
/**
169
* @brief Include support for MMC cards.
170
* @note MMC support is not yet implemented so this option must be kept
171
* at @p FALSE.
172
*/
173
#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
174
#define SDC_MMC_SUPPORT FALSE
175
#endif
176
177
/**
178
* @brief OCR initialization constant for V20 cards.
179
*/
180
#if !defined(SDC_INIT_OCR_V20) || defined(__DOXYGEN__)
181
#define SDC_INIT_OCR_V20 0x50FF8000U
182
#endif
183
184
/**
185
* @brief OCR initialization constant for non-V20 cards.
186
*/
187
#if !defined(SDC_INIT_OCR) || defined(__DOXYGEN__)
188
#define SDC_INIT_OCR 0x80100000U
189
#endif
190
191
/*===========================================================================*/
192
/* SPI driver related settings. */
193
/*===========================================================================*/
194
195
/**
196
* @brief Enables circular transfers APIs.
197
* @note Disabling this option saves both code and data space.
198
*/
199
#if !defined(SPI_USE_CIRCULAR) || defined(__DOXYGEN__)
200
#define SPI_USE_CIRCULAR FALSE
201
#endif
202
203
/**
204
* @brief Handling method for SPI CS line.
205
* @note Disabling this option saves both code and data space.
206
*/
207
#if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__)
208
#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
209
#endif
210
211
/*===========================================================================*/
212
/* UART driver related settings. */
213
/*===========================================================================*/
214
215
/**
216
* @brief Enables synchronous APIs.
217
* @note Disabling this option saves both code and data space.
218
*/
219
#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
220
#define UART_USE_WAIT FALSE
221
#endif
222
223
224
#endif
/* HALCONF_H */
225
226
/** @} */
rusefi_halconf.h
Generated on Sat Sep 27 2025 00:10:06 for rusEFI by
1.9.8