stm32f4xx_conf.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /**
  2. ******************************************************************************
  3. * @file Project/STM32F4xx_StdPeriph_Templates/stm32f4xx_conf.h
  4. * @author MCD Application Team
  5. * @version V1.8.0
  6. * @date 04-November-2016
  7. * @brief Library configuration file.
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * <h2><center>&copy; COPYRIGHT 2016 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 "stm32f4xx_adc.h"
  33. #include "stm32f4xx_crc.h"
  34. #include "stm32f4xx_dbgmcu.h"
  35. #include "stm32f4xx_dma.h"
  36. #include "stm32f4xx_exti.h"
  37. #include "stm32f4xx_flash.h"
  38. #include "stm32f4xx_gpio.h"
  39. #include "stm32f4xx_i2c.h"
  40. #include "stm32f4xx_iwdg.h"
  41. #include "stm32f4xx_pwr.h"
  42. #include "stm32f4xx_rcc.h"
  43. #include "stm32f4xx_rtc.h"
  44. #include "stm32f4xx_sdio.h"
  45. #include "stm32f4xx_spi.h"
  46. #include "stm32f4xx_syscfg.h"
  47. #include "stm32f4xx_tim.h"
  48. #include "stm32f4xx_usart.h"
  49. #include "stm32f4xx_wwdg.h"
  50. #include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */
  51. #if defined(STM32F429_439xx) || defined(STM32F446xx) || defined(STM32F469_479xx)
  52. #include "stm32f4xx_cryp.h"
  53. #include "stm32f4xx_hash.h"
  54. #include "stm32f4xx_rng.h"
  55. #include "stm32f4xx_can.h"
  56. #include "stm32f4xx_dac.h"
  57. #include "stm32f4xx_dcmi.h"
  58. #include "stm32f4xx_dma2d.h"
  59. #include "stm32f4xx_fmc.h"
  60. #include "stm32f4xx_ltdc.h"
  61. #include "stm32f4xx_sai.h"
  62. #endif /* STM32F429_439xx || STM32F446xx || STM32F469_479xx */
  63. #if defined(STM32F427_437xx)
  64. #include "stm32f4xx_cryp.h"
  65. #include "stm32f4xx_hash.h"
  66. #include "stm32f4xx_rng.h"
  67. #include "stm32f4xx_can.h"
  68. #include "stm32f4xx_dac.h"
  69. #include "stm32f4xx_dcmi.h"
  70. #include "stm32f4xx_dma2d.h"
  71. #include "stm32f4xx_fmc.h"
  72. #include "stm32f4xx_sai.h"
  73. #endif /* STM32F427_437xx */
  74. #if defined(STM32F40_41xxx)
  75. #include "stm32f4xx_cryp.h"
  76. #include "stm32f4xx_hash.h"
  77. #include "stm32f4xx_rng.h"
  78. #include "stm32f4xx_can.h"
  79. #include "stm32f4xx_dac.h"
  80. #include "stm32f4xx_dcmi.h"
  81. #include "stm32f4xx_fsmc.h"
  82. #endif /* STM32F40_41xxx */
  83. #if defined(STM32F410xx)
  84. #include "stm32f4xx_rng.h"
  85. #include "stm32f4xx_dac.h"
  86. #endif /* STM32F410xx */
  87. #if defined(STM32F411xE)
  88. #include "stm32f4xx_flash_ramfunc.h"
  89. #endif /* STM32F411xE */
  90. #if defined(STM32F446xx) || defined(STM32F469_479xx)
  91. #include "stm32f4xx_qspi.h"
  92. #endif /* STM32F446xx || STM32F469_479xx */
  93. #if defined(STM32F410xx) || defined(STM32F446xx)
  94. #include "stm32f4xx_fmpi2c.h"
  95. #endif /* STM32F410xx || STM32F446xx */
  96. #if defined(STM32F446xx)
  97. #include "stm32f4xx_spdifrx.h"
  98. #include "stm32f4xx_cec.h"
  99. #endif /* STM32F446xx */
  100. #if defined(STM32F469_479xx)
  101. #include "stm32f4xx_dsi.h"
  102. #endif /* STM32F469_479xx */
  103. #if defined(STM32F410xx)
  104. #include "stm32f4xx_lptim.h"
  105. #endif /* STM32F410xx */
  106. #if defined(STM32F412xG)
  107. #include "stm32f4xx_rng.h"
  108. #include "stm32f4xx_can.h"
  109. #include "stm32f4xx_qspi.h"
  110. #include "stm32f4xx_rng.h"
  111. #include "stm32f4xx_fsmc.h"
  112. #include "stm32f4xx_dfsdm.h"
  113. #endif /* STM32F412xG */
  114. #if defined(STM32F413_423xx)
  115. #include "stm32f4xx_cryp.h"
  116. #include "stm32f4xx_fmpi2c.h"
  117. #include "stm32f4xx_rng.h"
  118. #include "stm32f4xx_can.h"
  119. #include "stm32f4xx_qspi.h"
  120. #include "stm32f4xx_rng.h"
  121. #include "stm32f4xx_fsmc.h"
  122. #include "stm32f4xx_dfsdm.h"
  123. #endif /* STM32F413_423xx */
  124. /* Exported types ------------------------------------------------------------*/
  125. /* Exported constants --------------------------------------------------------*/
  126. /* If an external clock source is used, then the value of the following define
  127. should be set to the value of the external clock source, else, if no external
  128. clock is used, keep this define commented */
  129. /*#define I2S_EXTERNAL_CLOCK_VAL 12288000 */ /* Value of the external clock in Hz */
  130. /* Uncomment the line below to expanse the "assert_param" macro in the
  131. Standard Peripheral Library drivers code */
  132. /* #define USE_FULL_ASSERT 1 */
  133. /* Exported macro ------------------------------------------------------------*/
  134. #ifdef USE_FULL_ASSERT
  135. /**
  136. * @brief The assert_param macro is used for function's parameters check.
  137. * @param expr: If expr is false, it calls assert_failed function
  138. * which reports the name of the source file and the source
  139. * line number of the call that failed.
  140. * If expr is true, it returns no value.
  141. * @retval None
  142. */
  143. #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
  144. /* Exported functions ------------------------------------------------------- */
  145. void assert_failed(uint8_t* file, uint32_t line);
  146. #else
  147. #define assert_param(expr) ((void)0)
  148. #endif /* USE_FULL_ASSERT */
  149. #endif /* __STM32F4xx_CONF_H */
  150. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/