Damian Gabino / picoGW_mcu
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers stm32f4xx_hal_conf.h Source File

stm32f4xx_hal_conf.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    stm32f4xx_hal_conf.h
00004   * @brief   HAL configuration file.             
00005   ******************************************************************************
00006   * @attention
00007   *
00008   * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
00009   *
00010   * Redistribution and use in source and binary forms, with or without modification,
00011   * are permitted provided that the following conditions are met:
00012   *   1. Redistributions of source code must retain the above copyright notice,
00013   *      this list of conditions and the following disclaimer.
00014   *   2. Redistributions in binary form must reproduce the above copyright notice,
00015   *      this list of conditions and the following disclaimer in the documentation
00016   *      and/or other materials provided with the distribution.
00017   *   3. Neither the name of STMicroelectronics nor the names of its contributors
00018   *      may be used to endorse or promote products derived from this software
00019   *      without specific prior written permission.
00020   *
00021   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00022   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00023   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00024   * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
00025   * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00026   * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00027   * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00028   * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00029   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00030   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00031   *
00032   ******************************************************************************
00033   */ 
00034 
00035 /* Define to prevent recursive inclusion -------------------------------------*/
00036 #ifndef __STM32F4xx_HAL_CONF_H
00037 #define __STM32F4xx_HAL_CONF_H
00038 
00039 #ifdef __cplusplus
00040  extern "C" {
00041 #endif
00042 
00043 #include "mxconstants.h" 
00044 
00045 /* Exported types ------------------------------------------------------------*/
00046 /* Exported constants --------------------------------------------------------*/
00047 
00048 /* ########################## Module Selection ############################## */
00049 /**
00050   * @brief This is the list of modules to be used in the HAL driver 
00051   */
00052 #define HAL_MODULE_ENABLED  
00053 
00054 /* #define HAL_ADC_MODULE_ENABLED   */
00055 /* #define HAL_CAN_MODULE_ENABLED   */
00056 /* #define HAL_CRC_MODULE_ENABLED   */
00057 /* #define HAL_CRYP_MODULE_ENABLED   */
00058 /* #define HAL_DAC_MODULE_ENABLED   */
00059 /* #define HAL_DCMI_MODULE_ENABLED   */
00060 /* #define HAL_DMA2D_MODULE_ENABLED   */
00061 /* #define HAL_ETH_MODULE_ENABLED   */
00062 /* #define HAL_NAND_MODULE_ENABLED   */
00063 /* #define HAL_NOR_MODULE_ENABLED   */
00064 /* #define HAL_PCCARD_MODULE_ENABLED   */
00065 /* #define HAL_SRAM_MODULE_ENABLED   */
00066 /* #define HAL_SDRAM_MODULE_ENABLED   */
00067 /* #define HAL_HASH_MODULE_ENABLED   */
00068 /* #define HAL_I2C_MODULE_ENABLED   */
00069 /* #define HAL_I2S_MODULE_ENABLED   */
00070 /* #define HAL_IWDG_MODULE_ENABLED   */
00071 /* #define HAL_LTDC_MODULE_ENABLED   */
00072 /* #define HAL_RNG_MODULE_ENABLED   */
00073 /* #define HAL_RTC_MODULE_ENABLED   */
00074 /* #define HAL_SAI_MODULE_ENABLED   */
00075 /* #define HAL_SD_MODULE_ENABLED   */
00076 /* #define HAL_SPI_MODULE_ENABLED   */
00077 /* #define HAL_TIM_MODULE_ENABLED   */
00078 /* #define HAL_UART_MODULE_ENABLED   */
00079 /* #define HAL_USART_MODULE_ENABLED   */
00080 /* #define HAL_IRDA_MODULE_ENABLED   */
00081 /* #define HAL_SMARTCARD_MODULE_ENABLED   */
00082 /* #define HAL_WWDG_MODULE_ENABLED   */
00083 #define HAL_PCD_MODULE_ENABLED
00084 /* #define HAL_HCD_MODULE_ENABLED   */
00085 /* #define HAL_DSI_MODULE_ENABLED   */
00086 /* #define HAL_QSPI_MODULE_ENABLED   */
00087 /* #define HAL_QSPI_MODULE_ENABLED   */
00088 /* #define HAL_CEC_MODULE_ENABLED   */
00089 /* #define HAL_FMPI2C_MODULE_ENABLED   */
00090 /* #define HAL_SPDIFRX_MODULE_ENABLED   */
00091 /* #define HAL_DFSDM_MODULE_ENABLED   */
00092 /* #define HAL_LPTIM_MODULE_ENABLED   */
00093 #define HAL_GPIO_MODULE_ENABLED
00094 #define HAL_DMA_MODULE_ENABLED
00095 #define HAL_RCC_MODULE_ENABLED
00096 #define HAL_FLASH_MODULE_ENABLED
00097 #define HAL_PWR_MODULE_ENABLED
00098 #define HAL_CORTEX_MODULE_ENABLED
00099 
00100 /* ########################## HSE/HSI Values adaptation ##################### */
00101 /**
00102   * @brief Adjust the value of External High Speed oscillator (HSE) used in your application.
00103   *        This value is used by the RCC HAL module to compute the system frequency
00104   *        (when HSE is used as system clock source, directly or through the PLL).  
00105   */
00106 #if !defined  (HSE_VALUE) 
00107   #define HSE_VALUE    ((uint32_t)25000000U) /*!< Value of the External oscillator in Hz */
00108 #endif /* HSE_VALUE */
00109 
00110 #if !defined  (HSE_STARTUP_TIMEOUT)
00111   #define HSE_STARTUP_TIMEOUT    ((uint32_t)100U)   /*!< Time out for HSE start up, in ms */
00112 #endif /* HSE_STARTUP_TIMEOUT */
00113 
00114 /**
00115   * @brief Internal High Speed oscillator (HSI) value.
00116   *        This value is used by the RCC HAL module to compute the system frequency
00117   *        (when HSI is used as system clock source, directly or through the PLL). 
00118   */
00119 #if !defined  (HSI_VALUE)
00120   #define HSI_VALUE    ((uint32_t)16000000U) /*!< Value of the Internal oscillator in Hz*/
00121 #endif /* HSI_VALUE */
00122 
00123 /**
00124   * @brief Internal Low Speed oscillator (LSI) value.
00125   */
00126 #if !defined  (LSI_VALUE) 
00127  #define LSI_VALUE  ((uint32_t)32000U)       /*!< LSI Typical Value in Hz*/
00128 #endif /* LSI_VALUE */                      /*!< Value of the Internal Low Speed oscillator in Hz
00129                                              The real value may vary depending on the variations
00130                                              in voltage and temperature.*/
00131 /**
00132   * @brief External Low Speed oscillator (LSE) value.
00133   */
00134 #if !defined  (LSE_VALUE)
00135  #define LSE_VALUE  ((uint32_t)32768U)    /*!< Value of the External Low Speed oscillator in Hz */
00136 #endif /* LSE_VALUE */
00137 
00138 #if !defined  (LSE_STARTUP_TIMEOUT)
00139   #define LSE_STARTUP_TIMEOUT    ((uint32_t)5000U)   /*!< Time out for LSE start up, in ms */
00140 #endif /* LSE_STARTUP_TIMEOUT */
00141 
00142 /**
00143   * @brief External clock source for I2S peripheral
00144   *        This value is used by the I2S HAL module to compute the I2S clock source 
00145   *        frequency, this source is inserted directly through I2S_CKIN pad. 
00146   */
00147 #if !defined  (EXTERNAL_CLOCK_VALUE)
00148   #define EXTERNAL_CLOCK_VALUE    ((uint32_t)12288000U) /*!< Value of the External audio frequency in Hz*/
00149 #endif /* EXTERNAL_CLOCK_VALUE */
00150 
00151 /* Tip: To avoid modifying this file each time you need to use different HSE,
00152    ===  you can define the HSE value in your toolchain compiler preprocessor. */
00153 
00154 /* ########################### System Configuration ######################### */
00155 /**
00156   * @brief This is the HAL system configuration section
00157   */
00158 #define  VDD_VALUE            ((uint32_t)3300U) /*!< Value of VDD in mv */           
00159 #define  TICK_INT_PRIORITY            ((uint32_t)0U)   /*!< tick interrupt priority */            
00160 #define  USE_RTOS                     0U     
00161 #define  PREFETCH_ENABLE              1U
00162 #define  INSTRUCTION_CACHE_ENABLE     1U
00163 #define  DATA_CACHE_ENABLE            1U
00164 
00165 /* ########################## Assert Selection ############################## */
00166 /**
00167   * @brief Uncomment the line below to expanse the "assert_param" macro in the 
00168   *        HAL drivers code
00169   */
00170 /* #define USE_FULL_ASSERT    1U */
00171 
00172 /* ################## Ethernet peripheral configuration ##################### */
00173 
00174 /* Section 1 : Ethernet peripheral configuration */
00175 
00176 /* MAC ADDRESS: MAC_ADDR0:MAC_ADDR1:MAC_ADDR2:MAC_ADDR3:MAC_ADDR4:MAC_ADDR5 */
00177 #define MAC_ADDR0   2U
00178 #define MAC_ADDR1   0U
00179 #define MAC_ADDR2   0U
00180 #define MAC_ADDR3   0U
00181 #define MAC_ADDR4   0U
00182 #define MAC_ADDR5   0U
00183 
00184 /* Definition of the Ethernet driver buffers size and count */   
00185 #define ETH_RX_BUF_SIZE                ETH_MAX_PACKET_SIZE /* buffer size for receive               */
00186 #define ETH_TX_BUF_SIZE                ETH_MAX_PACKET_SIZE /* buffer size for transmit              */
00187 #define ETH_RXBUFNB                    ((uint32_t)4U)       /* 4 Rx buffers of size ETH_RX_BUF_SIZE  */
00188 #define ETH_TXBUFNB                    ((uint32_t)4U)       /* 4 Tx buffers of size ETH_TX_BUF_SIZE  */
00189 
00190 /* Section 2: PHY configuration section */
00191 
00192 /* DP83848_PHY_ADDRESS Address*/ 
00193 #define DP83848_PHY_ADDRESS           0x01U
00194 /* PHY Reset delay these values are based on a 1 ms Systick interrupt*/ 
00195 #define PHY_RESET_DELAY                 ((uint32_t)0x000000FFU)
00196 /* PHY Configuration delay */
00197 #define PHY_CONFIG_DELAY                ((uint32_t)0x00000FFFU)
00198 
00199 #define PHY_READ_TO                     ((uint32_t)0x0000FFFFU)
00200 #define PHY_WRITE_TO                    ((uint32_t)0x0000FFFFU)
00201 
00202 /* Section 3: Common PHY Registers */
00203 
00204 #define PHY_BCR                         ((uint16_t)0x0000U)    /*!< Transceiver Basic Control Register   */
00205 #define PHY_BSR                         ((uint16_t)0x0001U)    /*!< Transceiver Basic Status Register    */
00206  
00207 #define PHY_RESET                       ((uint16_t)0x8000U)  /*!< PHY Reset */
00208 #define PHY_LOOPBACK                    ((uint16_t)0x4000U)  /*!< Select loop-back mode */
00209 #define PHY_FULLDUPLEX_100M             ((uint16_t)0x2100U)  /*!< Set the full-duplex mode at 100 Mb/s */
00210 #define PHY_HALFDUPLEX_100M             ((uint16_t)0x2000U)  /*!< Set the half-duplex mode at 100 Mb/s */
00211 #define PHY_FULLDUPLEX_10M              ((uint16_t)0x0100U)  /*!< Set the full-duplex mode at 10 Mb/s  */
00212 #define PHY_HALFDUPLEX_10M              ((uint16_t)0x0000U)  /*!< Set the half-duplex mode at 10 Mb/s  */
00213 #define PHY_AUTONEGOTIATION             ((uint16_t)0x1000U)  /*!< Enable auto-negotiation function     */
00214 #define PHY_RESTART_AUTONEGOTIATION     ((uint16_t)0x0200U)  /*!< Restart auto-negotiation function    */
00215 #define PHY_POWERDOWN                   ((uint16_t)0x0800U)  /*!< Select the power down mode           */
00216 #define PHY_ISOLATE                     ((uint16_t)0x0400U)  /*!< Isolate PHY from MII                 */
00217 
00218 #define PHY_AUTONEGO_COMPLETE           ((uint16_t)0x0020U)  /*!< Auto-Negotiation process completed   */
00219 #define PHY_LINKED_STATUS               ((uint16_t)0x0004U)  /*!< Valid link established               */
00220 #define PHY_JABBER_DETECTION            ((uint16_t)0x0002U)  /*!< Jabber condition detected            */
00221   
00222 /* Section 4: Extended PHY Registers */
00223 
00224 #define PHY_SR                          ((uint16_t)0x0010U)    /*!< PHY status register Offset                      */
00225 #define PHY_MICR                        ((uint16_t)0x0011U)    /*!< MII Interrupt Control Register                  */
00226 #define PHY_MISR                        ((uint16_t)0x0012U)    /*!< MII Interrupt Status and Misc. Control Register */
00227  
00228 #define PHY_LINK_STATUS                 ((uint16_t)0x0001U)  /*!< PHY Link mask                                   */
00229 #define PHY_SPEED_STATUS                ((uint16_t)0x0002U)  /*!< PHY Speed mask                                  */
00230 #define PHY_DUPLEX_STATUS               ((uint16_t)0x0004U)  /*!< PHY Duplex mask                                 */
00231 
00232 #define PHY_MICR_INT_EN                 ((uint16_t)0x0002U)  /*!< PHY Enable interrupts                           */
00233 #define PHY_MICR_INT_OE                 ((uint16_t)0x0001U)  /*!< PHY Enable output interrupt events              */
00234 
00235 #define PHY_MISR_LINK_INT_EN            ((uint16_t)0x0020U)  /*!< Enable Interrupt on change of link status       */
00236 #define PHY_LINK_INTERRUPT              ((uint16_t)0x2000U)  /*!< PHY link status interrupt mask                  */
00237 
00238 /* ################## SPI peripheral configuration ########################## */
00239 
00240 /* CRC FEATURE: Use to activate CRC feature inside HAL SPI Driver
00241 * Activated: CRC code is present inside driver
00242 * Deactivated: CRC code cleaned from driver
00243 */
00244 
00245 #define USE_SPI_CRC                     0U
00246 
00247 /* Includes ------------------------------------------------------------------*/
00248 /**
00249   * @brief Include module's header file 
00250   */
00251 
00252 #ifdef HAL_RCC_MODULE_ENABLED
00253   #include "stm32f4xx_hal_rcc.h"
00254 #endif /* HAL_RCC_MODULE_ENABLED */
00255 
00256 #ifdef HAL_GPIO_MODULE_ENABLED
00257   #include "stm32f4xx_hal_gpio.h"
00258 #endif /* HAL_GPIO_MODULE_ENABLED */
00259 
00260 #ifdef HAL_DMA_MODULE_ENABLED
00261   #include "stm32f4xx_hal_dma.h"
00262 #endif /* HAL_DMA_MODULE_ENABLED */
00263    
00264 #ifdef HAL_CORTEX_MODULE_ENABLED
00265   #include "stm32f4xx_hal_cortex.h"
00266 #endif /* HAL_CORTEX_MODULE_ENABLED */
00267 
00268 #ifdef HAL_ADC_MODULE_ENABLED
00269   #include "stm32f4xx_hal_adc.h"
00270 #endif /* HAL_ADC_MODULE_ENABLED */
00271 
00272 #ifdef HAL_CAN_MODULE_ENABLED
00273   #include "stm32f4xx_hal_can.h"
00274 #endif /* HAL_CAN_MODULE_ENABLED */
00275 
00276 #ifdef HAL_CRC_MODULE_ENABLED
00277   #include "stm32f4xx_hal_crc.h"
00278 #endif /* HAL_CRC_MODULE_ENABLED */
00279 
00280 #ifdef HAL_CRYP_MODULE_ENABLED
00281   #include "stm32f4xx_hal_cryp.h" 
00282 #endif /* HAL_CRYP_MODULE_ENABLED */
00283 
00284 #ifdef HAL_DMA2D_MODULE_ENABLED
00285   #include "stm32f4xx_hal_dma2d.h"
00286 #endif /* HAL_DMA2D_MODULE_ENABLED */
00287 
00288 #ifdef HAL_DAC_MODULE_ENABLED
00289   #include "stm32f4xx_hal_dac.h"
00290 #endif /* HAL_DAC_MODULE_ENABLED */
00291 
00292 #ifdef HAL_DCMI_MODULE_ENABLED
00293   #include "stm32f4xx_hal_dcmi.h"
00294 #endif /* HAL_DCMI_MODULE_ENABLED */
00295 
00296 #ifdef HAL_ETH_MODULE_ENABLED
00297   #include "stm32f4xx_hal_eth.h"
00298 #endif /* HAL_ETH_MODULE_ENABLED */
00299 
00300 #ifdef HAL_FLASH_MODULE_ENABLED
00301   #include "stm32f4xx_hal_flash.h"
00302 #endif /* HAL_FLASH_MODULE_ENABLED */
00303  
00304 #ifdef HAL_SRAM_MODULE_ENABLED
00305   #include "stm32f4xx_hal_sram.h"
00306 #endif /* HAL_SRAM_MODULE_ENABLED */
00307 
00308 #ifdef HAL_NOR_MODULE_ENABLED
00309   #include "stm32f4xx_hal_nor.h"
00310 #endif /* HAL_NOR_MODULE_ENABLED */
00311 
00312 #ifdef HAL_NAND_MODULE_ENABLED
00313   #include "stm32f4xx_hal_nand.h"
00314 #endif /* HAL_NAND_MODULE_ENABLED */
00315 
00316 #ifdef HAL_PCCARD_MODULE_ENABLED
00317   #include "stm32f4xx_hal_pccard.h"
00318 #endif /* HAL_PCCARD_MODULE_ENABLED */ 
00319   
00320 #ifdef HAL_SDRAM_MODULE_ENABLED
00321   #include "stm32f4xx_hal_sdram.h"
00322 #endif /* HAL_SDRAM_MODULE_ENABLED */      
00323 
00324 #ifdef HAL_HASH_MODULE_ENABLED
00325  #include "stm32f4xx_hal_hash.h"
00326 #endif /* HAL_HASH_MODULE_ENABLED */
00327 
00328 #ifdef HAL_I2C_MODULE_ENABLED
00329  #include "stm32f4xx_hal_i2c.h"
00330 #endif /* HAL_I2C_MODULE_ENABLED */
00331 
00332 #ifdef HAL_I2S_MODULE_ENABLED
00333  #include "stm32f4xx_hal_i2s.h"
00334 #endif /* HAL_I2S_MODULE_ENABLED */
00335 
00336 #ifdef HAL_IWDG_MODULE_ENABLED
00337  #include "stm32f4xx_hal_iwdg.h"
00338 #endif /* HAL_IWDG_MODULE_ENABLED */
00339 
00340 #ifdef HAL_LTDC_MODULE_ENABLED
00341  #include "stm32f4xx_hal_ltdc.h"
00342 #endif /* HAL_LTDC_MODULE_ENABLED */
00343 
00344 #ifdef HAL_PWR_MODULE_ENABLED
00345  #include "stm32f4xx_hal_pwr.h"
00346 #endif /* HAL_PWR_MODULE_ENABLED */
00347 
00348 #ifdef HAL_RNG_MODULE_ENABLED
00349  #include "stm32f4xx_hal_rng.h"
00350 #endif /* HAL_RNG_MODULE_ENABLED */
00351 
00352 #ifdef HAL_RTC_MODULE_ENABLED
00353  #include "stm32f4xx_hal_rtc.h"
00354 #endif /* HAL_RTC_MODULE_ENABLED */
00355 
00356 #ifdef HAL_SAI_MODULE_ENABLED
00357  #include "stm32f4xx_hal_sai.h"
00358 #endif /* HAL_SAI_MODULE_ENABLED */
00359 
00360 #ifdef HAL_SD_MODULE_ENABLED
00361  #include "stm32f4xx_hal_sd.h"
00362 #endif /* HAL_SD_MODULE_ENABLED */
00363 
00364 #ifdef HAL_SPI_MODULE_ENABLED
00365  #include "stm32f4xx_hal_spi.h"
00366 #endif /* HAL_SPI_MODULE_ENABLED */
00367 
00368 #ifdef HAL_TIM_MODULE_ENABLED
00369  #include "stm32f4xx_hal_tim.h"
00370 #endif /* HAL_TIM_MODULE_ENABLED */
00371 
00372 #ifdef HAL_UART_MODULE_ENABLED
00373  #include "stm32f4xx_hal_uart.h"
00374 #endif /* HAL_UART_MODULE_ENABLED */
00375 
00376 #ifdef HAL_USART_MODULE_ENABLED
00377  #include "stm32f4xx_hal_usart.h"
00378 #endif /* HAL_USART_MODULE_ENABLED */
00379 
00380 #ifdef HAL_IRDA_MODULE_ENABLED
00381  #include "stm32f4xx_hal_irda.h"
00382 #endif /* HAL_IRDA_MODULE_ENABLED */
00383 
00384 #ifdef HAL_SMARTCARD_MODULE_ENABLED
00385  #include "stm32f4xx_hal_smartcard.h"
00386 #endif /* HAL_SMARTCARD_MODULE_ENABLED */
00387 
00388 #ifdef HAL_WWDG_MODULE_ENABLED
00389  #include "stm32f4xx_hal_wwdg.h"
00390 #endif /* HAL_WWDG_MODULE_ENABLED */
00391 
00392 #ifdef HAL_PCD_MODULE_ENABLED
00393  #include "stm32f4xx_hal_pcd.h"
00394 #endif /* HAL_PCD_MODULE_ENABLED */
00395 
00396 #ifdef HAL_HCD_MODULE_ENABLED
00397  #include "stm32f4xx_hal_hcd.h"
00398 #endif /* HAL_HCD_MODULE_ENABLED */
00399    
00400 #ifdef HAL_DSI_MODULE_ENABLED
00401  #include "stm32f4xx_hal_dsi.h"
00402 #endif /* HAL_DSI_MODULE_ENABLED */
00403 
00404 #ifdef HAL_QSPI_MODULE_ENABLED
00405  #include "stm32f4xx_hal_qspi.h"
00406 #endif /* HAL_QSPI_MODULE_ENABLED */
00407 
00408 #ifdef HAL_CEC_MODULE_ENABLED
00409  #include "stm32f4xx_hal_cec.h"
00410 #endif /* HAL_CEC_MODULE_ENABLED */
00411 
00412 #ifdef HAL_FMPI2C_MODULE_ENABLED
00413  #include "stm32f4xx_hal_fmpi2c.h"
00414 #endif /* HAL_FMPI2C_MODULE_ENABLED */
00415 
00416 #ifdef HAL_SPDIFRX_MODULE_ENABLED
00417  #include "stm32f4xx_hal_spdifrx.h"
00418 #endif /* HAL_SPDIFRX_MODULE_ENABLED */
00419 
00420 #ifdef HAL_DFSDM_MODULE_ENABLED
00421  #include "stm32f4xx_hal_dfsdm.h"
00422 #endif /* HAL_DFSDM_MODULE_ENABLED */
00423 
00424 #ifdef HAL_LPTIM_MODULE_ENABLED
00425  #include "stm32f4xx_hal_lptim.h"
00426 #endif /* HAL_LPTIM_MODULE_ENABLED */
00427    
00428 /* Exported macro ------------------------------------------------------------*/
00429 #ifdef  USE_FULL_ASSERT
00430 /**
00431   * @brief  The assert_param macro is used for function's parameters check.
00432   * @param  expr: If expr is false, it calls assert_failed function
00433   *         which reports the name of the source file and the source
00434   *         line number of the call that failed. 
00435   *         If expr is true, it returns no value.
00436   * @retval None
00437   */
00438   #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
00439 /* Exported functions ------------------------------------------------------- */
00440   void assert_failed(uint8_t* file, uint32_t line);
00441 #else
00442   #define assert_param(expr) ((void)0)
00443 #endif /* USE_FULL_ASSERT */    
00444 
00445 #ifdef __cplusplus
00446 }
00447 #endif
00448 
00449 #endif /* __STM32F4xx_HAL_CONF_H */
00450  
00451 
00452 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/