stm32f4xx_conf.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /**
  2. ******************************************************************************
  3. * @file Project/STM32F4xx_StdPeriph_Templates/stm32f4xx_conf.h
  4. * @author MCD Application Team
  5. * @version V1.5.0
  6. * @date 06-March-2015
  7. * @brief Library configuration file.
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * <h2><center>&copy; COPYRIGHT 2015 STMicroelectronics</center></h2>
  12. *
  13. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  14. * You may not use this file except in compliance with the License.
  15. * You may obtain a copy of the License at:
  16. *
  17. * http://www.st.com/software_license_agreement_liberty_v2
  18. *
  19. * Unless required by applicable law or agreed to in writing, software
  20. * distributed under the License is distributed on an "AS IS" BASIS,
  21. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  22. * See the License for the specific language governing permissions and
  23. * limitations under the License.
  24. *
  25. ******************************************************************************
  26. */
  27. /* Define to prevent recursive inclusion -------------------------------------*/
  28. #ifndef __STM32F4xx_CONF_H
  29. #define __STM32F4xx_CONF_H
  30. /* Includes ------------------------------------------------------------------*/
  31. /* Uncomment the line below to enable peripheral header file inclusion */
  32. #include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */
  33. #include "stm32f4xx_adc.h"
  34. #include "stm32f4xx_crc.h"
  35. #include "stm32f4xx_dbgmcu.h"
  36. #include "stm32f4xx_dma.h"
  37. #include "stm32f4xx_exti.h"
  38. #include "stm32f4xx_flash.h"
  39. #include "stm32f4xx_gpio.h"
  40. #include "stm32f4xx_i2c.h"
  41. #include "stm32f4xx_iwdg.h"
  42. #include "stm32f4xx_pwr.h"
  43. #include "stm32f4xx_rcc.h"
  44. #include "stm32f4xx_rtc.h"
  45. #include "stm32f4xx_sdio.h"
  46. #include "stm32f4xx_spi.h"
  47. #include "stm32f4xx_syscfg.h"
  48. #include "stm32f4xx_tim.h"
  49. #include "stm32f4xx_usart.h"
  50. #include "stm32f4xx_wwdg.h"
  51. #if defined(STM32F429_439xx) || defined(STM32F446xx)
  52. #include "stm32f4xx_can.h"
  53. #include "stm32f4xx_cryp.h"
  54. #include "stm32f4xx_dac.h"
  55. #include "stm32f4xx_dcmi.h"
  56. #include "stm32f4xx_dma2d.h"
  57. #include "stm32f4xx_fmc.h"
  58. #include "stm32f4xx_hash.h"
  59. #include "stm32f4xx_ltdc.h"
  60. #include "stm32f4xx_rng.h"
  61. #include "stm32f4xx_sai.h"
  62. #endif /* STM32F429_439xx || STM32F446xx */
  63. #if defined(STM32F427_437xx)
  64. #include "stm32f4xx_can.h"
  65. #include "stm32f4xx_cryp.h"
  66. #include "stm32f4xx_dac.h"
  67. #include "stm32f4xx_dcmi.h"
  68. #include "stm32f4xx_dma2d.h"
  69. #include "stm32f4xx_fmc.h"
  70. #include "stm32f4xx_hash.h"
  71. #include "stm32f4xx_rng.h"
  72. #include "stm32f4xx_sai.h"
  73. #endif /* STM32F427_437xx */
  74. #if defined(STM32F40_41xxx)
  75. #include "stm32f4xx_can.h"
  76. #include "stm32f4xx_cryp.h"
  77. #include "stm32f4xx_dac.h"
  78. #include "stm32f4xx_dcmi.h"
  79. #include "stm32f4xx_fsmc.h"
  80. #include "stm32f4xx_hash.h"
  81. #include "stm32f4xx_rng.h"
  82. #endif /* STM32F40_41xxx */
  83. #if defined(STM32F411xE)
  84. #include "stm32f4xx_flash_ramfunc.h"
  85. #endif /* STM32F411xE */
  86. #if defined(STM32F446xx)
  87. #include "stm32f4xx_cec.h"
  88. #include "stm32f4xx_fmpi2c.h"
  89. #include "stm32f4xx_qspi.h"
  90. #include "stm32f4xx_spdifrx.h"
  91. #endif /* STM32F446xx */
  92. /* Exported types ------------------------------------------------------------*/
  93. /* Exported constants --------------------------------------------------------*/
  94. /* If an external clock source is used, then the value of the following define
  95. should be set to the value of the external clock source, else, if no external
  96. clock is used, keep this define commented */
  97. /*#define I2S_EXTERNAL_CLOCK_VAL 12288000 */ /* Value of the external clock in Hz */
  98. /* Uncomment the line below to expanse the "assert_param" macro in the
  99. Standard Peripheral Library drivers code */
  100. /* #define USE_FULL_ASSERT 1 */
  101. /* Exported macro ------------------------------------------------------------*/
  102. #ifdef USE_FULL_ASSERT
  103. /**
  104. * @brief The assert_param macro is used for function's parameters check.
  105. * @param expr: If expr is false, it calls assert_failed function
  106. * which reports the name of the source file and the source
  107. * line number of the call that failed.
  108. * If expr is true, it returns no value.
  109. * @retval None
  110. */
  111. #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
  112. /* Exported functions ------------------------------------------------------- */
  113. void assert_failed(uint8_t *file, uint32_t line);
  114. #else
  115. #define assert_param(expr) ((void)0)
  116. #endif /* USE_FULL_ASSERT */
  117. #endif /* __STM32F4xx_CONF_H */
  118. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/