rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
hw_layer
ports
stm32
stm32f7
cfg
halconf.h
Go to the documentation of this file.
1
/*
2
ChibiOS - Copyright (C) 2006..2016 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 FLASH subsystem.
35
*/
36
#if !defined(HAL_USE_FLASH) || defined(__DOXYGEN__)
37
#define HAL_USE_FLASH FALSE
38
#endif
39
40
#if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
41
#define PAL_USE_WAIT FALSE
42
#endif
43
44
/**
45
* @brief Enables the EXT subsystem.
46
*/
47
#if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)
48
#define HAL_USE_EXT FALSE
49
#endif
50
51
/**
52
* @brief Enables the I2C subsystem.
53
*/
54
#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
55
#define HAL_USE_I2C FALSE
56
#endif
57
58
/**
59
* @brief Enables the ICU subsystem.
60
*/
61
#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
62
#define HAL_USE_ICU TRUE
63
#endif
64
65
/**
66
* @brief Enables the PWM subsystem.
67
*/
68
#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
69
#define HAL_USE_PWM TRUE
70
#endif
71
72
/**
73
* @brief Enables the QSPI subsystem.
74
*/
75
#if !defined(HAL_USE_QSPI) || defined(__DOXYGEN__)
76
#define HAL_USE_QSPI FALSE
77
#endif
78
79
/**
80
* @brief Enables the RTC subsystem.
81
*/
82
#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
83
#define HAL_USE_RTC TRUE
84
#endif
85
86
/**
87
* @brief Enables the SERIAL subsystem.
88
*/
89
#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
90
#define HAL_USE_SERIAL TRUE
91
#endif
92
93
94
/**
95
* @brief Enables the UART subsystem.
96
*/
97
#if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
98
/* Configured in efifeatures.h */
99
#if defined(TS_PRIMARY_UxART_PORT)
100
#define HAL_USE_UART TRUE
101
#else
102
#define HAL_USE_UART FALSE
103
#endif
104
#endif
105
106
/**
107
* @brief Enables the WDG subsystem.
108
*/
109
#if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
110
#define HAL_USE_WDG TRUE
111
#endif
112
113
/*===========================================================================*/
114
/* SDC driver related settings. */
115
/*===========================================================================*/
116
117
/**
118
* @brief Include support for MMC cards.
119
* @note MMC support is not yet implemented so this option must be kept
120
* at @p FALSE.
121
*/
122
#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
123
#define SDC_MMC_SUPPORT FALSE
124
#endif
125
126
/*===========================================================================*/
127
/* UART driver related settings. */
128
/*===========================================================================*/
129
130
/**
131
* @brief Enables synchronous APIs.
132
* @note Disabling this option saves both code and data space.
133
*/
134
#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
135
/* Configured in efifeatures.h */
136
#if defined(TS_PRIMARY_UxART_PORT)
137
#define UART_USE_WAIT TRUE
138
#else
139
#define UART_USE_WAIT FALSE
140
#endif
141
#endif
142
143
#endif
/* HALCONF_H */
144
145
/** @} */
rusefi_halconf.h
Generated on Sat Sep 27 2025 00:10:06 for rusEFI by
1.9.8