Go to the documentation of this file.
21 #ifndef __STM32F7xx_HAL_CONF_H
22 #define __STM32F7xx_HAL_CONF_H
35 #define HAL_MODULE_ENABLED
43 #define HAL_DCMI_MODULE_ENABLED
44 #define HAL_DMA_MODULE_ENABLED
45 #define HAL_DMA2D_MODULE_ENABLED
47 #define HAL_FLASH_MODULE_ENABLED
49 #define HAL_NOR_MODULE_ENABLED
50 #define HAL_SRAM_MODULE_ENABLED
51 #define HAL_SDRAM_MODULE_ENABLED
53 #define HAL_GPIO_MODULE_ENABLED
54 #define HAL_I2C_MODULE_ENABLED
55 #define HAL_I2S_MODULE_ENABLED
60 #define HAL_PWR_MODULE_ENABLED
62 #define HAL_RCC_MODULE_ENABLED
65 #define HAL_SAI_MODULE_ENABLED
66 #define HAL_SD_MODULE_ENABLED
69 #define HAL_TIM_MODULE_ENABLED
70 #define HAL_UART_MODULE_ENABLED
75 #define HAL_CORTEX_MODULE_ENABLED
78 #define HAL_DFSDM_MODULE_ENABLED
86 #if !defined (HSE_VALUE)
87 #define HSE_VALUE ((uint32_t)25000000)
90 #if !defined (HSE_STARTUP_TIMEOUT)
91 #define HSE_STARTUP_TIMEOUT ((uint32_t)100)
94 #if !defined (LSE_STARTUP_TIMEOUT)
95 #define LSE_STARTUP_TIMEOUT ((uint32_t)5000)
103 #if !defined (HSI_VALUE)
104 #define HSI_VALUE ((uint32_t)16000000)
110 #if !defined (LSI_VALUE)
111 #define LSI_VALUE ((uint32_t)40000)
118 #if !defined (LSE_VALUE)
119 #define LSE_VALUE ((uint32_t)32768)
127 #if !defined (EXTERNAL_CLOCK_VALUE)
128 #define EXTERNAL_CLOCK_VALUE ((uint32_t)12288000)
138 #define VDD_VALUE ((uint32_t)3300)
139 #define TICK_INT_PRIORITY ((uint32_t)0x0F)
141 #define ART_ACCLERATOR_ENABLE 1
143 #define USE_HAL_ADC_REGISTER_CALLBACKS 0U
144 #define USE_HAL_CAN_REGISTER_CALLBACKS 0U
145 #define USE_HAL_CEC_REGISTER_CALLBACKS 0U
146 #define USE_HAL_CRYP_REGISTER_CALLBACKS 0U
147 #define USE_HAL_DAC_REGISTER_CALLBACKS 0U
148 #define USE_HAL_DCMI_REGISTER_CALLBACKS 0U
149 #define USE_HAL_DFSDM_REGISTER_CALLBACKS 0U
150 #define USE_HAL_DMA2D_REGISTER_CALLBACKS 0U
151 #define USE_HAL_DSI_REGISTER_CALLBACKS 0U
152 #define USE_HAL_ETH_REGISTER_CALLBACKS 0U
153 #define USE_HAL_HASH_REGISTER_CALLBACKS 0U
154 #define USE_HAL_HCD_REGISTER_CALLBACKS 0U
155 #define USE_HAL_I2C_REGISTER_CALLBACKS 0U
156 #define USE_HAL_I2S_REGISTER_CALLBACKS 0U
157 #define USE_HAL_IRDA_REGISTER_CALLBACKS 0U
158 #define USE_HAL_JPEG_REGISTER_CALLBACKS 0U
159 #define USE_HAL_LPTIM_REGISTER_CALLBACKS 0U
160 #define USE_HAL_LTDC_REGISTER_CALLBACKS 0U
161 #define USE_HAL_MDIOS_REGISTER_CALLBACKS 0U
162 #define USE_HAL_MMC_REGISTER_CALLBACKS 0U
163 #define USE_HAL_NAND_REGISTER_CALLBACKS 0U
164 #define USE_HAL_NOR_REGISTER_CALLBACKS 0U
165 #define USE_HAL_PCD_REGISTER_CALLBACKS 0U
166 #define USE_HAL_QSPI_REGISTER_CALLBACKS 0U
167 #define USE_HAL_RNG_REGISTER_CALLBACKS 0U
168 #define USE_HAL_RTC_REGISTER_CALLBACKS 0U
169 #define USE_HAL_SAI_REGISTER_CALLBACKS 0U
170 #define USE_HAL_SD_REGISTER_CALLBACKS 0U
171 #define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U
172 #define USE_HAL_SDRAM_REGISTER_CALLBACKS 0U
173 #define USE_HAL_SRAM_REGISTER_CALLBACKS 0U
174 #define USE_HAL_SPDIFRX_REGISTER_CALLBACKS 0U
175 #define USE_HAL_SMBUS_REGISTER_CALLBACKS 0U
176 #define USE_HAL_SPI_REGISTER_CALLBACKS 0U
177 #define USE_HAL_TIM_REGISTER_CALLBACKS 0U
178 #define USE_HAL_UART_REGISTER_CALLBACKS 0U
179 #define USE_HAL_USART_REGISTER_CALLBACKS 0U
180 #define USE_HAL_WWDG_REGISTER_CALLBACKS 0U
202 #define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE
203 #define ETH_TX_BUF_SIZE ETH_MAX_PACKET_SIZE
204 #define ETH_RXBUFNB ((uint32_t)4)
205 #define ETH_TXBUFNB ((uint32_t)4)
210 #define DP83848_PHY_ADDRESS 0x01
212 #define PHY_RESET_DELAY ((uint32_t)0x000000FF)
214 #define PHY_CONFIG_DELAY ((uint32_t)0x00000FFF)
216 #define PHY_READ_TO ((uint32_t)0x0000FFFF)
217 #define PHY_WRITE_TO ((uint32_t)0x0000FFFF)
221 #define PHY_BCR ((uint16_t)0x00)
222 #define PHY_BSR ((uint16_t)0x01)
224 #define PHY_RESET ((uint16_t)0x8000)
225 #define PHY_LOOPBACK ((uint16_t)0x4000)
226 #define PHY_FULLDUPLEX_100M ((uint16_t)0x2100)
227 #define PHY_HALFDUPLEX_100M ((uint16_t)0x2000)
228 #define PHY_FULLDUPLEX_10M ((uint16_t)0x0100)
229 #define PHY_HALFDUPLEX_10M ((uint16_t)0x0000)
230 #define PHY_AUTONEGOTIATION ((uint16_t)0x1000)
231 #define PHY_RESTART_AUTONEGOTIATION ((uint16_t)0x0200)
232 #define PHY_POWERDOWN ((uint16_t)0x0800)
233 #define PHY_ISOLATE ((uint16_t)0x0400)
235 #define PHY_AUTONEGO_COMPLETE ((uint16_t)0x0020)
236 #define PHY_LINKED_STATUS ((uint16_t)0x0004)
237 #define PHY_JABBER_DETECTION ((uint16_t)0x0002)
241 #define PHY_SR ((uint16_t)0x10)
242 #define PHY_MICR ((uint16_t)0x11)
243 #define PHY_MISR ((uint16_t)0x12)
245 #define PHY_LINK_STATUS ((uint16_t)0x0001)
246 #define PHY_SPEED_STATUS ((uint16_t)0x0002)
247 #define PHY_DUPLEX_STATUS ((uint16_t)0x0004)
249 #define PHY_MICR_INT_EN ((uint16_t)0x0002)
250 #define PHY_MICR_INT_OE ((uint16_t)0x0001)
252 #define PHY_MISR_LINK_INT_EN ((uint16_t)0x0020)
253 #define PHY_LINK_INTERRUPT ((uint16_t)0x2000)
262 #define USE_SPI_CRC 1U
269 #ifdef HAL_RCC_MODULE_ENABLED
273 #ifdef HAL_GPIO_MODULE_ENABLED
277 #ifdef HAL_DMA_MODULE_ENABLED
281 #ifdef HAL_CORTEX_MODULE_ENABLED
285 #ifdef HAL_ADC_MODULE_ENABLED
286 #include "stm32f7xx_hal_adc.h"
289 #ifdef HAL_CAN_MODULE_ENABLED
290 #include "stm32f7xx_hal_can.h"
293 #ifdef HAL_CAN_LEGACY_MODULE_ENABLED
297 #ifdef HAL_CEC_MODULE_ENABLED
298 #include "stm32f7xx_hal_cec.h"
301 #ifdef HAL_CRC_MODULE_ENABLED
302 #include "stm32f7xx_hal_crc.h"
305 #ifdef HAL_CRYP_MODULE_ENABLED
306 #include "stm32f7xx_hal_cryp.h"
309 #ifdef HAL_DMA2D_MODULE_ENABLED
313 #ifdef HAL_DAC_MODULE_ENABLED
314 #include "stm32f7xx_hal_dac.h"
317 #ifdef HAL_DCMI_MODULE_ENABLED
321 #ifdef HAL_ETH_MODULE_ENABLED
322 #include "stm32f7xx_hal_eth.h"
325 #ifdef HAL_FLASH_MODULE_ENABLED
329 #ifdef HAL_SRAM_MODULE_ENABLED
333 #ifdef HAL_NOR_MODULE_ENABLED
337 #ifdef HAL_NAND_MODULE_ENABLED
341 #ifdef HAL_SDRAM_MODULE_ENABLED
345 #ifdef HAL_HASH_MODULE_ENABLED
346 #include "stm32f7xx_hal_hash.h"
349 #ifdef HAL_I2C_MODULE_ENABLED
353 #ifdef HAL_I2S_MODULE_ENABLED
357 #ifdef HAL_IWDG_MODULE_ENABLED
358 #include "stm32f7xx_hal_iwdg.h"
361 #ifdef HAL_LPTIM_MODULE_ENABLED
362 #include "stm32f7xx_hal_lptim.h"
365 #ifdef HAL_LTDC_MODULE_ENABLED
366 #include "stm32f7xx_hal_ltdc.h"
369 #ifdef HAL_PWR_MODULE_ENABLED
373 #ifdef HAL_QSPI_MODULE_ENABLED
377 #ifdef HAL_RNG_MODULE_ENABLED
378 #include "stm32f7xx_hal_rng.h"
381 #ifdef HAL_RTC_MODULE_ENABLED
385 #ifdef HAL_SAI_MODULE_ENABLED
389 #ifdef HAL_SD_MODULE_ENABLED
393 #ifdef HAL_SPDIFRX_MODULE_ENABLED
397 #ifdef HAL_SPI_MODULE_ENABLED
401 #ifdef HAL_TIM_MODULE_ENABLED
405 #ifdef HAL_UART_MODULE_ENABLED
409 #ifdef HAL_USART_MODULE_ENABLED
413 #ifdef HAL_IRDA_MODULE_ENABLED
417 #ifdef HAL_SMARTCARD_MODULE_ENABLED
421 #ifdef HAL_WWDG_MODULE_ENABLED
425 #ifdef HAL_PCD_MODULE_ENABLED
429 #ifdef HAL_HCD_MODULE_ENABLED
433 #ifdef HAL_DSI_MODULE_ENABLED
437 #ifdef HAL_DFSDM_MODULE_ENABLED
442 #ifdef USE_FULL_ASSERT
451 #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
455 #define assert_param(expr) ((void)0U)
Header file of PCD HAL module.
Header file of SPDIFRX HAL module.
Header file of CORTEX HAL module.
Header file of NOR HAL module.
Header file of DCMI HAL module.
Header file of TIM HAL module.
Header file of I2S HAL module.
Header file of QSPI HAL module.
Header file of DFSDM HAL module.
Header file of SRAM HAL module.
Header file of IRDA HAL module.
Header file of SMARTCARD HAL module.
Header file of FLASH HAL module.
void assert_failed(uint8_t *file, uint32_t line)
Header file of WWDG HAL module.
Header file of DMA HAL module.
Header file of SPI HAL module.
Header file of GPIO HAL module.
Header file of USART HAL module.
Header file of SD HAL module.
Header file of DMA2D HAL module.
Header file of SAI HAL module.
Header file of DSI HAL module.
Header file of SDRAM HAL module.
Header file of I2C HAL module.
Header file of UART HAL module.
Header file of CAN HAL module.
Header file of PWR HAL module.
Header file of NAND HAL module.
Header file of RTC HAL module.
Header file of HCD HAL module.
Header file of RCC HAL module.