stm32f407/stm32f407g-disc1/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_PWR_MODULE_ENABLED
58 #define HAL_RCC_MODULE_ENABLED
59 #define HAL_SPI_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 0U /* The prefetch will be enabled in SystemClock_Config(), depending on the used
124  STM32F405/415/07/417 device: RevA (prefetch must be off) or RevZ (prefetch can be on/off) */
125 #define INSTRUCTION_CACHE_ENABLE 1U
126 #define DATA_CACHE_ENABLE 1U
127 
128 #define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */
129 #define USE_HAL_CAN_REGISTER_CALLBACKS 0U /* CAN register callback disabled */
130 #define USE_HAL_CEC_REGISTER_CALLBACKS 0U /* CEC register callback disabled */
131 #define USE_HAL_CRYP_REGISTER_CALLBACKS 0U /* CRYP register callback disabled */
132 #define USE_HAL_DAC_REGISTER_CALLBACKS 0U /* DAC register callback disabled */
133 #define USE_HAL_DCMI_REGISTER_CALLBACKS 0U /* DCMI register callback disabled */
134 #define USE_HAL_DFSDM_REGISTER_CALLBACKS 0U /* DFSDM register callback disabled */
135 #define USE_HAL_DMA2D_REGISTER_CALLBACKS 0U /* DMA2D register callback disabled */
136 #define USE_HAL_DSI_REGISTER_CALLBACKS 0U /* DSI register callback disabled */
137 #define USE_HAL_ETH_REGISTER_CALLBACKS 0U /* ETH register callback disabled */
138 #define USE_HAL_HASH_REGISTER_CALLBACKS 0U /* HASH register callback disabled */
139 #define USE_HAL_HCD_REGISTER_CALLBACKS 0U /* HCD register callback disabled */
140 #define USE_HAL_I2C_REGISTER_CALLBACKS 0U /* I2C register callback disabled */
141 #define USE_HAL_FMPI2C_REGISTER_CALLBACKS 0U /* FMPI2C register callback disabled */
142 #define USE_HAL_I2S_REGISTER_CALLBACKS 0U /* I2S register callback disabled */
143 #define USE_HAL_IRDA_REGISTER_CALLBACKS 0U /* IRDA register callback disabled */
144 #define USE_HAL_LPTIM_REGISTER_CALLBACKS 0U /* LPTIM register callback disabled */
145 #define USE_HAL_LTDC_REGISTER_CALLBACKS 0U /* LTDC register callback disabled */
146 #define USE_HAL_MMC_REGISTER_CALLBACKS 0U /* MMC register callback disabled */
147 #define USE_HAL_NAND_REGISTER_CALLBACKS 0U /* NAND register callback disabled */
148 #define USE_HAL_NOR_REGISTER_CALLBACKS 0U /* NOR register callback disabled */
149 #define USE_HAL_PCCARD_REGISTER_CALLBACKS 0U /* PCCARD register callback disabled */
150 #define USE_HAL_PCD_REGISTER_CALLBACKS 0U /* PCD register callback disabled */
151 #define USE_HAL_QSPI_REGISTER_CALLBACKS 0U /* QSPI register callback disabled */
152 #define USE_HAL_RNG_REGISTER_CALLBACKS 0U /* RNG register callback disabled */
153 #define USE_HAL_RTC_REGISTER_CALLBACKS 0U /* RTC register callback disabled */
154 #define USE_HAL_SAI_REGISTER_CALLBACKS 0U /* SAI register callback disabled */
155 #define USE_HAL_SD_REGISTER_CALLBACKS 0U /* SD register callback disabled */
156 #define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U /* SMARTCARD register callback disabled */
157 #define USE_HAL_SDRAM_REGISTER_CALLBACKS 0U /* SDRAM register callback disabled */
158 #define USE_HAL_SRAM_REGISTER_CALLBACKS 0U /* SRAM register callback disabled */
159 #define USE_HAL_SPDIFRX_REGISTER_CALLBACKS 0U /* SPDIFRX register callback disabled */
160 #define USE_HAL_SMBUS_REGISTER_CALLBACKS 0U /* SMBUS register callback disabled */
161 #define USE_HAL_SPI_REGISTER_CALLBACKS 0U /* SPI register callback disabled */
162 #define USE_HAL_TIM_REGISTER_CALLBACKS 0U /* TIM register callback disabled */
163 #define USE_HAL_UART_REGISTER_CALLBACKS 0U /* UART register callback disabled */
164 #define USE_HAL_USART_REGISTER_CALLBACKS 0U /* USART register callback disabled */
165 #define USE_HAL_WWDG_REGISTER_CALLBACKS 0U /* WWDG register callback disabled */
166 
167 /* ########################## Assert Selection ############################## */
172 /* #define USE_FULL_ASSERT 1U */
173 
174 /* ################## SPI peripheral configuration ########################## */
175 
176 /* CRC FEATURE: Use to activate CRC feature inside HAL SPI Driver
177 * Activated: CRC code is present inside driver
178 * Deactivated: CRC code cleaned from driver
179 */
180 
181 #define USE_SPI_CRC 1U
182 
183 /* Includes ------------------------------------------------------------------*/
188 #ifdef HAL_RCC_MODULE_ENABLED
189  #include "stm32f4xx_hal_rcc.h"
190 #endif /* HAL_RCC_MODULE_ENABLED */
191 
192 #ifdef HAL_GPIO_MODULE_ENABLED
193  #include "stm32f4xx_hal_gpio.h"
194 #endif /* HAL_GPIO_MODULE_ENABLED */
195 
196 #ifdef HAL_DMA_MODULE_ENABLED
197  #include "stm32f4xx_hal_dma.h"
198 #endif /* HAL_DMA_MODULE_ENABLED */
199 
200 #ifdef HAL_CORTEX_MODULE_ENABLED
201  #include "stm32f4xx_hal_cortex.h"
202 #endif /* HAL_CORTEX_MODULE_ENABLED */
203 
204 #ifdef HAL_ADC_MODULE_ENABLED
205  #include "stm32f4xx_hal_adc.h"
206 #endif /* HAL_ADC_MODULE_ENABLED */
207 
208 #ifdef HAL_CAN_MODULE_ENABLED
209  #include "stm32f4xx_hal_can.h"
210 #endif /* HAL_CAN_MODULE_ENABLED */
211 
212 #ifdef HAL_CAN_LEGACY_MODULE_ENABLED
213  #include "stm32f4xx_hal_can_legacy.h"
214 #endif /* HAL_CAN_LEGACY_MODULE_ENABLED */
215 
216 #ifdef HAL_CRC_MODULE_ENABLED
217  #include "stm32f4xx_hal_crc.h"
218 #endif /* HAL_CRC_MODULE_ENABLED */
219 
220 #ifdef HAL_CRYP_MODULE_ENABLED
221  #include "stm32f4xx_hal_cryp.h"
222 #endif /* HAL_CRYP_MODULE_ENABLED */
223 
224 #ifdef HAL_DMA2D_MODULE_ENABLED
225  #include "stm32f4xx_hal_dma2d.h"
226 #endif /* HAL_DMA2D_MODULE_ENABLED */
227 
228 #ifdef HAL_DAC_MODULE_ENABLED
229  #include "stm32f4xx_hal_dac.h"
230 #endif /* HAL_DAC_MODULE_ENABLED */
231 
232 #ifdef HAL_DCMI_MODULE_ENABLED
233  #include "stm32f4xx_hal_dcmi.h"
234 #endif /* HAL_DCMI_MODULE_ENABLED */
235 
236 #ifdef HAL_ETH_MODULE_ENABLED
237  #include "stm32f4xx_hal_eth.h"
238 #endif /* HAL_ETH_MODULE_ENABLED */
239 
240 #ifdef HAL_FLASH_MODULE_ENABLED
241  #include "stm32f4xx_hal_flash.h"
242 #endif /* HAL_FLASH_MODULE_ENABLED */
243 
244 #ifdef HAL_SRAM_MODULE_ENABLED
245  #include "stm32f4xx_hal_sram.h"
246 #endif /* HAL_SRAM_MODULE_ENABLED */
247 
248 #ifdef HAL_NOR_MODULE_ENABLED
249  #include "stm32f4xx_hal_nor.h"
250 #endif /* HAL_NOR_MODULE_ENABLED */
251 
252 #ifdef HAL_NAND_MODULE_ENABLED
253  #include "stm32f4xx_hal_nand.h"
254 #endif /* HAL_NAND_MODULE_ENABLED */
255 
256 #ifdef HAL_PCCARD_MODULE_ENABLED
257  #include "stm32f4xx_hal_pccard.h"
258 #endif /* HAL_PCCARD_MODULE_ENABLED */
259 
260 #ifdef HAL_SDRAM_MODULE_ENABLED
261  #include "stm32f4xx_hal_sdram.h"
262 #endif /* HAL_SDRAM_MODULE_ENABLED */
263 
264 #ifdef HAL_HASH_MODULE_ENABLED
265  #include "stm32f4xx_hal_hash.h"
266 #endif /* HAL_HASH_MODULE_ENABLED */
267 
268 #ifdef HAL_I2C_MODULE_ENABLED
269  #include "stm32f4xx_hal_i2c.h"
270 #endif /* HAL_I2C_MODULE_ENABLED */
271 
272 #ifdef HAL_I2S_MODULE_ENABLED
273  #include "stm32f4xx_hal_i2s.h"
274 #endif /* HAL_I2S_MODULE_ENABLED */
275 
276 #ifdef HAL_IWDG_MODULE_ENABLED
277  #include "stm32f4xx_hal_iwdg.h"
278 #endif /* HAL_IWDG_MODULE_ENABLED */
279 
280 #ifdef HAL_LTDC_MODULE_ENABLED
281  #include "stm32f4xx_hal_ltdc.h"
282 #endif /* HAL_LTDC_MODULE_ENABLED */
283 
284 #ifdef HAL_PWR_MODULE_ENABLED
285  #include "stm32f4xx_hal_pwr.h"
286 #endif /* HAL_PWR_MODULE_ENABLED */
287 
288 #ifdef HAL_RNG_MODULE_ENABLED
289  #include "stm32f4xx_hal_rng.h"
290 #endif /* HAL_RNG_MODULE_ENABLED */
291 
292 #ifdef HAL_RTC_MODULE_ENABLED
293  #include "stm32f4xx_hal_rtc.h"
294 #endif /* HAL_RTC_MODULE_ENABLED */
295 
296 #ifdef HAL_SAI_MODULE_ENABLED
297  #include "stm32f4xx_hal_sai.h"
298 #endif /* HAL_SAI_MODULE_ENABLED */
299 
300 #ifdef HAL_SD_MODULE_ENABLED
301  #include "stm32f4xx_hal_sd.h"
302 #endif /* HAL_SD_MODULE_ENABLED */
303 
304 #ifdef HAL_SPI_MODULE_ENABLED
305  #include "stm32f4xx_hal_spi.h"
306 #endif /* HAL_SPI_MODULE_ENABLED */
307 
308 #ifdef HAL_TIM_MODULE_ENABLED
309  #include "stm32f4xx_hal_tim.h"
310 #endif /* HAL_TIM_MODULE_ENABLED */
311 
312 #ifdef HAL_UART_MODULE_ENABLED
313  #include "stm32f4xx_hal_uart.h"
314 #endif /* HAL_UART_MODULE_ENABLED */
315 
316 #ifdef HAL_USART_MODULE_ENABLED
317  #include "stm32f4xx_hal_usart.h"
318 #endif /* HAL_USART_MODULE_ENABLED */
319 
320 #ifdef HAL_IRDA_MODULE_ENABLED
321  #include "stm32f4xx_hal_irda.h"
322 #endif /* HAL_IRDA_MODULE_ENABLED */
323 
324 #ifdef HAL_SMARTCARD_MODULE_ENABLED
325  #include "stm32f4xx_hal_smartcard.h"
326 #endif /* HAL_SMARTCARD_MODULE_ENABLED */
327 
328 #ifdef HAL_WWDG_MODULE_ENABLED
329  #include "stm32f4xx_hal_wwdg.h"
330 #endif /* HAL_WWDG_MODULE_ENABLED */
331 
332 #ifdef HAL_PCD_MODULE_ENABLED
333  #include "stm32f4xx_hal_pcd.h"
334 #endif /* HAL_PCD_MODULE_ENABLED */
335 
336 #ifdef HAL_HCD_MODULE_ENABLED
337  #include "stm32f4xx_hal_hcd.h"
338 #endif /* HAL_HCD_MODULE_ENABLED */
339 
340 /* Exported macro ------------------------------------------------------------*/
341 #ifdef USE_FULL_ASSERT
342 
350  #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
351 /* Exported functions ------------------------------------------------------- */
352  void assert_failed(uint8_t* file, uint32_t line);
353 #else
354  #define assert_param(expr) ((void)0U)
355 #endif /* USE_FULL_ASSERT */
356 
357 
358 #ifdef __cplusplus
359 }
360 #endif
361 
362 #endif /* __STM32F4xx_HAL_CONF_H */
363 
364 
365 /************************ (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