|
2 | 2 | ******************************************************************************
|
3 | 3 | * @file stm32f4xx_hal_conf.h
|
4 | 4 | * @author MCD Application Team
|
5 |
| - * @version V1.4.4 |
6 |
| - * @date 22-January-2016 |
7 |
| - * @brief HAL configuration template file. |
8 |
| - * This file should be copied to the application folder and renamed |
9 |
| - * to stm32f4xx_hal_conf.h. |
| 5 | + * @version V1.5.0 |
| 6 | + * @date 06-May-2016 |
| 7 | + * @brief HAL configuration file. |
10 | 8 | ******************************************************************************
|
11 | 9 | * @attention
|
12 | 10 | *
|
|
35 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
36 | 34 | *
|
37 | 35 | ******************************************************************************
|
38 |
| - */ |
| 36 | + */ |
39 | 37 |
|
40 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/
|
41 | 39 | #ifndef __STM32F4xx_HAL_CONF_H
|
|
50 | 48 |
|
51 | 49 | /* ########################## Module Selection ############################## */
|
52 | 50 | /**
|
53 |
| - * @brief This is the list of modules to be used in the HAL driver |
| 51 | + * @brief This is the list of modules to be used in the HAL driver |
54 | 52 | */
|
55 |
| -#define HAL_MODULE_ENABLED |
| 53 | +#define HAL_MODULE_ENABLED |
56 | 54 | #define HAL_ADC_MODULE_ENABLED
|
57 | 55 | #define HAL_CAN_MODULE_ENABLED
|
58 | 56 | #define HAL_CRC_MODULE_ENABLED
|
|
95 | 93 | #define HAL_HCD_MODULE_ENABLED
|
96 | 94 | #define HAL_FMPI2C_MODULE_ENABLED
|
97 | 95 | #define HAL_SPDIFRX_MODULE_ENABLED
|
| 96 | +#define HAL_DFSDM_MODULE_ENABLED |
98 | 97 | #define HAL_LPTIM_MODULE_ENABLED
|
99 | 98 |
|
100 | 99 | /* ########################## HSE/HSI Values adaptation ##################### */
|
101 | 100 | /**
|
102 | 101 | * @brief Adjust the value of External High Speed oscillator (HSE) used in your application.
|
103 | 102 | * This value is used by the RCC HAL module to compute the system frequency
|
104 |
| - * (when HSE is used as system clock source, directly or through the PLL). |
| 103 | + * (when HSE is used as system clock source, directly or through the PLL). |
105 | 104 | */
|
106 |
| -#if !defined (HSE_VALUE) |
| 105 | +#if !defined (HSE_VALUE) |
107 | 106 | #define HSE_VALUE ((uint32_t)8000000U) /*!< Value of the External oscillator in Hz */
|
108 | 107 | #endif /* HSE_VALUE */
|
109 | 108 |
|
|
114 | 113 | /**
|
115 | 114 | * @brief Internal High Speed oscillator (HSI) value.
|
116 | 115 | * This value is used by the RCC HAL module to compute the system frequency
|
117 |
| - * (when HSI is used as system clock source, directly or through the PLL). |
| 116 | + * (when HSI is used as system clock source, directly or through the PLL). |
118 | 117 | */
|
119 | 118 | #if !defined (HSI_VALUE)
|
120 | 119 | #define HSI_VALUE ((uint32_t)16000000U) /*!< Value of the Internal oscillator in Hz*/
|
|
123 | 122 | /**
|
124 | 123 | * @brief Internal Low Speed oscillator (LSI) value.
|
125 | 124 | */
|
126 |
| -#if !defined (LSI_VALUE) |
| 125 | +#if !defined (LSI_VALUE) |
127 | 126 | #define LSI_VALUE ((uint32_t)32000U) /*!< LSI Typical Value in Hz*/
|
128 | 127 | #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz
|
129 | 128 | The real value may vary depending on the variations
|
|
141 | 140 |
|
142 | 141 | /**
|
143 | 142 | * @brief External clock source for I2S peripheral
|
144 |
| - * This value is used by the I2S HAL module to compute the I2S clock source |
145 |
| - * frequency, this source is inserted directly through I2S_CKIN pad. |
| 143 | + * This value is used by the I2S HAL module to compute the I2S clock source |
| 144 | + * frequency, this source is inserted directly through I2S_CKIN pad. |
146 | 145 | */
|
147 | 146 | #if !defined (EXTERNAL_CLOCK_VALUE)
|
148 | 147 | #define EXTERNAL_CLOCK_VALUE ((uint32_t)12288000U) /*!< Value of the Internal oscillator in Hz*/
|
|
154 | 153 | /* ########################### System Configuration ######################### */
|
155 | 154 | /**
|
156 | 155 | * @brief This is the HAL system configuration section
|
157 |
| - */ |
| 156 | + */ |
158 | 157 | #define VDD_VALUE ((uint32_t)3300U) /*!< Value of VDD in mv */
|
159 | 158 | #define TICK_INT_PRIORITY ((uint32_t)0x0FU) /*!< tick interrupt priority */
|
160 | 159 | #define USE_RTOS 0U
|
|
164 | 163 |
|
165 | 164 | /* ########################## Assert Selection ############################## */
|
166 | 165 | /**
|
167 |
| - * @brief Uncomment the line below to expanse the "assert_param" macro in the |
| 166 | + * @brief Uncomment the line below to expanse the "assert_param" macro in the |
168 | 167 | * HAL drivers code
|
169 | 168 | */
|
170 | 169 | /* #define USE_FULL_ASSERT 1U */
|
|
181 | 180 | #define MAC_ADDR4 0U
|
182 | 181 | #define MAC_ADDR5 0U
|
183 | 182 |
|
184 |
| -/* Definition of the Ethernet driver buffers size and count */ |
| 183 | +/* Definition of the Ethernet driver buffers size and count */ |
185 | 184 | #define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for receive */
|
186 | 185 | #define ETH_TX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for transmit */
|
187 | 186 | #define ETH_RXBUFNB ((uint32_t)4U) /* 4 Rx buffers of size ETH_RX_BUF_SIZE */
|
188 | 187 | #define ETH_TXBUFNB ((uint32_t)4U) /* 4 Tx buffers of size ETH_TX_BUF_SIZE */
|
189 | 188 |
|
190 | 189 | /* Section 2: PHY configuration section */
|
191 | 190 |
|
192 |
| -/* DP83848 PHY Address*/ |
| 191 | +/* DP83848 PHY Address*/ |
193 | 192 | #define DP83848_PHY_ADDRESS 0x01U
|
194 |
| -/* PHY Reset delay these values are based on a 1 ms Systick interrupt*/ |
| 193 | +/* PHY Reset delay these values are based on a 1 ms Systick interrupt*/ |
195 | 194 | #define PHY_RESET_DELAY ((uint32_t)0x000000FFU)
|
196 | 195 | /* PHY Configuration delay */
|
197 | 196 | #define PHY_CONFIG_DELAY ((uint32_t)0x00000FFFU)
|
|
203 | 202 |
|
204 | 203 | #define PHY_BCR ((uint16_t)0x0000U) /*!< Transceiver Basic Control Register */
|
205 | 204 | #define PHY_BSR ((uint16_t)0x0001U) /*!< Transceiver Basic Status Register */
|
206 |
| - |
| 205 | + |
207 | 206 | #define PHY_RESET ((uint16_t)0x8000U) /*!< PHY Reset */
|
208 | 207 | #define PHY_LOOPBACK ((uint16_t)0x4000U) /*!< Select loop-back mode */
|
209 | 208 | #define PHY_FULLDUPLEX_100M ((uint16_t)0x2100U) /*!< Set the full-duplex mode at 100 Mb/s */
|
|
218 | 217 | #define PHY_AUTONEGO_COMPLETE ((uint16_t)0x0020U) /*!< Auto-Negotiation process completed */
|
219 | 218 | #define PHY_LINKED_STATUS ((uint16_t)0x0004U) /*!< Valid link established */
|
220 | 219 | #define PHY_JABBER_DETECTION ((uint16_t)0x0002U) /*!< Jabber condition detected */
|
221 |
| - |
| 220 | + |
222 | 221 | /* Section 4: Extended PHY Registers */
|
223 | 222 |
|
224 | 223 | #define PHY_SR ((uint16_t)0x0010U) /*!< PHY status register Offset */
|
225 | 224 | #define PHY_MICR ((uint16_t)0x0011U) /*!< MII Interrupt Control Register */
|
226 | 225 | #define PHY_MISR ((uint16_t)0x0012U) /*!< MII Interrupt Status and Misc. Control Register */
|
227 |
| - |
| 226 | + |
228 | 227 | #define PHY_LINK_STATUS ((uint16_t)0x0001U) /*!< PHY Link mask */
|
229 | 228 | #define PHY_SPEED_STATUS ((uint16_t)0x0002U) /*!< PHY Speed mask */
|
230 | 229 | #define PHY_DUPLEX_STATUS ((uint16_t)0x0004U) /*!< PHY Duplex mask */
|
|
246 | 245 |
|
247 | 246 | /* Includes ------------------------------------------------------------------*/
|
248 | 247 | /**
|
249 |
| - * @brief Include module's header file |
| 248 | + * @brief Include module's header file |
250 | 249 | */
|
251 | 250 |
|
252 | 251 | #ifdef HAL_RCC_MODULE_ENABLED
|
|
260 | 259 | #ifdef HAL_DMA_MODULE_ENABLED
|
261 | 260 | #include "stm32f4xx_hal_dma.h"
|
262 | 261 | #endif /* HAL_DMA_MODULE_ENABLED */
|
263 |
| - |
| 262 | + |
264 | 263 | #ifdef HAL_CORTEX_MODULE_ENABLED
|
265 | 264 | #include "stm32f4xx_hal_cortex.h"
|
266 | 265 | #endif /* HAL_CORTEX_MODULE_ENABLED */
|
|
278 | 277 | #endif /* HAL_CRC_MODULE_ENABLED */
|
279 | 278 |
|
280 | 279 | #ifdef HAL_CRYP_MODULE_ENABLED
|
281 |
| - #include "stm32f4xx_hal_cryp.h" |
| 280 | + #include "stm32f4xx_hal_cryp.h" |
282 | 281 | #endif /* HAL_CRYP_MODULE_ENABLED */
|
283 | 282 |
|
284 | 283 | #ifdef HAL_DMA2D_MODULE_ENABLED
|
|
300 | 299 | #ifdef HAL_FLASH_MODULE_ENABLED
|
301 | 300 | #include "stm32f4xx_hal_flash.h"
|
302 | 301 | #endif /* HAL_FLASH_MODULE_ENABLED */
|
303 |
| - |
| 302 | + |
304 | 303 | #ifdef HAL_SRAM_MODULE_ENABLED
|
305 | 304 | #include "stm32f4xx_hal_sram.h"
|
306 | 305 | #endif /* HAL_SRAM_MODULE_ENABLED */
|
|
315 | 314 |
|
316 | 315 | #ifdef HAL_PCCARD_MODULE_ENABLED
|
317 | 316 | #include "stm32f4xx_hal_pccard.h"
|
318 |
| -#endif /* HAL_PCCARD_MODULE_ENABLED */ |
319 |
| - |
| 317 | +#endif /* HAL_PCCARD_MODULE_ENABLED */ |
| 318 | + |
320 | 319 | #ifdef HAL_SDRAM_MODULE_ENABLED
|
321 | 320 | #include "stm32f4xx_hal_sdram.h"
|
322 | 321 | #endif /* HAL_SDRAM_MODULE_ENABLED */
|
|
396 | 395 | #ifdef HAL_HCD_MODULE_ENABLED
|
397 | 396 | #include "stm32f4xx_hal_hcd.h"
|
398 | 397 | #endif /* HAL_HCD_MODULE_ENABLED */
|
399 |
| - |
| 398 | + |
400 | 399 | #ifdef HAL_DSI_MODULE_ENABLED
|
401 | 400 | #include "stm32f4xx_hal_dsi.h"
|
402 | 401 | #endif /* HAL_DSI_MODULE_ENABLED */
|
|
417 | 416 | #include "stm32f4xx_hal_spdifrx.h"
|
418 | 417 | #endif /* HAL_SPDIFRX_MODULE_ENABLED */
|
419 | 418 |
|
| 419 | +#ifdef HAL_DFSDM_MODULE_ENABLED |
| 420 | + #include "stm32f4xx_hal_dfsdm.h" |
| 421 | +#endif /* HAL_DFSDM_MODULE_ENABLED */ |
| 422 | + |
420 | 423 | #ifdef HAL_LPTIM_MODULE_ENABLED
|
421 | 424 | #include "stm32f4xx_hal_lptim.h"
|
422 | 425 | #endif /* HAL_LPTIM_MODULE_ENABLED */
|
|
427 | 430 | * @brief The assert_param macro is used for function's parameters check.
|
428 | 431 | * @param expr: If expr is false, it calls assert_failed function
|
429 | 432 | * which reports the name of the source file and the source
|
430 |
| - * line number of the call that failed. |
| 433 | + * line number of the call that failed. |
431 | 434 | * If expr is true, it returns no value.
|
432 | 435 | * @retval None
|
433 | 436 | */
|
434 |
| - #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__)) |
435 |
| -/* Exported functions ------------------------------------------------------- */ |
436 |
| - void assert_failed(uint8_t* file, uint32_t line); |
| 437 | + #include "mbed_assert.h" |
| 438 | + #define assert_param(expr) MBED_ASSERT(expr) |
437 | 439 | #else
|
438 | 440 | #define assert_param(expr) ((void)0)
|
439 | 441 | #endif /* USE_FULL_ASSERT */
|
|
444 | 446 | #endif
|
445 | 447 |
|
446 | 448 | #endif /* __STM32F4xx_HAL_CONF_H */
|
447 |
| - |
| 449 | + |
448 | 450 |
|
449 | 451 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
0 commit comments