-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstm32g0xx_hal_conf.h.in
260 lines (209 loc) · 7.14 KB
/
stm32g0xx_hal_conf.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
/**
* \file
* \brief STM32G0xx_HAL_Driver configuration
*
* \warning
* Automatically generated file - do not edit!
*
* \date ${timestamp}
*/
#ifndef INCLUDE_STM32G0XX_HAL_CONF_H_
#define INCLUDE_STM32G0XX_HAL_CONF_H_
#include "STM32G0xx_HAL_Driver-configuration.h"
#include "distortos/chip/CMSIS-proxy.h"
#ifdef USE_FULL_ASSERT
#include <assert.h>
#endif // def USE_FULL_ASSERT
#ifdef __cplusplus
extern "C"
{
#endif /* def __cplusplus */
/*---------------------------------------------------------------------------------------------------------------------+
| global macros
+---------------------------------------------------------------------------------------------------------------------*/
#define HAL_MODULE_ENABLED
#ifdef DISTORTOS_CHIP_RCC_HSE_FREQUENCY
/** value of the external high speed oscillator, Hz */
#define HSE_VALUE DISTORTOS_CHIP_RCC_HSE_FREQUENCY
#endif /* def DISTORTOS_CHIP_RCC_HSE_FREQUENCY */
/** tick interrupt priority */
#define TICK_INT_PRIORITY 0
#ifdef USE_FULL_ASSERT
/**
* \brief The assert_param() macro is a wrapper around standard assert()
*/
#define assert_param(expression) assert(expression)
#else
/**
* \brief assert_param() macro for "asserts disabled" configuration which does not produce "unused variable" warning
*/
#define assert_param(expression) (void)sizeof(expression)
#endif /* USE_FULL_ASSERT */
/*---------------------------------------------------------------------------------------------------------------------+
| include headers of enabled modules
+---------------------------------------------------------------------------------------------------------------------*/
#define HAL_RCC_MODULE_ENABLED
#include "stm32g0xx_hal_rcc.h"
#cmakedefine01 STM32G0xx_HAL_Driver_DMA
#if STM32G0xx_HAL_Driver_DMA
#define HAL_DMA_MODULE_ENABLED
#include "stm32g0xx_hal_dma.h"
#endif /* STM32G0xx_HAL_Driver_DMA */
#undef STM32G0xx_HAL_Driver_DMA
#cmakedefine01 STM32G0xx_HAL_Driver_ADC
#if STM32G0xx_HAL_Driver_ADC
#define HAL_ADC_MODULE_ENABLED
#include "stm32g0xx_hal_adc.h"
#include "stm32g0xx_hal_adc_ex.h"
#endif /* STM32G0xx_HAL_Driver_ADC */
#undef STM32G0xx_HAL_Driver_ADC
#cmakedefine01 STM32G0xx_HAL_Driver_CEC
#if STM32G0xx_HAL_Driver_CEC
#define HAL_CEC_MODULE_ENABLED
#include "stm32g0xx_hal_cec.h"
#endif /* STM32G0xx_HAL_Driver_CEC */
#undef STM32G0xx_HAL_Driver_CEC
#cmakedefine01 STM32G0xx_HAL_Driver_COMP
#if STM32G0xx_HAL_Driver_COMP
#define HAL_COMP_MODULE_ENABLED
#include "stm32g0xx_hal_comp.h"
#endif /* STM32G0xx_HAL_Driver_COMP */
#undef STM32G0xx_HAL_Driver_COMP
#define HAL_CORTEX_MODULE_ENABLED
#include "stm32g0xx_hal_cortex.h"
#cmakedefine01 STM32G0xx_HAL_Driver_CRC
#if STM32G0xx_HAL_Driver_CRC
#define HAL_CRC_MODULE_ENABLED
#include "stm32g0xx_hal_crc.h"
#endif /* STM32G0xx_HAL_Driver_CRC */
#undef STM32G0xx_HAL_Driver_CRC
#cmakedefine01 STM32G0xx_HAL_Driver_CRYP
#if STM32G0xx_HAL_Driver_CRYP
#define HAL_CRYP_MODULE_ENABLED
#include "stm32g0xx_hal_cryp.h"
#endif /* STM32G0xx_HAL_Driver_CRYP */
#undef STM32G0xx_HAL_Driver_CRYP
#cmakedefine01 STM32G0xx_HAL_Driver_DAC
#if STM32G0xx_HAL_Driver_DAC
#define HAL_DAC_MODULE_ENABLED
#include "stm32g0xx_hal_dac.h"
#endif /* STM32G0xx_HAL_Driver_DAC */
#undef STM32G0xx_HAL_Driver_DAC
#cmakedefine01 STM32G0xx_HAL_Driver_EXTI
#if STM32G0xx_HAL_Driver_EXTI
#define HAL_EXTI_MODULE_ENABLED
#include "stm32g0xx_hal_exti.h"
#endif /* STM32G0xx_HAL_Driver_EXTI */
#undef STM32G0xx_HAL_Driver_EXTI
#cmakedefine01 STM32G0xx_HAL_Driver_FDCAN
#if STM32G0xx_HAL_Driver_FDCAN
#define HAL_FDCAN_MODULE_ENABLED
#include "stm32g0xx_hal_fdcan.h"
#endif /* STM32G0xx_HAL_Driver_FDCAN */
#undef STM32G0xx_HAL_Driver_FDCAN
#define HAL_FLASH_MODULE_ENABLED
#include "stm32g0xx_hal_flash.h"
#define HAL_GPIO_MODULE_ENABLED
#include "stm32g0xx_hal_gpio.h"
#cmakedefine01 STM32G0xx_HAL_Driver_HCD
#if STM32G0xx_HAL_Driver_HCD
#define HAL_HCD_MODULE_ENABLED
#include "stm32g0xx_hal_hcd.h"
#endif /* STM32G0xx_HAL_Driver_HCD */
#undef STM32G0xx_HAL_Driver_HCD
#cmakedefine01 STM32G0xx_HAL_Driver_I2C
#if STM32G0xx_HAL_Driver_I2C
#define HAL_I2C_MODULE_ENABLED
#include "stm32g0xx_hal_i2c.h"
#endif /* STM32G0xx_HAL_Driver_I2C */
#undef STM32G0xx_HAL_Driver_I2C
#cmakedefine01 STM32G0xx_HAL_Driver_I2S
#if STM32G0xx_HAL_Driver_I2S
#define HAL_I2S_MODULE_ENABLED
#include "stm32g0xx_hal_i2s.h"
#endif /* STM32G0xx_HAL_Driver_I2S */
#undef STM32G0xx_HAL_Driver_I2S
#cmakedefine01 STM32G0xx_HAL_Driver_IRDA
#if STM32G0xx_HAL_Driver_IRDA
#define HAL_IRDA_MODULE_ENABLED
#include "stm32g0xx_hal_irda.h"
#endif /* STM32G0xx_HAL_Driver_IRDA */
#undef STM32G0xx_HAL_Driver_IRDA
#cmakedefine01 STM32G0xx_HAL_Driver_IWDG
#if STM32G0xx_HAL_Driver_IWDG
#define HAL_IWDG_MODULE_ENABLED
#include "stm32g0xx_hal_iwdg.h"
#endif /* STM32G0xx_HAL_Driver_IWDG */
#undef STM32G0xx_HAL_Driver_IWDG
#cmakedefine01 STM32G0xx_HAL_Driver_LPTIM
#if STM32G0xx_HAL_Driver_LPTIM
#define HAL_LPTIM_MODULE_ENABLED
#include "stm32g0xx_hal_lptim.h"
#endif /* STM32G0xx_HAL_Driver_LPTIM */
#undef STM32G0xx_HAL_Driver_LPTIM
#cmakedefine01 STM32G0xx_HAL_Driver_PCD
#if STM32G0xx_HAL_Driver_PCD
#define HAL_PCD_MODULE_ENABLED
#include "stm32g0xx_hal_pcd.h"
#endif /* STM32G0xx_HAL_Driver_PCD */
#undef STM32G0xx_HAL_Driver_PCD
#define HAL_PWR_MODULE_ENABLED
#include "stm32g0xx_hal_pwr.h"
#cmakedefine01 STM32G0xx_HAL_Driver_RNG
#if STM32G0xx_HAL_Driver_RNG
#define HAL_RNG_MODULE_ENABLED
#include "stm32g0xx_hal_rng.h"
#endif /* STM32G0xx_HAL_Driver_RNG */
#undef STM32G0xx_HAL_Driver_RNG
#cmakedefine01 STM32G0xx_HAL_Driver_RTC
#if STM32G0xx_HAL_Driver_RTC
#define HAL_RTC_MODULE_ENABLED
#include "stm32g0xx_hal_rtc.h"
#endif /* STM32G0xx_HAL_Driver_RTC */
#undef STM32G0xx_HAL_Driver_RTC
#cmakedefine01 STM32G0xx_HAL_Driver_SMARTCARD
#if STM32G0xx_HAL_Driver_SMARTCARD
#define HAL_SMARTCARD_MODULE_ENABLED
#include "stm32g0xx_hal_smartcard.h"
#endif /* STM32G0xx_HAL_Driver_SMARTCARD */
#undef STM32G0xx_HAL_Driver_SMARTCARD
#cmakedefine01 STM32G0xx_HAL_Driver_SMBUS
#if STM32G0xx_HAL_Driver_SMBUS
#define HAL_SMBUS_MODULE_ENABLED
#include "stm32g0xx_hal_smbus.h"
#endif /* STM32G0xx_HAL_Driver_SMBUS */
#undef STM32G0xx_HAL_Driver_SMBUS
#cmakedefine01 STM32G0xx_HAL_Driver_SPI
#if STM32G0xx_HAL_Driver_SPI
#define HAL_SPI_MODULE_ENABLED
#include "stm32g0xx_hal_spi.h"
#endif /* STM32G0xx_HAL_Driver_SPI */
#undef STM32G0xx_HAL_Driver_SPI
#cmakedefine01 STM32G0xx_HAL_Driver_TIM
#if STM32G0xx_HAL_Driver_TIM
#define HAL_TIM_MODULE_ENABLED
#include "stm32g0xx_hal_tim.h"
#endif /* STM32G0xx_HAL_Driver_TIM */
#undef STM32G0xx_HAL_Driver_TIM
#cmakedefine01 STM32G0xx_HAL_Driver_UART
#if STM32G0xx_HAL_Driver_UART
#define HAL_UART_MODULE_ENABLED
#include "stm32g0xx_hal_uart.h"
#endif /* STM32G0xx_HAL_Driver_UART */
#undef STM32G0xx_HAL_Driver_UART
#cmakedefine01 STM32G0xx_HAL_Driver_USART
#if STM32G0xx_HAL_Driver_USART
#define HAL_USART_MODULE_ENABLED
#include "stm32g0xx_hal_usart.h"
#endif /* STM32G0xx_HAL_Driver_USART */
#undef STM32G0xx_HAL_Driver_USART
#cmakedefine01 STM32G0xx_HAL_Driver_WWDG
#if STM32G0xx_HAL_Driver_WWDG
#define HAL_WWDG_MODULE_ENABLED
#include "stm32g0xx_hal_wwdg.h"
#endif /* STM32G0xx_HAL_Driver_WWDG */
#undef STM32G0xx_HAL_Driver_WWDG
#ifdef __cplusplus
} /* extern "C" */
#endif /* def __cplusplus */
#endif /* INCLUDE_STM32G0XX_HAL_CONF_H_ */