Go to the documentation of this file.
21 #ifndef STM32H7xx_HAL_CONF_H
22 #define STM32H7xx_HAL_CONF_H
35 #define HAL_MODULE_ENABLED
43 #define HAL_CRC_MODULE_ENABLED
47 #define HAL_DMA2D_MODULE_ENABLED
60 #define HAL_OSPI_MODULE_ENABLED
66 #define HAL_LTDC_MODULE_ENABLED
70 #define HAL_SAI_MODULE_ENABLED
77 #define HAL_UART_MODULE_ENABLED
84 #define HAL_DFSDM_MODULE_ENABLED
90 #define HAL_GPIO_MODULE_ENABLED
91 #define HAL_DMA_MODULE_ENABLED
92 #define HAL_MDMA_MODULE_ENABLED
93 #define HAL_RCC_MODULE_ENABLED
94 #define HAL_FLASH_MODULE_ENABLED
95 #define HAL_EXTI_MODULE_ENABLED
96 #define HAL_PWR_MODULE_ENABLED
97 #define HAL_I2C_MODULE_ENABLED
98 #define HAL_CORTEX_MODULE_ENABLED
99 #define HAL_HSEM_MODULE_ENABLED
107 #if !defined (HSE_VALUE)
108 #define HSE_VALUE (25000000UL)
111 #if !defined (HSE_STARTUP_TIMEOUT)
112 #define HSE_STARTUP_TIMEOUT (100UL)
119 #if !defined (CSI_VALUE)
120 #define CSI_VALUE (4000000UL)
128 #if !defined (HSI_VALUE)
129 #define HSI_VALUE (64000000UL)
136 #if !defined (LSE_VALUE)
137 #define LSE_VALUE (32768UL)
140 #if !defined (LSE_STARTUP_TIMEOUT)
141 #define LSE_STARTUP_TIMEOUT (5000UL)
144 #if !defined (LSI_VALUE)
145 #define LSI_VALUE (32000UL)
155 #if !defined (EXTERNAL_CLOCK_VALUE)
156 #define EXTERNAL_CLOCK_VALUE 12288000UL
166 #define VDD_VALUE (3300UL)
167 #define TICK_INT_PRIORITY (0UL)
169 #define USE_SD_TRANSCEIVER 0U
170 #define USE_SPI_CRC 0U
172 #define USE_HAL_ADC_REGISTER_CALLBACKS 0U
173 #define USE_HAL_CEC_REGISTER_CALLBACKS 0U
174 #define USE_HAL_COMP_REGISTER_CALLBACKS 0U
175 #define USE_HAL_CORDIC_REGISTER_CALLBACKS 0U
176 #define USE_HAL_CRYP_REGISTER_CALLBACKS 0U
177 #define USE_HAL_DAC_REGISTER_CALLBACKS 0U
178 #define USE_HAL_DCMI_REGISTER_CALLBACKS 0U
179 #define USE_HAL_DFSDM_REGISTER_CALLBACKS 0U
180 #define USE_HAL_DMA2D_REGISTER_CALLBACKS 0U
181 #define USE_HAL_DSI_REGISTER_CALLBACKS 0U
182 #define USE_HAL_DTS_REGISTER_CALLBACKS 0U
183 #define USE_HAL_ETH_REGISTER_CALLBACKS 0U
184 #define USE_HAL_FDCAN_REGISTER_CALLBACKS 0U
185 #define USE_HAL_FMAC_REGISTER_CALLBACKS 0U
186 #define USE_HAL_NAND_REGISTER_CALLBACKS 0U
187 #define USE_HAL_NOR_REGISTER_CALLBACKS 0U
188 #define USE_HAL_SDRAM_REGISTER_CALLBACKS 0U
189 #define USE_HAL_SRAM_REGISTER_CALLBACKS 0U
190 #define USE_HAL_HASH_REGISTER_CALLBACKS 0U
191 #define USE_HAL_HCD_REGISTER_CALLBACKS 0U
192 #define USE_HAL_GFXMMU_REGISTER_CALLBACKS 0U
193 #define USE_HAL_HRTIM_REGISTER_CALLBACKS 0U
194 #define USE_HAL_I2C_REGISTER_CALLBACKS 0U
195 #define USE_HAL_I2S_REGISTER_CALLBACKS 0U
196 #define USE_HAL_IRDA_REGISTER_CALLBACKS 0U
197 #define USE_HAL_JPEG_REGISTER_CALLBACKS 0U
198 #define USE_HAL_LPTIM_REGISTER_CALLBACKS 0U
199 #define USE_HAL_LTDC_REGISTER_CALLBACKS 0U
200 #define USE_HAL_MDIOS_REGISTER_CALLBACKS 0U
201 #define USE_HAL_MMC_REGISTER_CALLBACKS 0U
202 #define USE_HAL_OPAMP_REGISTER_CALLBACKS 0U
203 #define USE_HAL_OSPI_REGISTER_CALLBACKS 0U
204 #define USE_HAL_OTFDEC_REGISTER_CALLBACKS 0U
205 #define USE_HAL_PCD_REGISTER_CALLBACKS 0U
206 #define USE_HAL_QSPI_REGISTER_CALLBACKS 0U
207 #define USE_HAL_RNG_REGISTER_CALLBACKS 0U
208 #define USE_HAL_RTC_REGISTER_CALLBACKS 0U
209 #define USE_HAL_SAI_REGISTER_CALLBACKS 0U
210 #define USE_HAL_SD_REGISTER_CALLBACKS 0U
211 #define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U
212 #define USE_HAL_SPDIFRX_REGISTER_CALLBACKS 0U
213 #define USE_HAL_SMBUS_REGISTER_CALLBACKS 0U
214 #define USE_HAL_SPI_REGISTER_CALLBACKS 0U
215 #define USE_HAL_SWPMI_REGISTER_CALLBACKS 0U
216 #define USE_HAL_TIM_REGISTER_CALLBACKS 0U
217 #define USE_HAL_UART_REGISTER_CALLBACKS 0U
218 #define USE_HAL_USART_REGISTER_CALLBACKS 0U
219 #define USE_HAL_WWDG_REGISTER_CALLBACKS 0U
222 #define ETH_TX_DESC_CNT 4
223 #define ETH_RX_DESC_CNT 4
225 #define ETH_MAC_ADDR0 (0x02UL)
226 #define ETH_MAC_ADDR1 (0x00UL)
227 #define ETH_MAC_ADDR2 (0x00UL)
228 #define ETH_MAC_ADDR3 (0x00UL)
229 #define ETH_MAC_ADDR4 (0x00UL)
230 #define ETH_MAC_ADDR5 (0x00UL)
244 #ifdef HAL_RCC_MODULE_ENABLED
245 #include "stm32h7xx_hal_rcc.h"
248 #ifdef HAL_GPIO_MODULE_ENABLED
249 #include "stm32h7xx_hal_gpio.h"
252 #ifdef HAL_DMA_MODULE_ENABLED
253 #include "stm32h7xx_hal_dma.h"
256 #ifdef HAL_MDMA_MODULE_ENABLED
257 #include "stm32h7xx_hal_mdma.h"
260 #ifdef HAL_HASH_MODULE_ENABLED
261 #include "stm32h7xx_hal_hash.h"
264 #ifdef HAL_DCMI_MODULE_ENABLED
268 #ifdef HAL_DMA2D_MODULE_ENABLED
269 #include "stm32h7xx_hal_dma2d.h"
272 #ifdef HAL_DSI_MODULE_ENABLED
276 #ifdef HAL_DFSDM_MODULE_ENABLED
280 #ifdef HAL_DTS_MODULE_ENABLED
281 #include "stm32h7xx_hal_dts.h"
284 #ifdef HAL_ETH_MODULE_ENABLED
285 #include "stm32h7xx_hal_eth.h"
288 #ifdef HAL_EXTI_MODULE_ENABLED
289 #include "stm32h7xx_hal_exti.h"
292 #ifdef HAL_CORTEX_MODULE_ENABLED
293 #include "stm32h7xx_hal_cortex.h"
296 #ifdef HAL_ADC_MODULE_ENABLED
297 #include "stm32h7xx_hal_adc.h"
300 #ifdef HAL_FDCAN_MODULE_ENABLED
301 #include "stm32h7xx_hal_fdcan.h"
304 #ifdef HAL_CEC_MODULE_ENABLED
305 #include "stm32h7xx_hal_cec.h"
308 #ifdef HAL_COMP_MODULE_ENABLED
309 #include "stm32h7xx_hal_comp.h"
312 #ifdef HAL_CORDIC_MODULE_ENABLED
313 #include "stm32h7xx_hal_cordic.h"
316 #ifdef HAL_CRC_MODULE_ENABLED
320 #ifdef HAL_CRYP_MODULE_ENABLED
321 #include "stm32h7xx_hal_cryp.h"
324 #ifdef HAL_DAC_MODULE_ENABLED
325 #include "stm32h7xx_hal_dac.h"
328 #ifdef HAL_FLASH_MODULE_ENABLED
329 #include "stm32h7xx_hal_flash.h"
332 #ifdef HAL_GFXMMU_MODULE_ENABLED
333 #include "stm32h7xx_hal_gfxmmu.h"
336 #ifdef HAL_FMAC_MODULE_ENABLED
337 #include "stm32h7xx_hal_fmac.h"
340 #ifdef HAL_HRTIM_MODULE_ENABLED
341 #include "stm32h7xx_hal_hrtim.h"
344 #ifdef HAL_HSEM_MODULE_ENABLED
345 #include "stm32h7xx_hal_hsem.h"
348 #ifdef HAL_SRAM_MODULE_ENABLED
349 #include "stm32h7xx_hal_sram.h"
352 #ifdef HAL_NOR_MODULE_ENABLED
353 #include "stm32h7xx_hal_nor.h"
356 #ifdef HAL_NAND_MODULE_ENABLED
357 #include "stm32h7xx_hal_nand.h"
360 #ifdef HAL_I2C_MODULE_ENABLED
361 #include "stm32h7xx_hal_i2c.h"
364 #ifdef HAL_I2S_MODULE_ENABLED
368 #ifdef HAL_IWDG_MODULE_ENABLED
369 #include "stm32h7xx_hal_iwdg.h"
372 #ifdef HAL_JPEG_MODULE_ENABLED
373 #include "stm32h7xx_hal_jpeg.h"
376 #ifdef HAL_MDIOS_MODULE_ENABLED
377 #include "stm32h7xx_hal_mdios.h"
380 #ifdef HAL_MMC_MODULE_ENABLED
384 #ifdef HAL_LPTIM_MODULE_ENABLED
385 #include "stm32h7xx_hal_lptim.h"
388 #ifdef HAL_LTDC_MODULE_ENABLED
392 #ifdef HAL_OPAMP_MODULE_ENABLED
393 #include "stm32h7xx_hal_opamp.h"
396 #ifdef HAL_OSPI_MODULE_ENABLED
400 #ifdef HAL_OTFDEC_MODULE_ENABLED
401 #include "stm32h7xx_hal_otfdec.h"
404 #ifdef HAL_PSSI_MODULE_ENABLED
405 #include "stm32h7xx_hal_pssi.h"
408 #ifdef HAL_PWR_MODULE_ENABLED
409 #include "stm32h7xx_hal_pwr.h"
412 #ifdef HAL_QSPI_MODULE_ENABLED
413 #include "stm32h7xx_hal_qspi.h"
416 #ifdef HAL_RAMECC_MODULE_ENABLED
420 #ifdef HAL_RNG_MODULE_ENABLED
421 #include "stm32h7xx_hal_rng.h"
424 #ifdef HAL_RTC_MODULE_ENABLED
425 #include "stm32h7xx_hal_rtc.h"
428 #ifdef HAL_SAI_MODULE_ENABLED
429 #include "stm32h7xx_hal_sai.h"
432 #ifdef HAL_SD_MODULE_ENABLED
433 #include "stm32h7xx_hal_sd.h"
436 #ifdef HAL_SDRAM_MODULE_ENABLED
437 #include "stm32h7xx_hal_sdram.h"
440 #ifdef HAL_SPI_MODULE_ENABLED
444 #ifdef HAL_SPDIFRX_MODULE_ENABLED
445 #include "stm32h7xx_hal_spdifrx.h"
448 #ifdef HAL_SWPMI_MODULE_ENABLED
449 #include "stm32h7xx_hal_swpmi.h"
452 #ifdef HAL_TIM_MODULE_ENABLED
453 #include "stm32h7xx_hal_tim.h"
456 #ifdef HAL_UART_MODULE_ENABLED
457 #include "stm32h7xx_hal_uart.h"
460 #ifdef HAL_USART_MODULE_ENABLED
461 #include "stm32h7xx_hal_usart.h"
464 #ifdef HAL_IRDA_MODULE_ENABLED
465 #include "stm32h7xx_hal_irda.h"
468 #ifdef HAL_SMARTCARD_MODULE_ENABLED
469 #include "stm32h7xx_hal_smartcard.h"
472 #ifdef HAL_SMBUS_MODULE_ENABLED
473 #include "stm32h7xx_hal_smbus.h"
476 #ifdef HAL_WWDG_MODULE_ENABLED
477 #include "stm32h7xx_hal_wwdg.h"
480 #ifdef HAL_PCD_MODULE_ENABLED
481 #include "stm32h7xx_hal_pcd.h"
484 #ifdef HAL_HCD_MODULE_ENABLED
485 #include "stm32h7xx_hal_hcd.h"
489 #ifdef USE_FULL_ASSERT
498 #define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
502 #define assert_param(expr) ((void)0U)
Header file of RAMECC HAL module.
Header file of OSPI HAL module.
Header file of LTDC HAL module.
void assert_failed(uint8_t *file, uint32_t line)
Header file of DFSDM HAL module.
Header file of DSI HAL module.
Header file of MMC HAL module.
Header file of CRC HAL module.
Header file of SPI HAL module.
Header file of I2S HAL module.
Header file of DCMI HAL module.