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