mikroSDK Reference Manual
stm32f7xx_hal_conf.h
Go to the documentation of this file.
1
38/* Define to prevent recursive inclusion -------------------------------------*/
39#ifndef __STM32F7xx_HAL_CONF_H
40#define __STM32F7xx_HAL_CONF_H
41
42#ifdef __cplusplus
43 extern "C" {
44#endif
45
46/* Exported types ------------------------------------------------------------*/
47/* Exported constants --------------------------------------------------------*/
48
49/* ########################## Module Selection ############################## */
53#define HAL_MODULE_ENABLED
54/* #define HAL_ADC_MODULE_ENABLED */
55/* #define HAL_CAN_MODULE_ENABLED */
56/* #define HAL_CEC_MODULE_ENABLED */
57/* #define HAL_CRC_MODULE_ENABLED */
58/* #define HAL_CRYP_MODULE_ENABLED */
59/* #define HAL_DAC_MODULE_ENABLED */
60/* #define HAL_DMA_MODULE_ENABLED */
61/* #define HAL_FLASH_MODULE_ENABLED */
62/* #define HAL_NAND_MODULE_ENABLED */
63/* #define HAL_NOR_MODULE_ENABLED */
64/* #define HAL_SRAM_MODULE_ENABLED */
65/* #define HAL_SDRAM_MODULE_ENABLED */
66/* #define HAL_HASH_MODULE_ENABLED */
67#define HAL_GPIO_MODULE_ENABLED
68/* #define HAL_I2C_MODULE_ENABLED */
69/* #define HAL_I2S_MODULE_ENABLED */
70/* #define HAL_IWDG_MODULE_ENABLED */
71/* #define HAL_LPTIM_MODULE_ENABLED */
72/* #define HAL_PWR_MODULE_ENABLED */
73/* #define HAL_QSPI_MODULE_ENABLED */
74#define HAL_RCC_MODULE_ENABLED
75/* #define HAL_RNG_MODULE_ENABLED */
76/* #define HAL_RTC_MODULE_ENABLED */
77/* #define HAL_SAI_MODULE_ENABLED */
78/* #define HAL_SD_MODULE_ENABLED */
79/* #define HAL_SPI_MODULE_ENABLED */
80/* #define HAL_TIM_MODULE_ENABLED */
81/* #define HAL_UART_MODULE_ENABLED */
82/* #define HAL_USART_MODULE_ENABLED */
83/* #define HAL_IRDA_MODULE_ENABLED */
84/* #define HAL_SMARTCARD_MODULE_ENABLED */
85/* #define HAL_WWDG_MODULE_ENABLED */
86/* #define HAL_CORTEX_MODULE_ENABLED */
87/* #define HAL_PCD_MODULE_ENABLED */
88/* #define HAL_HCD_MODULE_ENABLED */
89
90
91/* ########################## HSE/HSI Values adaptation ##################### */
97#if !defined (HSE_VALUE)
98 #define HSE_VALUE (25000000U)
99#endif /* HSE_VALUE */
100
101#if !defined (HSE_STARTUP_TIMEOUT)
102 #define HSE_STARTUP_TIMEOUT (100U)
103#endif /* HSE_STARTUP_TIMEOUT */
104
110#if !defined (HSI_VALUE)
111 #define HSI_VALUE (16000000U)
112#endif /* HSI_VALUE */
113
117#if !defined (LSI_VALUE)
118 #define LSI_VALUE (32000U)
119#endif /* LSI_VALUE */
125#if !defined (LSE_VALUE)
126 #define LSE_VALUE (32768U)
127#endif /* LSE_VALUE */
128
129#if !defined (LSE_STARTUP_TIMEOUT)
130 #define LSE_STARTUP_TIMEOUT (5000U)
131#endif /* LSE_STARTUP_TIMEOUT */
132
138#if !defined (EXTERNAL_CLOCK_VALUE)
139 #define EXTERNAL_CLOCK_VALUE (12288000U)
140#endif /* EXTERNAL_CLOCK_VALUE */
141
142/* Tip: To avoid modifying this file each time you need to use different HSE,
143 === you can define the HSE value in your toolchain compiler preprocessor. */
144
145/* ########################### System Configuration ######################### */
149#define VDD_VALUE (3300U)
150#define TICK_INT_PRIORITY (0x0FU)
151#define USE_RTOS 0U
152#define PREFETCH_ENABLE 1U
153#define ART_ACCLERATOR_ENABLE 1U /* To enable instruction cache and prefetch */
154
155/* ########################## Assert Selection ############################## */
160/* #define USE_FULL_ASSERT 1 */
161
162/* ################## SPI peripheral configuration ########################## */
163
164/* CRC FEATURE: Use to activate CRC feature inside HAL SPI Driver
165* Activated: CRC code is present inside driver
166* Deactivated: CRC code cleaned from driver
167*/
168
169#define USE_SPI_CRC 1U
170
171/* Includes ------------------------------------------------------------------*/
176#ifdef HAL_RCC_MODULE_ENABLED
177 #include "stm32f7xx_hal_rcc.h"
178#endif /* HAL_RCC_MODULE_ENABLED */
179
180#ifdef HAL_GPIO_MODULE_ENABLED
181 #include "stm32f7xx_hal_gpio.h"
182#endif /* HAL_GPIO_MODULE_ENABLED */
183
184#ifdef HAL_DMA_MODULE_ENABLED
185 #include "stm32f7xx_hal_dma.h"
186#endif /* HAL_DMA_MODULE_ENABLED */
187
188#ifdef HAL_CORTEX_MODULE_ENABLED
189 #include "stm32f7xx_hal_cortex.h"
190#endif /* HAL_CORTEX_MODULE_ENABLED */
191
192#ifdef HAL_ADC_MODULE_ENABLED
193 #include "stm32f7xx_hal_adc.h"
194#endif /* HAL_ADC_MODULE_ENABLED */
195
196#ifdef HAL_CAN_MODULE_ENABLED
197 #include "stm32f7xx_hal_can.h"
198#endif /* HAL_CAN_MODULE_ENABLED */
199
200#ifdef HAL_CEC_MODULE_ENABLED
201 #include "stm32f7xx_hal_cec.h"
202#endif /* HAL_CEC_MODULE_ENABLED */
203
204#ifdef HAL_CRC_MODULE_ENABLED
205 #include "stm32f7xx_hal_crc.h"
206#endif /* HAL_CRC_MODULE_ENABLED */
207
208#ifdef HAL_CRYP_MODULE_ENABLED
209 #include "stm32f7xx_hal_cryp.h"
210#endif /* HAL_CRYP_MODULE_ENABLED */
211
212#ifdef HAL_DAC_MODULE_ENABLED
213 #include "stm32f7xx_hal_dac.h"
214#endif /* HAL_DAC_MODULE_ENABLED */
215
216#ifdef HAL_FLASH_MODULE_ENABLED
217 #include "stm32f7xx_hal_flash.h"
218#endif /* HAL_FLASH_MODULE_ENABLED */
219
220#ifdef HAL_SRAM_MODULE_ENABLED
221 #include "stm32f7xx_hal_sram.h"
222#endif /* HAL_SRAM_MODULE_ENABLED */
223
224#ifdef HAL_NOR_MODULE_ENABLED
225 #include "stm32f7xx_hal_nor.h"
226#endif /* HAL_NOR_MODULE_ENABLED */
227
228#ifdef HAL_NAND_MODULE_ENABLED
229 #include "stm32f7xx_hal_nand.h"
230#endif /* HAL_NAND_MODULE_ENABLED */
231
232#ifdef HAL_SDRAM_MODULE_ENABLED
233 #include "stm32f7xx_hal_sdram.h"
234#endif /* HAL_SDRAM_MODULE_ENABLED */
235
236#ifdef HAL_HASH_MODULE_ENABLED
237 #include "stm32f7xx_hal_hash.h"
238#endif /* HAL_HASH_MODULE_ENABLED */
239
240#ifdef HAL_I2C_MODULE_ENABLED
241 #include "stm32f7xx_hal_i2c.h"
242#endif /* HAL_I2C_MODULE_ENABLED */
243
244#ifdef HAL_I2S_MODULE_ENABLED
245 #include "stm32f7xx_hal_i2s.h"
246#endif /* HAL_I2S_MODULE_ENABLED */
247
248#ifdef HAL_IWDG_MODULE_ENABLED
249 #include "stm32f7xx_hal_iwdg.h"
250#endif /* HAL_IWDG_MODULE_ENABLED */
251
252#ifdef HAL_LPTIM_MODULE_ENABLED
253 #include "stm32f7xx_hal_lptim.h"
254#endif /* HAL_LPTIM_MODULE_ENABLED */
255
256#ifdef HAL_PWR_MODULE_ENABLED
257 #include "stm32f7xx_hal_pwr.h"
258#endif /* HAL_PWR_MODULE_ENABLED */
259
260#ifdef HAL_QSPI_MODULE_ENABLED
261 #include "stm32f7xx_hal_qspi.h"
262#endif /* HAL_QSPI_MODULE_ENABLED */
263
264#ifdef HAL_RNG_MODULE_ENABLED
265 #include "stm32f7xx_hal_rng.h"
266#endif /* HAL_RNG_MODULE_ENABLED */
267
268#ifdef HAL_RTC_MODULE_ENABLED
269 #include "stm32f7xx_hal_rtc.h"
270#endif /* HAL_RTC_MODULE_ENABLED */
271
272#ifdef HAL_SAI_MODULE_ENABLED
273 #include "stm32f7xx_hal_sai.h"
274#endif /* HAL_SAI_MODULE_ENABLED */
275
276#ifdef HAL_SD_MODULE_ENABLED
277 #include "stm32f7xx_hal_sd.h"
278#endif /* HAL_SD_MODULE_ENABLED */
279
280#ifdef HAL_SPI_MODULE_ENABLED
281 #include "stm32f7xx_hal_spi.h"
282#endif /* HAL_SPI_MODULE_ENABLED */
283
284#ifdef HAL_TIM_MODULE_ENABLED
285 #include "stm32f7xx_hal_tim.h"
286#endif /* HAL_TIM_MODULE_ENABLED */
287
288#ifdef HAL_UART_MODULE_ENABLED
289 #include "stm32f7xx_hal_uart.h"
290#endif /* HAL_UART_MODULE_ENABLED */
291
292#ifdef HAL_USART_MODULE_ENABLED
293 #include "stm32f7xx_hal_usart.h"
294#endif /* HAL_USART_MODULE_ENABLED */
295
296#ifdef HAL_IRDA_MODULE_ENABLED
297 #include "stm32f7xx_hal_irda.h"
298#endif /* HAL_IRDA_MODULE_ENABLED */
299
300#ifdef HAL_SMARTCARD_MODULE_ENABLED
301 #include "stm32f7xx_hal_smartcard.h"
302#endif /* HAL_SMARTCARD_MODULE_ENABLED */
303
304#ifdef HAL_WWDG_MODULE_ENABLED
305 #include "stm32f7xx_hal_wwdg.h"
306#endif /* HAL_WWDG_MODULE_ENABLED */
307
308#ifdef HAL_PCD_MODULE_ENABLED
309 #include "stm32f7xx_hal_pcd.h"
310#endif /* HAL_PCD_MODULE_ENABLED */
311
312#ifdef HAL_HCD_MODULE_ENABLED
313 #include "stm32f7xx_hal_hcd.h"
314#endif /* HAL_HCD_MODULE_ENABLED */
315
316
317/* Exported macro ------------------------------------------------------------*/
318#ifdef USE_FULL_ASSERT
327 #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
328/* Exported functions ------------------------------------------------------- */
329 void assert_failed(uint8_t* file, uint32_t line);
330#else
331 #define assert_param(expr) ((void)0)
332#endif /* USE_FULL_ASSERT */
333
334
335#ifdef __cplusplus
336}
337#endif
338
339#endif /* __STM32F7xx_HAL_CONF_H */
340
341
342/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Header file of GPIO HAL module.
Header file of RCC HAL module.