|
25 | 25 | #define __STM32F4xx_HAL_CONF_H |
26 | 26 |
|
27 | 27 | #ifdef __cplusplus |
28 | | - extern "C" { |
| 28 | +extern "C" { |
29 | 29 | #endif |
30 | 30 |
|
31 | 31 | /* Exported types ------------------------------------------------------------*/ |
|
37 | 37 | */ |
38 | 38 | #define HAL_MODULE_ENABLED |
39 | 39 |
|
40 | | - /* #define HAL_CRYP_MODULE_ENABLED */ |
| 40 | +/* #define HAL_CRYP_MODULE_ENABLED */ |
41 | 41 | /* #define HAL_ADC_MODULE_ENABLED */ |
42 | 42 | /* #define HAL_CAN_MODULE_ENABLED */ |
43 | 43 | /* #define HAL_CRC_MODULE_ENABLED */ |
|
96 | 96 | * (when HSE is used as system clock source, directly or through the PLL). |
97 | 97 | */ |
98 | 98 | #if !defined (HSE_VALUE) |
99 | | - #define HSE_VALUE 8000000U /*!< Value of the External oscillator in Hz */ |
| 99 | +#define HSE_VALUE 8000000U /*!< Value of the External oscillator in Hz */ |
100 | 100 | #endif /* HSE_VALUE */ |
101 | 101 |
|
102 | 102 | #if !defined (HSE_STARTUP_TIMEOUT) |
103 | | - #define HSE_STARTUP_TIMEOUT 100U /*!< Time out for HSE start up, in ms */ |
| 103 | +#define HSE_STARTUP_TIMEOUT 100U /*!< Time out for HSE start up, in ms */ |
104 | 104 | #endif /* HSE_STARTUP_TIMEOUT */ |
105 | 105 |
|
106 | 106 | /** |
|
109 | 109 | * (when HSI is used as system clock source, directly or through the PLL). |
110 | 110 | */ |
111 | 111 | #if !defined (HSI_VALUE) |
112 | | - #define HSI_VALUE ((uint32_t)16000000U) /*!< Value of the Internal oscillator in Hz*/ |
| 112 | +#define HSI_VALUE ((uint32_t)16000000U) /*!< Value of the Internal oscillator in Hz*/ |
113 | 113 | #endif /* HSI_VALUE */ |
114 | 114 |
|
115 | 115 | /** |
116 | 116 | * @brief Internal Low Speed oscillator (LSI) value. |
117 | 117 | */ |
118 | 118 | #if !defined (LSI_VALUE) |
119 | | - #define LSI_VALUE 32000U /*!< LSI Typical Value in Hz*/ |
| 119 | +#define LSI_VALUE 32000U /*!< LSI Typical Value in Hz*/ |
120 | 120 | #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz |
121 | | - The real value may vary depending on the variations |
122 | | - in voltage and temperature.*/ |
| 121 | +The real value may vary depending on the variations |
| 122 | +in voltage and temperature.*/ |
123 | 123 | /** |
124 | 124 | * @brief External Low Speed oscillator (LSE) value. |
125 | 125 | */ |
126 | 126 | #if !defined (LSE_VALUE) |
127 | | - #define LSE_VALUE 32768U /*!< Value of the External Low Speed oscillator in Hz */ |
| 127 | +#define LSE_VALUE 32768U /*!< Value of the External Low Speed oscillator in Hz */ |
128 | 128 | #endif /* LSE_VALUE */ |
129 | 129 |
|
130 | 130 | #if !defined (LSE_STARTUP_TIMEOUT) |
131 | | - #define LSE_STARTUP_TIMEOUT 5000U /*!< Time out for LSE start up, in ms */ |
| 131 | +#define LSE_STARTUP_TIMEOUT 5000U /*!< Time out for LSE start up, in ms */ |
132 | 132 | #endif /* LSE_STARTUP_TIMEOUT */ |
133 | 133 |
|
134 | 134 | /** |
|
137 | 137 | * frequency, this source is inserted directly through I2S_CKIN pad. |
138 | 138 | */ |
139 | 139 | #if !defined (EXTERNAL_CLOCK_VALUE) |
140 | | - #define EXTERNAL_CLOCK_VALUE 12288000U /*!< Value of the External audio frequency in Hz*/ |
| 140 | +#define EXTERNAL_CLOCK_VALUE 12288000U /*!< Value of the External audio frequency in Hz*/ |
141 | 141 | #endif /* EXTERNAL_CLOCK_VALUE */ |
142 | 142 |
|
143 | 143 | /* Tip: To avoid modifying this file each time you need to use different HSE, |
|
147 | 147 | /** |
148 | 148 | * @brief This is the HAL system configuration section |
149 | 149 | */ |
150 | | -#define VDD_VALUE 3300U /*!< Value of VDD in mv */ |
| 150 | +#define VDD_VALUE 3300U /*!< Value of VDD in mv */ |
151 | 151 | #define TICK_INT_PRIORITY 15U /*!< tick interrupt priority */ |
152 | 152 | #define USE_RTOS 0U |
153 | 153 | #define PREFETCH_ENABLE 1U |
|
272 | 272 | */ |
273 | 273 |
|
274 | 274 | #ifdef HAL_RCC_MODULE_ENABLED |
275 | | - #include "stm32f4xx_hal_rcc.h" |
| 275 | +#include "stm32f4xx_hal_rcc.h" |
276 | 276 | #endif /* HAL_RCC_MODULE_ENABLED */ |
277 | 277 |
|
278 | 278 | #ifdef HAL_GPIO_MODULE_ENABLED |
279 | | - #include "stm32f4xx_hal_gpio.h" |
| 279 | +#include "stm32f4xx_hal_gpio.h" |
280 | 280 | #endif /* HAL_GPIO_MODULE_ENABLED */ |
281 | 281 |
|
282 | 282 | #ifdef HAL_EXTI_MODULE_ENABLED |
283 | | - #include "stm32f4xx_hal_exti.h" |
| 283 | +#include "stm32f4xx_hal_exti.h" |
284 | 284 | #endif /* HAL_EXTI_MODULE_ENABLED */ |
285 | 285 |
|
286 | 286 | #ifdef HAL_DMA_MODULE_ENABLED |
287 | | - #include "stm32f4xx_hal_dma.h" |
| 287 | +#include "stm32f4xx_hal_dma.h" |
288 | 288 | #endif /* HAL_DMA_MODULE_ENABLED */ |
289 | 289 |
|
290 | 290 | #ifdef HAL_CORTEX_MODULE_ENABLED |
291 | | - #include "stm32f4xx_hal_cortex.h" |
| 291 | +#include "stm32f4xx_hal_cortex.h" |
292 | 292 | #endif /* HAL_CORTEX_MODULE_ENABLED */ |
293 | 293 |
|
294 | 294 | #ifdef HAL_ADC_MODULE_ENABLED |
295 | | - #include "stm32f4xx_hal_adc.h" |
| 295 | +#include "stm32f4xx_hal_adc.h" |
296 | 296 | #endif /* HAL_ADC_MODULE_ENABLED */ |
297 | 297 |
|
298 | 298 | #ifdef HAL_CAN_MODULE_ENABLED |
299 | | - #include "stm32f4xx_hal_can.h" |
| 299 | +#include "stm32f4xx_hal_can.h" |
300 | 300 | #endif /* HAL_CAN_MODULE_ENABLED */ |
301 | 301 |
|
302 | 302 | #ifdef HAL_CAN_LEGACY_MODULE_ENABLED |
303 | | - #include "stm32f4xx_hal_can_legacy.h" |
| 303 | +#include "stm32f4xx_hal_can_legacy.h" |
304 | 304 | #endif /* HAL_CAN_LEGACY_MODULE_ENABLED */ |
305 | 305 |
|
306 | 306 | #ifdef HAL_CRC_MODULE_ENABLED |
307 | | - #include "stm32f4xx_hal_crc.h" |
| 307 | +#include "stm32f4xx_hal_crc.h" |
308 | 308 | #endif /* HAL_CRC_MODULE_ENABLED */ |
309 | 309 |
|
310 | 310 | #ifdef HAL_CRYP_MODULE_ENABLED |
311 | | - #include "stm32f4xx_hal_cryp.h" |
| 311 | +#include "stm32f4xx_hal_cryp.h" |
312 | 312 | #endif /* HAL_CRYP_MODULE_ENABLED */ |
313 | 313 |
|
314 | 314 | #ifdef HAL_DMA2D_MODULE_ENABLED |
315 | | - #include "stm32f4xx_hal_dma2d.h" |
| 315 | +#include "stm32f4xx_hal_dma2d.h" |
316 | 316 | #endif /* HAL_DMA2D_MODULE_ENABLED */ |
317 | 317 |
|
318 | 318 | #ifdef HAL_DAC_MODULE_ENABLED |
319 | | - #include "stm32f4xx_hal_dac.h" |
| 319 | +#include "stm32f4xx_hal_dac.h" |
320 | 320 | #endif /* HAL_DAC_MODULE_ENABLED */ |
321 | 321 |
|
322 | 322 | #ifdef HAL_DCMI_MODULE_ENABLED |
323 | | - #include "stm32f4xx_hal_dcmi.h" |
| 323 | +#include "stm32f4xx_hal_dcmi.h" |
324 | 324 | #endif /* HAL_DCMI_MODULE_ENABLED */ |
325 | 325 |
|
326 | 326 | #ifdef HAL_ETH_MODULE_ENABLED |
327 | | - #include "stm32f4xx_hal_eth.h" |
| 327 | +#include "stm32f4xx_hal_eth.h" |
328 | 328 | #endif /* HAL_ETH_MODULE_ENABLED */ |
329 | 329 |
|
330 | 330 | #ifdef HAL_ETH_LEGACY_MODULE_ENABLED |
331 | | - #include "stm32f4xx_hal_eth_legacy.h" |
| 331 | +#include "stm32f4xx_hal_eth_legacy.h" |
332 | 332 | #endif /* HAL_ETH_LEGACY_MODULE_ENABLED */ |
333 | 333 |
|
334 | 334 | #ifdef HAL_FLASH_MODULE_ENABLED |
335 | | - #include "stm32f4xx_hal_flash.h" |
| 335 | +#include "stm32f4xx_hal_flash.h" |
336 | 336 | #endif /* HAL_FLASH_MODULE_ENABLED */ |
337 | 337 |
|
338 | 338 | #ifdef HAL_SRAM_MODULE_ENABLED |
339 | | - #include "stm32f4xx_hal_sram.h" |
| 339 | +#include "stm32f4xx_hal_sram.h" |
340 | 340 | #endif /* HAL_SRAM_MODULE_ENABLED */ |
341 | 341 |
|
342 | 342 | #ifdef HAL_NOR_MODULE_ENABLED |
343 | | - #include "stm32f4xx_hal_nor.h" |
| 343 | +#include "stm32f4xx_hal_nor.h" |
344 | 344 | #endif /* HAL_NOR_MODULE_ENABLED */ |
345 | 345 |
|
346 | 346 | #ifdef HAL_NAND_MODULE_ENABLED |
347 | | - #include "stm32f4xx_hal_nand.h" |
| 347 | +#include "stm32f4xx_hal_nand.h" |
348 | 348 | #endif /* HAL_NAND_MODULE_ENABLED */ |
349 | 349 |
|
350 | 350 | #ifdef HAL_PCCARD_MODULE_ENABLED |
351 | | - #include "stm32f4xx_hal_pccard.h" |
| 351 | +#include "stm32f4xx_hal_pccard.h" |
352 | 352 | #endif /* HAL_PCCARD_MODULE_ENABLED */ |
353 | 353 |
|
354 | 354 | #ifdef HAL_SDRAM_MODULE_ENABLED |
355 | | - #include "stm32f4xx_hal_sdram.h" |
| 355 | +#include "stm32f4xx_hal_sdram.h" |
356 | 356 | #endif /* HAL_SDRAM_MODULE_ENABLED */ |
357 | 357 |
|
358 | 358 | #ifdef HAL_HASH_MODULE_ENABLED |
359 | | - #include "stm32f4xx_hal_hash.h" |
| 359 | +#include "stm32f4xx_hal_hash.h" |
360 | 360 | #endif /* HAL_HASH_MODULE_ENABLED */ |
361 | 361 |
|
362 | 362 | #ifdef HAL_I2C_MODULE_ENABLED |
363 | | - #include "stm32f4xx_hal_i2c.h" |
| 363 | +#include "stm32f4xx_hal_i2c.h" |
364 | 364 | #endif /* HAL_I2C_MODULE_ENABLED */ |
365 | 365 |
|
366 | 366 | #ifdef HAL_SMBUS_MODULE_ENABLED |
367 | | - #include "stm32f4xx_hal_smbus.h" |
| 367 | +#include "stm32f4xx_hal_smbus.h" |
368 | 368 | #endif /* HAL_SMBUS_MODULE_ENABLED */ |
369 | 369 |
|
370 | 370 | #ifdef HAL_I2S_MODULE_ENABLED |
371 | | - #include "stm32f4xx_hal_i2s.h" |
| 371 | +#include "stm32f4xx_hal_i2s.h" |
372 | 372 | #endif /* HAL_I2S_MODULE_ENABLED */ |
373 | 373 |
|
374 | 374 | #ifdef HAL_IWDG_MODULE_ENABLED |
375 | | - #include "stm32f4xx_hal_iwdg.h" |
| 375 | +#include "stm32f4xx_hal_iwdg.h" |
376 | 376 | #endif /* HAL_IWDG_MODULE_ENABLED */ |
377 | 377 |
|
378 | 378 | #ifdef HAL_LTDC_MODULE_ENABLED |
379 | | - #include "stm32f4xx_hal_ltdc.h" |
| 379 | +#include "stm32f4xx_hal_ltdc.h" |
380 | 380 | #endif /* HAL_LTDC_MODULE_ENABLED */ |
381 | 381 |
|
382 | 382 | #ifdef HAL_PWR_MODULE_ENABLED |
383 | | - #include "stm32f4xx_hal_pwr.h" |
| 383 | +#include "stm32f4xx_hal_pwr.h" |
384 | 384 | #endif /* HAL_PWR_MODULE_ENABLED */ |
385 | 385 |
|
386 | 386 | #ifdef HAL_RNG_MODULE_ENABLED |
387 | | - #include "stm32f4xx_hal_rng.h" |
| 387 | +#include "stm32f4xx_hal_rng.h" |
388 | 388 | #endif /* HAL_RNG_MODULE_ENABLED */ |
389 | 389 |
|
390 | 390 | #ifdef HAL_RTC_MODULE_ENABLED |
391 | | - #include "stm32f4xx_hal_rtc.h" |
| 391 | +#include "stm32f4xx_hal_rtc.h" |
392 | 392 | #endif /* HAL_RTC_MODULE_ENABLED */ |
393 | 393 |
|
394 | 394 | #ifdef HAL_SAI_MODULE_ENABLED |
395 | | - #include "stm32f4xx_hal_sai.h" |
| 395 | +#include "stm32f4xx_hal_sai.h" |
396 | 396 | #endif /* HAL_SAI_MODULE_ENABLED */ |
397 | 397 |
|
398 | 398 | #ifdef HAL_SD_MODULE_ENABLED |
399 | | - #include "stm32f4xx_hal_sd.h" |
| 399 | +#include "stm32f4xx_hal_sd.h" |
400 | 400 | #endif /* HAL_SD_MODULE_ENABLED */ |
401 | 401 |
|
402 | 402 | #ifdef HAL_SPI_MODULE_ENABLED |
403 | | - #include "stm32f4xx_hal_spi.h" |
| 403 | +#include "stm32f4xx_hal_spi.h" |
404 | 404 | #endif /* HAL_SPI_MODULE_ENABLED */ |
405 | 405 |
|
406 | 406 | #ifdef HAL_TIM_MODULE_ENABLED |
407 | | - #include "stm32f4xx_hal_tim.h" |
| 407 | +#include "stm32f4xx_hal_tim.h" |
408 | 408 | #endif /* HAL_TIM_MODULE_ENABLED */ |
409 | 409 |
|
410 | 410 | #ifdef HAL_UART_MODULE_ENABLED |
411 | | - #include "stm32f4xx_hal_uart.h" |
| 411 | +#include "stm32f4xx_hal_uart.h" |
412 | 412 | #endif /* HAL_UART_MODULE_ENABLED */ |
413 | 413 |
|
414 | 414 | #ifdef HAL_USART_MODULE_ENABLED |
415 | | - #include "stm32f4xx_hal_usart.h" |
| 415 | +#include "stm32f4xx_hal_usart.h" |
416 | 416 | #endif /* HAL_USART_MODULE_ENABLED */ |
417 | 417 |
|
418 | 418 | #ifdef HAL_IRDA_MODULE_ENABLED |
419 | | - #include "stm32f4xx_hal_irda.h" |
| 419 | +#include "stm32f4xx_hal_irda.h" |
420 | 420 | #endif /* HAL_IRDA_MODULE_ENABLED */ |
421 | 421 |
|
422 | 422 | #ifdef HAL_SMARTCARD_MODULE_ENABLED |
423 | | - #include "stm32f4xx_hal_smartcard.h" |
| 423 | +#include "stm32f4xx_hal_smartcard.h" |
424 | 424 | #endif /* HAL_SMARTCARD_MODULE_ENABLED */ |
425 | 425 |
|
426 | 426 | #ifdef HAL_WWDG_MODULE_ENABLED |
427 | | - #include "stm32f4xx_hal_wwdg.h" |
| 427 | +#include "stm32f4xx_hal_wwdg.h" |
428 | 428 | #endif /* HAL_WWDG_MODULE_ENABLED */ |
429 | 429 |
|
430 | 430 | #ifdef HAL_PCD_MODULE_ENABLED |
431 | | - #include "stm32f4xx_hal_pcd.h" |
| 431 | +#include "stm32f4xx_hal_pcd.h" |
432 | 432 | #endif /* HAL_PCD_MODULE_ENABLED */ |
433 | 433 |
|
434 | 434 | #ifdef HAL_HCD_MODULE_ENABLED |
435 | | - #include "stm32f4xx_hal_hcd.h" |
| 435 | +#include "stm32f4xx_hal_hcd.h" |
436 | 436 | #endif /* HAL_HCD_MODULE_ENABLED */ |
437 | 437 |
|
438 | 438 | #ifdef HAL_DSI_MODULE_ENABLED |
439 | | - #include "stm32f4xx_hal_dsi.h" |
| 439 | +#include "stm32f4xx_hal_dsi.h" |
440 | 440 | #endif /* HAL_DSI_MODULE_ENABLED */ |
441 | 441 |
|
442 | 442 | #ifdef HAL_QSPI_MODULE_ENABLED |
443 | | - #include "stm32f4xx_hal_qspi.h" |
| 443 | +#include "stm32f4xx_hal_qspi.h" |
444 | 444 | #endif /* HAL_QSPI_MODULE_ENABLED */ |
445 | 445 |
|
446 | 446 | #ifdef HAL_CEC_MODULE_ENABLED |
447 | | - #include "stm32f4xx_hal_cec.h" |
| 447 | +#include "stm32f4xx_hal_cec.h" |
448 | 448 | #endif /* HAL_CEC_MODULE_ENABLED */ |
449 | 449 |
|
450 | 450 | #ifdef HAL_FMPI2C_MODULE_ENABLED |
451 | | - #include "stm32f4xx_hal_fmpi2c.h" |
| 451 | +#include "stm32f4xx_hal_fmpi2c.h" |
452 | 452 | #endif /* HAL_FMPI2C_MODULE_ENABLED */ |
453 | 453 |
|
454 | 454 | #ifdef HAL_FMPSMBUS_MODULE_ENABLED |
455 | | - #include "stm32f4xx_hal_fmpsmbus.h" |
| 455 | +#include "stm32f4xx_hal_fmpsmbus.h" |
456 | 456 | #endif /* HAL_FMPSMBUS_MODULE_ENABLED */ |
457 | 457 |
|
458 | 458 | #ifdef HAL_SPDIFRX_MODULE_ENABLED |
459 | | - #include "stm32f4xx_hal_spdifrx.h" |
| 459 | +#include "stm32f4xx_hal_spdifrx.h" |
460 | 460 | #endif /* HAL_SPDIFRX_MODULE_ENABLED */ |
461 | 461 |
|
462 | 462 | #ifdef HAL_DFSDM_MODULE_ENABLED |
463 | | - #include "stm32f4xx_hal_dfsdm.h" |
| 463 | +#include "stm32f4xx_hal_dfsdm.h" |
464 | 464 | #endif /* HAL_DFSDM_MODULE_ENABLED */ |
465 | 465 |
|
466 | 466 | #ifdef HAL_LPTIM_MODULE_ENABLED |
467 | | - #include "stm32f4xx_hal_lptim.h" |
| 467 | +#include "stm32f4xx_hal_lptim.h" |
468 | 468 | #endif /* HAL_LPTIM_MODULE_ENABLED */ |
469 | 469 |
|
470 | 470 | #ifdef HAL_MMC_MODULE_ENABLED |
471 | | - #include "stm32f4xx_hal_mmc.h" |
| 471 | +#include "stm32f4xx_hal_mmc.h" |
472 | 472 | #endif /* HAL_MMC_MODULE_ENABLED */ |
473 | 473 |
|
474 | 474 | /* Exported macro ------------------------------------------------------------*/ |
|
481 | 481 | * If expr is true, it returns no value. |
482 | 482 | * @retval None |
483 | 483 | */ |
484 | | - #define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__)) |
| 484 | +#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__)) |
485 | 485 | /* Exported functions ------------------------------------------------------- */ |
486 | | - void assert_failed(uint8_t* file, uint32_t line); |
| 486 | +void assert_failed(uint8_t* file, uint32_t line); |
487 | 487 | #else |
488 | | - #define assert_param(expr) ((void)0U) |
| 488 | +#define assert_param(expr) ((void)0U) |
489 | 489 | #endif /* USE_FULL_ASSERT */ |
490 | 490 |
|
491 | 491 | #ifdef __cplusplus |
|
0 commit comments