stm32f411/stm32f411e-disco/Inc/stm32f4xx_hal_conf.h
Go to the documentation of this file.
1 
36 /* Define to prevent recursive inclusion -------------------------------------*/
37 #ifndef __STM32F4xx_HAL_CONF_H
38 #define __STM32F4xx_HAL_CONF_H
39 
40 #ifdef __cplusplus
41  extern "C" {
42 #endif
43 
44 /* Exported types ------------------------------------------------------------*/
45 /* Exported constants --------------------------------------------------------*/
46 
47 /* ########################## Module Selection ############################## */
51 #define HAL_MODULE_ENABLED
52 #define HAL_DMA_MODULE_ENABLED
53 #define HAL_FLASH_MODULE_ENABLED
54 #define HAL_GPIO_MODULE_ENABLED
55 #define HAL_I2C_MODULE_ENABLED
56 #define HAL_I2S_MODULE_ENABLED
57 #define HAL_SPI_MODULE_ENABLED
58 #define HAL_PWR_MODULE_ENABLED
59 #define HAL_RCC_MODULE_ENABLED
60 #define HAL_CORTEX_MODULE_ENABLED
61 
62 /* ########################## HSE/HSI Values adaptation ##################### */
68 #if !defined (HSE_VALUE)
69  #define HSE_VALUE (8000000U)
70 #endif /* HSE_VALUE */
71 
72 #if !defined (HSE_STARTUP_TIMEOUT)
73  #define HSE_STARTUP_TIMEOUT (100U)
74 #endif /* HSE_STARTUP_TIMEOUT */
75 
81 #if !defined (HSI_VALUE)
82  #define HSI_VALUE (16000000U)
83 #endif /* HSI_VALUE */
84 
88 #if !defined (LSI_VALUE)
89  #define LSI_VALUE (32000U)
90 #endif /* LSI_VALUE */
96 #if !defined (LSE_VALUE)
97  #define LSE_VALUE (32768U)
98 #endif /* LSE_VALUE */
99 
100 #if !defined (LSE_STARTUP_TIMEOUT)
101  #define LSE_STARTUP_TIMEOUT (5000U)
102 #endif /* LSE_STARTUP_TIMEOUT */
103 
109 #if !defined (EXTERNAL_CLOCK_VALUE)
110  #define EXTERNAL_CLOCK_VALUE (12288000U)
111 #endif /* EXTERNAL_CLOCK_VALUE */
112 
113 /* Tip: To avoid modifying this file each time you need to use different HSE,
114  === you can define the HSE value in your toolchain compiler preprocessor. */
115 
116 /* ########################### System Configuration ######################### */
120 #define VDD_VALUE (3300U)
121 #define TICK_INT_PRIORITY (0x0FU)
122 #define USE_RTOS 0U
123 #define PREFETCH_ENABLE 1U
124 #define INSTRUCTION_CACHE_ENABLE 1U
125 #define DATA_CACHE_ENABLE 1U
126 
127 #define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */
128 #define USE_HAL_CAN_REGISTER_CALLBACKS 0U /* CAN register callback disabled */
129 #define USE_HAL_CEC_REGISTER_CALLBACKS 0U /* CEC register callback disabled */
130 #define USE_HAL_CRYP_REGISTER_CALLBACKS 0U /* CRYP register callback disabled */
131 #define USE_HAL_DAC_REGISTER_CALLBACKS 0U /* DAC register callback disabled */
132 #define USE_HAL_DCMI_REGISTER_CALLBACKS 0U /* DCMI register callback disabled */
133 #define USE_HAL_DFSDM_REGISTER_CALLBACKS 0U /* DFSDM register callback disabled */
134 #define USE_HAL_DMA2D_REGISTER_CALLBACKS 0U /* DMA2D register callback disabled */
135 #define USE_HAL_DSI_REGISTER_CALLBACKS 0U /* DSI register callback disabled */
136 #define USE_HAL_ETH_REGISTER_CALLBACKS 0U /* ETH register callback disabled */
137 #define USE_HAL_HASH_REGISTER_CALLBACKS 0U /* HASH register callback disabled */
138 #define USE_HAL_HCD_REGISTER_CALLBACKS 0U /* HCD register callback disabled */
139 #define USE_HAL_I2C_REGISTER_CALLBACKS 0U /* I2C register callback disabled */
140 #define USE_HAL_FMPI2C_REGISTER_CALLBACKS 0U /* FMPI2C register callback disabled */
141 #define USE_HAL_I2S_REGISTER_CALLBACKS 0U /* I2S register callback disabled */
142 #define USE_HAL_IRDA_REGISTER_CALLBACKS 0U /* IRDA register callback disabled */
143 #define USE_HAL_LPTIM_REGISTER_CALLBACKS 0U /* LPTIM register callback disabled */
144 #define USE_HAL_LTDC_REGISTER_CALLBACKS 0U /* LTDC register callback disabled */
145 #define USE_HAL_MMC_REGISTER_CALLBACKS 0U /* MMC register callback disabled */
146 #define USE_HAL_NAND_REGISTER_CALLBACKS 0U /* NAND register callback disabled */
147 #define USE_HAL_NOR_REGISTER_CALLBACKS 0U /* NOR register callback disabled */
148 #define USE_HAL_PCCARD_REGISTER_CALLBACKS 0U /* PCCARD register callback disabled */
149 #define USE_HAL_PCD_REGISTER_CALLBACKS 0U /* PCD register callback disabled */
150 #define USE_HAL_QSPI_REGISTER_CALLBACKS 0U /* QSPI register callback disabled */
151 #define USE_HAL_RNG_REGISTER_CALLBACKS 0U /* RNG register callback disabled */
152 #define USE_HAL_RTC_REGISTER_CALLBACKS 0U /* RTC register callback disabled */
153 #define USE_HAL_SAI_REGISTER_CALLBACKS 0U /* SAI register callback disabled */
154 #define USE_HAL_SD_REGISTER_CALLBACKS 0U /* SD register callback disabled */
155 #define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U /* SMARTCARD register callback disabled */
156 #define USE_HAL_SDRAM_REGISTER_CALLBACKS 0U /* SDRAM register callback disabled */
157 #define USE_HAL_SRAM_REGISTER_CALLBACKS 0U /* SRAM register callback disabled */
158 #define USE_HAL_SPDIFRX_REGISTER_CALLBACKS 0U /* SPDIFRX register callback disabled */
159 #define USE_HAL_SMBUS_REGISTER_CALLBACKS 0U /* SMBUS register callback disabled */
160 #define USE_HAL_SPI_REGISTER_CALLBACKS 0U /* SPI register callback disabled */
161 #define USE_HAL_TIM_REGISTER_CALLBACKS 0U /* TIM register callback disabled */
162 #define USE_HAL_UART_REGISTER_CALLBACKS 0U /* UART register callback disabled */
163 #define USE_HAL_USART_REGISTER_CALLBACKS 0U /* USART register callback disabled */
164 #define USE_HAL_WWDG_REGISTER_CALLBACKS 0U /* WWDG register callback disabled */
165 
166 /* ########################## Assert Selection ############################## */
171 /* #define USE_FULL_ASSERT 1U */
172 
173 /* ################## SPI peripheral configuration ########################## */
174 
175 /* CRC FEATURE: Use to activate CRC feature inside HAL SPI Driver
176 * Activated: CRC code is present inside driver
177 * Deactivated: CRC code cleaned from driver
178 */
179 
180 #define USE_SPI_CRC 1U
181 
182 /* Includes ------------------------------------------------------------------*/
187 #ifdef HAL_RCC_MODULE_ENABLED
188  #include "stm32f4xx_hal_rcc.h"
189 #endif /* HAL_RCC_MODULE_ENABLED */
190 
191 #ifdef HAL_GPIO_MODULE_ENABLED
192  #include "stm32f4xx_hal_gpio.h"
193 #endif /* HAL_GPIO_MODULE_ENABLED */
194 
195 #ifdef HAL_DMA_MODULE_ENABLED
196  #include "stm32f4xx_hal_dma.h"
197 #endif /* HAL_DMA_MODULE_ENABLED */
198 
199 #ifdef HAL_CORTEX_MODULE_ENABLED
200  #include "stm32f4xx_hal_cortex.h"
201 #endif /* HAL_CORTEX_MODULE_ENABLED */
202 
203 #ifdef HAL_ADC_MODULE_ENABLED
204  #include "stm32f4xx_hal_adc.h"
205 #endif /* HAL_ADC_MODULE_ENABLED */
206 
207 #ifdef HAL_CAN_MODULE_ENABLED
208  #include "stm32f4xx_hal_can.h"
209 #endif /* HAL_CAN_MODULE_ENABLED */
210 
211 #ifdef HAL_CAN_LEGACY_MODULE_ENABLED
212  #include "stm32f4xx_hal_can_legacy.h"
213 #endif /* HAL_CAN_LEGACY_MODULE_ENABLED */
214 
215 #ifdef HAL_CRC_MODULE_ENABLED
216  #include "stm32f4xx_hal_crc.h"
217 #endif /* HAL_CRC_MODULE_ENABLED */
218 
219 #ifdef HAL_CRYP_MODULE_ENABLED
220  #include "stm32f4xx_hal_cryp.h"
221 #endif /* HAL_CRYP_MODULE_ENABLED */
222 
223 #ifdef HAL_DMA2D_MODULE_ENABLED
224  #include "stm32f4xx_hal_dma2d.h"
225 #endif /* HAL_DMA2D_MODULE_ENABLED */
226 
227 #ifdef HAL_DAC_MODULE_ENABLED
228  #include "stm32f4xx_hal_dac.h"
229 #endif /* HAL_DAC_MODULE_ENABLED */
230 
231 #ifdef HAL_DCMI_MODULE_ENABLED
232  #include "stm32f4xx_hal_dcmi.h"
233 #endif /* HAL_DCMI_MODULE_ENABLED */
234 
235 #ifdef HAL_ETH_MODULE_ENABLED
236  #include "stm32f4xx_hal_eth.h"
237 #endif /* HAL_ETH_MODULE_ENABLED */
238 
239 #ifdef HAL_FLASH_MODULE_ENABLED
240  #include "stm32f4xx_hal_flash.h"
241 #endif /* HAL_FLASH_MODULE_ENABLED */
242 
243 #ifdef HAL_SRAM_MODULE_ENABLED
244  #include "stm32f4xx_hal_sram.h"
245 #endif /* HAL_SRAM_MODULE_ENABLED */
246 
247 #ifdef HAL_NOR_MODULE_ENABLED
248  #include "stm32f4xx_hal_nor.h"
249 #endif /* HAL_NOR_MODULE_ENABLED */
250 
251 #ifdef HAL_NAND_MODULE_ENABLED
252  #include "stm32f4xx_hal_nand.h"
253 #endif /* HAL_NAND_MODULE_ENABLED */
254 
255 #ifdef HAL_PCCARD_MODULE_ENABLED
256  #include "stm32f4xx_hal_pccard.h"
257 #endif /* HAL_PCCARD_MODULE_ENABLED */
258 
259 #ifdef HAL_SDRAM_MODULE_ENABLED
260  #include "stm32f4xx_hal_sdram.h"
261 #endif /* HAL_SDRAM_MODULE_ENABLED */
262 
263 #ifdef HAL_HASH_MODULE_ENABLED
264  #include "stm32f4xx_hal_hash.h"
265 #endif /* HAL_HASH_MODULE_ENABLED */
266 
267 #ifdef HAL_I2C_MODULE_ENABLED
268  #include "stm32f4xx_hal_i2c.h"
269 #endif /* HAL_I2C_MODULE_ENABLED */
270 
271 #ifdef HAL_I2S_MODULE_ENABLED
272  #include "stm32f4xx_hal_i2s.h"
273 #endif /* HAL_I2S_MODULE_ENABLED */
274 
275 #ifdef HAL_IWDG_MODULE_ENABLED
276  #include "stm32f4xx_hal_iwdg.h"
277 #endif /* HAL_IWDG_MODULE_ENABLED */
278 
279 #ifdef HAL_LTDC_MODULE_ENABLED
280  #include "stm32f4xx_hal_ltdc.h"
281 #endif /* HAL_LTDC_MODULE_ENABLED */
282 
283 #ifdef HAL_PWR_MODULE_ENABLED
284  #include "stm32f4xx_hal_pwr.h"
285 #endif /* HAL_PWR_MODULE_ENABLED */
286 
287 #ifdef HAL_RNG_MODULE_ENABLED
288  #include "stm32f4xx_hal_rng.h"
289 #endif /* HAL_RNG_MODULE_ENABLED */
290 
291 #ifdef HAL_RTC_MODULE_ENABLED
292  #include "stm32f4xx_hal_rtc.h"
293 #endif /* HAL_RTC_MODULE_ENABLED */
294 
295 #ifdef HAL_SAI_MODULE_ENABLED
296  #include "stm32f4xx_hal_sai.h"
297 #endif /* HAL_SAI_MODULE_ENABLED */
298 
299 #ifdef HAL_SD_MODULE_ENABLED
300  #include "stm32f4xx_hal_sd.h"
301 #endif /* HAL_SD_MODULE_ENABLED */
302 
303 #ifdef HAL_SPI_MODULE_ENABLED
304  #include "stm32f4xx_hal_spi.h"
305 #endif /* HAL_SPI_MODULE_ENABLED */
306 
307 #ifdef HAL_TIM_MODULE_ENABLED
308  #include "stm32f4xx_hal_tim.h"
309 #endif /* HAL_TIM_MODULE_ENABLED */
310 
311 #ifdef HAL_UART_MODULE_ENABLED
312  #include "stm32f4xx_hal_uart.h"
313 #endif /* HAL_UART_MODULE_ENABLED */
314 
315 #ifdef HAL_USART_MODULE_ENABLED
316  #include "stm32f4xx_hal_usart.h"
317 #endif /* HAL_USART_MODULE_ENABLED */
318 
319 #ifdef HAL_IRDA_MODULE_ENABLED
320  #include "stm32f4xx_hal_irda.h"
321 #endif /* HAL_IRDA_MODULE_ENABLED */
322 
323 #ifdef HAL_SMARTCARD_MODULE_ENABLED
324  #include "stm32f4xx_hal_smartcard.h"
325 #endif /* HAL_SMARTCARD_MODULE_ENABLED */
326 
327 #ifdef HAL_WWDG_MODULE_ENABLED
328  #include "stm32f4xx_hal_wwdg.h"
329 #endif /* HAL_WWDG_MODULE_ENABLED */
330 
331 #ifdef HAL_PCD_MODULE_ENABLED
332  #include "stm32f4xx_hal_pcd.h"
333 #endif /* HAL_PCD_MODULE_ENABLED */
334 
335 #ifdef HAL_HCD_MODULE_ENABLED
336  #include "stm32f4xx_hal_hcd.h"
337 #endif /* HAL_HCD_MODULE_ENABLED */
338 
339 /* Exported macro ------------------------------------------------------------*/
340 #ifdef USE_FULL_ASSERT
341 
349  #define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
350 /* Exported functions ------------------------------------------------------- */
351  void assert_failed(uint8_t* file, uint32_t line);
352 #else
353  #define assert_param(expr) ((void)0U)
354 #endif /* USE_FULL_ASSERT */
355 
356 
357 #ifdef __cplusplus
358 }
359 #endif
360 
361 #endif /* __STM32F4xx_HAL_CONF_H */
362 
363 
364 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
stm32f4xx_hal_pcd.h
Header file of PCD HAL module.
stm32f4xx_hal_iwdg.h
Header file of IWDG HAL module.
stm32f4xx_hal_sdram.h
Header file of SDRAM HAL module.
stm32f4xx_hal_dcmi.h
Header file of DCMI HAL module.
stm32f4xx_hal_smartcard.h
Header file of SMARTCARD HAL module.
stm32f4xx_hal_uart.h
Header file of UART HAL module.
assert_failed
void assert_failed(uint8_t *file, uint32_t line)
Definition: pv_st_f407.c:88
stm32f4xx_hal_eth.h
Header file of ETH HAL module.
stm32f4xx_hal_sd.h
Header file of SD HAL module.
stm32f4xx_hal_rtc.h
Header file of RTC HAL module.
stm32f4xx_hal_irda.h
Header file of IRDA HAL module.
stm32f4xx_hal_pccard.h
Header file of PCCARD HAL module.


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:52