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