rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
config
boards
cypress
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
// Cypress has its own USB CDC driver, disable ChibiOS's driver
34
#undef HAL_USE_USB
35
#define HAL_USE_USB FALSE
36
#undef HAL_USE_SERIAL_USB
37
#define HAL_USE_SERIAL_USB FALSE
38
39
// Warning! This is used for Hellen-cypress board!
40
#define HAL_USE_PAL_POWER_PINS TRUE
41
42
/**
43
* @brief Enables the EXT subsystem.
44
*/
45
#if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)
46
#define HAL_USE_EXT FALSE
47
#endif
48
49
/**
50
* @brief Enables the I2C subsystem.
51
*/
52
#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
53
#define HAL_USE_I2C FALSE
54
#endif
55
56
/**
57
* @brief Enables the ICU subsystem.
58
*/
59
#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
60
#define HAL_USE_ICU FALSE
61
#endif
62
63
/**
64
* @brief Enables the PWM subsystem.
65
*/
66
#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
67
#define HAL_USE_PWM FALSE
/*TRUE*/
68
#endif
69
70
/**
71
* @brief Enables the RTC subsystem.
72
*/
73
#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
74
#define HAL_USE_RTC FALSE
75
#endif
76
77
/**
78
* @brief Enables the SDC subsystem.
79
*/
80
#if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
81
#define HAL_USE_SDC FALSE
82
#endif
83
84
/**
85
* @brief Enables the SERIAL subsystem.
86
*/
87
#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
88
#define HAL_USE_SERIAL FALSE
89
#endif
90
91
/**
92
* @brief Enables the UART subsystem.
93
*/
94
#if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
95
#define HAL_USE_UART FALSE
/*TRUE*/
96
#endif
97
98
/**
99
* @brief Enables the Comparator subsystem.
100
*/
101
#if !defined(HAL_USE_COMP) || defined(__DOXYGEN__)
102
#define HAL_USE_COMP FALSE
103
#endif
104
105
106
/*===========================================================================*/
107
/* PAL driver related settings. */
108
/*===========================================================================*/
109
110
/**
111
* @brief Enables synchronous APIs.
112
* @note Disabling this option saves both code and data space.
113
*/
114
#if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
115
#define PAL_USE_WAIT TRUE
116
#endif
117
118
/*===========================================================================*/
119
/* SDC driver related settings. */
120
/*===========================================================================*/
121
122
/**
123
* @brief Include support for MMC cards.
124
* @note MMC support is not yet implemented so this option must be kept
125
* at @p FALSE.
126
*/
127
#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
128
#define SDC_MMC_SUPPORT FALSE
129
#endif
130
131
/*===========================================================================*/
132
/* SPI driver related settings. */
133
/*===========================================================================*/
134
135
#if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__)
136
#define SPI_SELECT_MODE SPI_SELECT_MODE_LLD
137
#endif
138
139
/*===========================================================================*/
140
/* UART driver related settings. */
141
/*===========================================================================*/
142
143
/**
144
* @brief Enables synchronous APIs.
145
* @note Disabling this option saves both code and data space.
146
*/
147
#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
148
#define UART_USE_WAIT TRUE
149
#endif
150
151
/**
152
* @brief Enables the @p uartAcquireBus() and @p uartReleaseBus() APIs.
153
* @note Disabling this option saves both code and data space.
154
*/
155
#if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
156
#define UART_USE_MUTUAL_EXCLUSION FALSE
157
#endif
158
159
#endif
/* _HALCONF_H_ */
160
161
/** @} */
rusefi_halconf.h
Generated on Sat Sep 27 2025 00:10:06 for rusEFI by
1.9.8