|
2 | 2 | ****************************************************************************** |
3 | 3 | * @file stm32f4xx_hal_conf_template.h |
4 | 4 | * @author MCD Application Team |
5 | | - * @brief HAL configuration template file. |
| 5 | + * @brief HAL configuration template file. |
6 | 6 | * This file should be copied to the application folder and renamed |
7 | 7 | * to stm32f4xx_hal_conf.h. |
8 | 8 | ****************************************************************************** |
|
17 | 17 | * opensource.org/licenses/BSD-3-Clause |
18 | 18 | * |
19 | 19 | ****************************************************************************** |
20 | | - */ |
| 20 | + */ |
21 | 21 |
|
22 | 22 | /* Define to prevent recursive inclusion -------------------------------------*/ |
23 | 23 | #ifndef __STM32F4xx_HAL_CONF_H |
|
32 | 32 |
|
33 | 33 | /* ########################## Module Selection ############################## */ |
34 | 34 | /** |
35 | | - * @brief This is the list of modules to be used in the HAL driver |
| 35 | + * @brief This is the list of modules to be used in the HAL driver |
36 | 36 | */ |
37 | | -#define HAL_MODULE_ENABLED |
| 37 | +#define HAL_MODULE_ENABLED |
38 | 38 |
|
39 | 39 | #define HAL_ADC_MODULE_ENABLED |
40 | 40 | /* #define HAL_CRYP_MODULE_ENABLED */ |
|
56 | 56 | /* #define HAL_IWDG_MODULE_ENABLED */ |
57 | 57 | /* #define HAL_LTDC_MODULE_ENABLED */ |
58 | 58 | #define HAL_RNG_MODULE_ENABLED |
59 | | -/* #define HAL_RTC_MODULE_ENABLED */ |
| 59 | +#define HAL_RTC_MODULE_ENABLED |
60 | 60 | /* #define HAL_SAI_MODULE_ENABLED */ |
61 | 61 | /* #define HAL_SD_MODULE_ENABLED */ |
62 | 62 | /* #define HAL_MMC_MODULE_ENABLED */ |
63 | 63 | #define HAL_SPI_MODULE_ENABLED |
64 | 64 | #define HAL_TIM_MODULE_ENABLED |
65 | | -#define HAL_UART_MODULE_ENABLED |
| 65 | +#define HAL_UART_MODULE_ENABLED |
66 | 66 | #define HAL_USART_MODULE_ENABLED |
67 | 67 | /* #define HAL_IRDA_MODULE_ENABLED */ |
68 | 68 | /* #define HAL_SMARTCARD_MODULE_ENABLED */ |
|
90 | 90 | /** |
91 | 91 | * @brief Adjust the value of External High Speed oscillator (HSE) used in your application. |
92 | 92 | * This value is used by the RCC HAL module to compute the system frequency |
93 | | - * (when HSE is used as system clock source, directly or through the PLL). |
| 93 | + * (when HSE is used as system clock source, directly or through the PLL). |
94 | 94 | */ |
95 | | -#if !defined (HSE_VALUE) |
| 95 | +#if !defined (HSE_VALUE) |
96 | 96 | #define HSE_VALUE ((uint32_t)12000000) /*!< Value of the External oscillator in Hz */ |
97 | 97 | #endif /* HSE_VALUE */ |
98 | 98 |
|
|
103 | 103 | /** |
104 | 104 | * @brief Internal High Speed oscillator (HSI) value. |
105 | 105 | * This value is used by the RCC HAL module to compute the system frequency |
106 | | - * (when HSI is used as system clock source, directly or through the PLL). |
| 106 | + * (when HSI is used as system clock source, directly or through the PLL). |
107 | 107 | */ |
108 | 108 | #if !defined (HSI_VALUE) |
109 | 109 | #define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/ |
|
112 | 112 | /** |
113 | 113 | * @brief Internal Low Speed oscillator (LSI) value. |
114 | 114 | */ |
115 | | -#if !defined (LSI_VALUE) |
116 | | - #define LSI_VALUE ((uint32_t)40000) |
| 115 | +#if !defined (LSI_VALUE) |
| 116 | + #define LSI_VALUE ((uint32_t)40000) |
117 | 117 | #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz |
118 | 118 | The real value may vary depending on the variations |
119 | 119 | in voltage and temperature. */ |
|
131 | 131 |
|
132 | 132 | /** |
133 | 133 | * @brief External clock source for I2S peripheral |
134 | | - * This value is used by the I2S HAL module to compute the I2S clock source |
135 | | - * frequency, this source is inserted directly through I2S_CKIN pad. |
| 134 | + * This value is used by the I2S HAL module to compute the I2S clock source |
| 135 | + * frequency, this source is inserted directly through I2S_CKIN pad. |
136 | 136 | */ |
137 | 137 | #if !defined (EXTERNAL_CLOCK_VALUE) |
138 | 138 | #define EXTERNAL_CLOCK_VALUE ((uint32_t)12288000U) /*!< Value of the External audio frequency in Hz*/ |
|
145 | 145 | /** |
146 | 146 | * @brief This is the HAL system configuration section |
147 | 147 | */ |
148 | | -#define VDD_VALUE ((uint32_t)3300U) /*!< Value of VDD in mv */ |
149 | | -#define TICK_INT_PRIORITY ((uint32_t)0U) /*!< tick interrupt priority */ |
150 | | -#define USE_RTOS 0U |
| 148 | +#define VDD_VALUE ((uint32_t)3300U) /*!< Value of VDD in mv */ |
| 149 | +#define TICK_INT_PRIORITY ((uint32_t)0U) /*!< tick interrupt priority */ |
| 150 | +#define USE_RTOS 0U |
151 | 151 | #define PREFETCH_ENABLE 1U |
152 | 152 | #define INSTRUCTION_CACHE_ENABLE 1U |
153 | 153 | #define DATA_CACHE_ENABLE 1U |
154 | 154 |
|
155 | 155 | /* ########################## Assert Selection ############################## */ |
156 | 156 | /** |
157 | | - * @brief Uncomment the line below to expanse the "assert_param" macro in the |
| 157 | + * @brief Uncomment the line below to expanse the "assert_param" macro in the |
158 | 158 | * HAL drivers code |
159 | 159 | */ |
160 | 160 | /* #define USE_FULL_ASSERT 1U */ |
|
171 | 171 | #define MAC_ADDR4 0U |
172 | 172 | #define MAC_ADDR5 0U |
173 | 173 |
|
174 | | -/* Definition of the Ethernet driver buffers size and count */ |
| 174 | +/* Definition of the Ethernet driver buffers size and count */ |
175 | 175 | #define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for receive */ |
176 | 176 | #define ETH_TX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for transmit */ |
177 | 177 | #define ETH_RXBUFNB ((uint32_t)4U) /* 4 Rx buffers of size ETH_RX_BUF_SIZE */ |
178 | 178 | #define ETH_TXBUFNB ((uint32_t)4U) /* 4 Tx buffers of size ETH_TX_BUF_SIZE */ |
179 | 179 |
|
180 | 180 | /* Section 2: PHY configuration section */ |
181 | 181 |
|
182 | | -/* DP83848_PHY_ADDRESS Address*/ |
| 182 | +/* DP83848_PHY_ADDRESS Address*/ |
183 | 183 | #define DP83848_PHY_ADDRESS 0x01U |
184 | | -/* PHY Reset delay these values are based on a 1 ms Systick interrupt*/ |
| 184 | +/* PHY Reset delay these values are based on a 1 ms Systick interrupt*/ |
185 | 185 | #define PHY_RESET_DELAY ((uint32_t)0x000000FFU) |
186 | 186 | /* PHY Configuration delay */ |
187 | 187 | #define PHY_CONFIG_DELAY ((uint32_t)0x00000FFFU) |
|
193 | 193 |
|
194 | 194 | #define PHY_BCR ((uint16_t)0x0000U) /*!< Transceiver Basic Control Register */ |
195 | 195 | #define PHY_BSR ((uint16_t)0x0001U) /*!< Transceiver Basic Status Register */ |
196 | | - |
| 196 | + |
197 | 197 | #define PHY_RESET ((uint16_t)0x8000U) /*!< PHY Reset */ |
198 | 198 | #define PHY_LOOPBACK ((uint16_t)0x4000U) /*!< Select loop-back mode */ |
199 | 199 | #define PHY_FULLDUPLEX_100M ((uint16_t)0x2100U) /*!< Set the full-duplex mode at 100 Mb/s */ |
|
208 | 208 | #define PHY_AUTONEGO_COMPLETE ((uint16_t)0x0020U) /*!< Auto-Negotiation process completed */ |
209 | 209 | #define PHY_LINKED_STATUS ((uint16_t)0x0004U) /*!< Valid link established */ |
210 | 210 | #define PHY_JABBER_DETECTION ((uint16_t)0x0002U) /*!< Jabber condition detected */ |
211 | | - |
| 211 | + |
212 | 212 | /* Section 4: Extended PHY Registers */ |
213 | 213 | #define PHY_SR ((uint16_t)0x10U) /*!< PHY status register Offset */ |
214 | 214 |
|
|
226 | 226 |
|
227 | 227 | /* Includes ------------------------------------------------------------------*/ |
228 | 228 | /** |
229 | | - * @brief Include module's header file |
| 229 | + * @brief Include module's header file |
230 | 230 | */ |
231 | 231 |
|
232 | 232 | #ifdef HAL_RCC_MODULE_ENABLED |
|
244 | 244 | #ifdef HAL_DMA_MODULE_ENABLED |
245 | 245 | #include "stm32f4xx_hal_dma.h" |
246 | 246 | #endif /* HAL_DMA_MODULE_ENABLED */ |
247 | | - |
| 247 | + |
248 | 248 | #ifdef HAL_CORTEX_MODULE_ENABLED |
249 | 249 | #include "stm32f4xx_hal_cortex.h" |
250 | 250 | #endif /* HAL_CORTEX_MODULE_ENABLED */ |
|
262 | 262 | #endif /* HAL_CRC_MODULE_ENABLED */ |
263 | 263 |
|
264 | 264 | #ifdef HAL_CRYP_MODULE_ENABLED |
265 | | - #include "stm32f4xx_hal_cryp.h" |
| 265 | + #include "stm32f4xx_hal_cryp.h" |
266 | 266 | #endif /* HAL_CRYP_MODULE_ENABLED */ |
267 | 267 |
|
268 | 268 | #ifdef HAL_DMA2D_MODULE_ENABLED |
|
284 | 284 | #ifdef HAL_FLASH_MODULE_ENABLED |
285 | 285 | #include "stm32f4xx_hal_flash.h" |
286 | 286 | #endif /* HAL_FLASH_MODULE_ENABLED */ |
287 | | - |
| 287 | + |
288 | 288 | #ifdef HAL_SRAM_MODULE_ENABLED |
289 | 289 | #include "stm32f4xx_hal_sram.h" |
290 | 290 | #endif /* HAL_SRAM_MODULE_ENABLED */ |
|
299 | 299 |
|
300 | 300 | #ifdef HAL_PCCARD_MODULE_ENABLED |
301 | 301 | #include "stm32f4xx_hal_pccard.h" |
302 | | -#endif /* HAL_PCCARD_MODULE_ENABLED */ |
303 | | - |
| 302 | +#endif /* HAL_PCCARD_MODULE_ENABLED */ |
| 303 | + |
304 | 304 | #ifdef HAL_SDRAM_MODULE_ENABLED |
305 | 305 | #include "stm32f4xx_hal_sdram.h" |
306 | | -#endif /* HAL_SDRAM_MODULE_ENABLED */ |
| 306 | +#endif /* HAL_SDRAM_MODULE_ENABLED */ |
307 | 307 |
|
308 | 308 | #ifdef HAL_HASH_MODULE_ENABLED |
309 | 309 | #include "stm32f4xx_hal_hash.h" |
|
384 | 384 | #ifdef HAL_HCD_MODULE_ENABLED |
385 | 385 | #include "stm32f4xx_hal_hcd.h" |
386 | 386 | #endif /* HAL_HCD_MODULE_ENABLED */ |
387 | | - |
| 387 | + |
388 | 388 | #ifdef HAL_DSI_MODULE_ENABLED |
389 | 389 | #include "stm32f4xx_hal_dsi.h" |
390 | 390 | #endif /* HAL_DSI_MODULE_ENABLED */ |
|
412 | 412 | #ifdef HAL_LPTIM_MODULE_ENABLED |
413 | 413 | #include "stm32f4xx_hal_lptim.h" |
414 | 414 | #endif /* HAL_LPTIM_MODULE_ENABLED */ |
415 | | - |
| 415 | + |
416 | 416 | /* Exported macro ------------------------------------------------------------*/ |
417 | 417 | #ifdef USE_FULL_ASSERT |
418 | 418 | /** |
419 | 419 | * @brief The assert_param macro is used for function's parameters check. |
420 | 420 | * @param expr: If expr is false, it calls assert_failed function |
421 | 421 | * which reports the name of the source file and the source |
422 | | - * line number of the call that failed. |
| 422 | + * line number of the call that failed. |
423 | 423 | * If expr is true, it returns no value. |
424 | 424 | * @retval None |
425 | 425 | */ |
|
428 | 428 | void assert_failed(uint8_t* file, uint32_t line); |
429 | 429 | #else |
430 | 430 | #define assert_param(expr) ((void)0U) |
431 | | -#endif /* USE_FULL_ASSERT */ |
| 431 | +#endif /* USE_FULL_ASSERT */ |
432 | 432 |
|
433 | 433 | #ifdef __cplusplus |
434 | 434 | } |
435 | 435 | #endif |
436 | 436 |
|
437 | 437 | #endif /* __STM32F4xx_HAL_CONF_H */ |
438 | | - |
| 438 | + |
439 | 439 |
|
440 | 440 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
0 commit comments