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