mbed library sources

Dependents:   frdm_kl05z_gpio_test

Fork of mbed-src by mbed official

Committer:
shaoziyang
Date:
Sat Sep 13 14:25:46 2014 +0000
Revision:
323:9e901b0a5aa1
Parent:
237:f3da66175598
test with CLOCK_SETUP = 0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 237:f3da66175598 1 /**
mbed_official 237:f3da66175598 2 ******************************************************************************
mbed_official 237:f3da66175598 3 * @file stm32f3xx_hal_conf.h
mbed_official 237:f3da66175598 4 * @author MCD Application Team
mbed_official 237:f3da66175598 5 * @version V1.0.1
mbed_official 237:f3da66175598 6 * @date 18-June-2014
mbed_official 237:f3da66175598 7 * @brief HAL configuration file.
mbed_official 237:f3da66175598 8 ******************************************************************************
mbed_official 237:f3da66175598 9 * @attention
mbed_official 237:f3da66175598 10 *
mbed_official 237:f3da66175598 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
mbed_official 237:f3da66175598 12 *
mbed_official 237:f3da66175598 13 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 237:f3da66175598 14 * are permitted provided that the following conditions are met:
mbed_official 237:f3da66175598 15 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 237:f3da66175598 16 * this list of conditions and the following disclaimer.
mbed_official 237:f3da66175598 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 237:f3da66175598 18 * this list of conditions and the following disclaimer in the documentation
mbed_official 237:f3da66175598 19 * and/or other materials provided with the distribution.
mbed_official 237:f3da66175598 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 237:f3da66175598 21 * may be used to endorse or promote products derived from this software
mbed_official 237:f3da66175598 22 * without specific prior written permission.
mbed_official 237:f3da66175598 23 *
mbed_official 237:f3da66175598 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 237:f3da66175598 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 237:f3da66175598 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 237:f3da66175598 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 237:f3da66175598 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 237:f3da66175598 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 237:f3da66175598 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 237:f3da66175598 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 237:f3da66175598 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 237:f3da66175598 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 237:f3da66175598 34 *
mbed_official 237:f3da66175598 35 ******************************************************************************
mbed_official 237:f3da66175598 36 */
mbed_official 237:f3da66175598 37
mbed_official 237:f3da66175598 38 /* Define to prevent recursive inclusion -------------------------------------*/
mbed_official 237:f3da66175598 39 #ifndef __STM32F3xx_HAL_CONF_H
mbed_official 237:f3da66175598 40 #define __STM32F3xx_HAL_CONF_H
mbed_official 237:f3da66175598 41
mbed_official 237:f3da66175598 42 #ifdef __cplusplus
mbed_official 237:f3da66175598 43 extern "C" {
mbed_official 237:f3da66175598 44 #endif
mbed_official 237:f3da66175598 45
mbed_official 237:f3da66175598 46 /* Exported types ------------------------------------------------------------*/
mbed_official 237:f3da66175598 47 /* Exported constants --------------------------------------------------------*/
mbed_official 237:f3da66175598 48
mbed_official 237:f3da66175598 49 /* ########################## Module Selection ############################## */
mbed_official 237:f3da66175598 50 /**
mbed_official 237:f3da66175598 51 * @brief This is the list of modules to be used in the HAL driver
mbed_official 237:f3da66175598 52 */
mbed_official 237:f3da66175598 53 #define HAL_MODULE_ENABLED
mbed_official 237:f3da66175598 54 #define HAL_ADC_MODULE_ENABLED
mbed_official 237:f3da66175598 55 #define HAL_CAN_MODULE_ENABLED
mbed_official 237:f3da66175598 56 #define HAL_CEC_MODULE_ENABLED
mbed_official 237:f3da66175598 57 #define HAL_COMP_MODULE_ENABLED
mbed_official 237:f3da66175598 58 #define HAL_CORTEX_MODULE_ENABLED
mbed_official 237:f3da66175598 59 #define HAL_CRC_MODULE_ENABLED
mbed_official 237:f3da66175598 60 #define HAL_DAC_MODULE_ENABLED
mbed_official 237:f3da66175598 61 #define HAL_DMA_MODULE_ENABLED
mbed_official 237:f3da66175598 62 #define HAL_FLASH_MODULE_ENABLED
mbed_official 237:f3da66175598 63 #define HAL_GPIO_MODULE_ENABLED
mbed_official 237:f3da66175598 64 #define HAL_HRTIM_MODULE_ENABLED
mbed_official 237:f3da66175598 65 #define HAL_I2C_MODULE_ENABLED
mbed_official 237:f3da66175598 66 #define HAL_I2S_MODULE_ENABLED
mbed_official 237:f3da66175598 67 #define HAL_IRDA_MODULE_ENABLED
mbed_official 237:f3da66175598 68 #define HAL_IWDG_MODULE_ENABLED
mbed_official 237:f3da66175598 69 #define HAL_OPAMP_MODULE_ENABLED
mbed_official 237:f3da66175598 70 #define HAL_PCD_MODULE_ENABLED
mbed_official 237:f3da66175598 71 #define HAL_PWR_MODULE_ENABLED
mbed_official 237:f3da66175598 72 #define HAL_RCC_MODULE_ENABLED
mbed_official 237:f3da66175598 73 #define HAL_RTC_MODULE_ENABLED
mbed_official 237:f3da66175598 74 #define HAL_SDADC_MODULE_ENABLED
mbed_official 237:f3da66175598 75 #define HAL_SMARTCARD_MODULE_ENABLED
mbed_official 237:f3da66175598 76 #define HAL_SMBUS_MODULE_ENABLED
mbed_official 237:f3da66175598 77 #define HAL_SPI_MODULE_ENABLED
mbed_official 237:f3da66175598 78 #define HAL_TIM_MODULE_ENABLED
mbed_official 237:f3da66175598 79 #define HAL_TSC_MODULE_ENABLED
mbed_official 237:f3da66175598 80 #define HAL_UART_MODULE_ENABLED
mbed_official 237:f3da66175598 81 #define HAL_USART_MODULE_ENABLED
mbed_official 237:f3da66175598 82 #define HAL_WWDG_MODULE_ENABLED
mbed_official 237:f3da66175598 83
mbed_official 237:f3da66175598 84 /* ########################## HSE/HSI Values adaptation ##################### */
mbed_official 237:f3da66175598 85 /**
mbed_official 237:f3da66175598 86 * @brief Adjust the value of External High Speed oscillator (HSE) used in your application.
mbed_official 237:f3da66175598 87 * This value is used by the RCC HAL module to compute the system frequency
mbed_official 237:f3da66175598 88 * (when HSE is used as system clock source, directly or through the PLL).
mbed_official 237:f3da66175598 89 */
mbed_official 237:f3da66175598 90 #if !defined (HSE_VALUE)
mbed_official 237:f3da66175598 91 #define HSE_VALUE ((uint32_t)8000000) /*!< Value of the External oscillator in Hz */
mbed_official 237:f3da66175598 92 #endif /* HSE_VALUE */
mbed_official 237:f3da66175598 93
mbed_official 237:f3da66175598 94 /**
mbed_official 237:f3da66175598 95 * @brief In the following line adjust the External High Speed oscillator (HSE) Startup
mbed_official 237:f3da66175598 96 * Timeout value
mbed_official 237:f3da66175598 97 */
mbed_official 237:f3da66175598 98 #if !defined (HSE_STARTUP_TIMEOUT)
mbed_official 237:f3da66175598 99 #define HSE_STARTUP_TIMEOUT ((uint32_t)500) /*!< Time out for HSE start up, in ms */
mbed_official 237:f3da66175598 100 #endif /* HSE_STARTUP_TIMEOUT */
mbed_official 237:f3da66175598 101
mbed_official 237:f3da66175598 102 /**
mbed_official 237:f3da66175598 103 * @brief Internal High Speed oscillator (HSI) value.
mbed_official 237:f3da66175598 104 * This value is used by the RCC HAL module to compute the system frequency
mbed_official 237:f3da66175598 105 * (when HSI is used as system clock source, directly or through the PLL).
mbed_official 237:f3da66175598 106 */
mbed_official 237:f3da66175598 107 #if !defined (HSI_VALUE)
mbed_official 237:f3da66175598 108 #define HSI_VALUE ((uint32_t)8000000) /*!< Value of the Internal oscillator in Hz*/
mbed_official 237:f3da66175598 109 #endif /* HSI_VALUE */
mbed_official 237:f3da66175598 110
mbed_official 237:f3da66175598 111 /**
mbed_official 237:f3da66175598 112 * @brief In the following line adjust the Internal High Speed oscillator (HSI) Startup
mbed_official 237:f3da66175598 113 * Timeout value
mbed_official 237:f3da66175598 114 */
mbed_official 237:f3da66175598 115 #if !defined (HSI_STARTUP_TIMEOUT)
mbed_official 237:f3da66175598 116 #define HSI_STARTUP_TIMEOUT ((uint32_t)5000) /*!< Time out for HSI start up */
mbed_official 237:f3da66175598 117 #endif /* HSI_STARTUP_TIMEOUT */
mbed_official 237:f3da66175598 118
mbed_official 237:f3da66175598 119 /**
mbed_official 237:f3da66175598 120 * @brief Internal Low Speed oscillator (LSI) value.
mbed_official 237:f3da66175598 121 */
mbed_official 237:f3da66175598 122 #if !defined (LSI_VALUE)
mbed_official 237:f3da66175598 123 #define LSI_VALUE ((uint32_t)40000)
mbed_official 237:f3da66175598 124 #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz
mbed_official 237:f3da66175598 125 The real value may vary depending on the variations
mbed_official 237:f3da66175598 126 in voltage and temperature. */
mbed_official 237:f3da66175598 127 /**
mbed_official 237:f3da66175598 128 * @brief External Low Speed oscillator (LSE) value.
mbed_official 237:f3da66175598 129 */
mbed_official 237:f3da66175598 130 #if !defined (LSE_VALUE)
mbed_official 237:f3da66175598 131 #define LSE_VALUE ((uint32_t)32768) /*!< Value of the External Low Speed oscillator in Hz */
mbed_official 237:f3da66175598 132 #endif /* LSE_VALUE */
mbed_official 237:f3da66175598 133
mbed_official 237:f3da66175598 134 /**
mbed_official 237:f3da66175598 135 * @brief External clock source for I2S peripheral
mbed_official 237:f3da66175598 136 * This value is used by the I2S HAL module to compute the I2S clock source
mbed_official 237:f3da66175598 137 * frequency, this source is inserted directly through I2S_CKIN pad.
mbed_official 237:f3da66175598 138 * - External clock generated through external PLL component on EVAL 303 (based on MCO or crystal)
mbed_official 237:f3da66175598 139 * - External clock not generated on EVAL 373
mbed_official 237:f3da66175598 140 */
mbed_official 237:f3da66175598 141 #if !defined (EXTERNAL_CLOCK_VALUE)
mbed_official 237:f3da66175598 142 #define EXTERNAL_CLOCK_VALUE ((uint32_t)8000000) /*!< Value of the External oscillator in Hz*/
mbed_official 237:f3da66175598 143 #endif /* EXTERNAL_CLOCK_VALUE */
mbed_official 237:f3da66175598 144
mbed_official 237:f3da66175598 145 /* Tip: To avoid modifying this file each time you need to use different HSE,
mbed_official 237:f3da66175598 146 === you can define the HSE value in your toolchain compiler preprocessor. */
mbed_official 237:f3da66175598 147
mbed_official 237:f3da66175598 148 /* ########################### System Configuration ######################### */
mbed_official 237:f3da66175598 149 /**
mbed_official 237:f3da66175598 150 * @brief This is the HAL system configuration section
mbed_official 237:f3da66175598 151 */
mbed_official 237:f3da66175598 152 #define VDD_VALUE ((uint32_t)3300) /*!< Value of VDD in mv */
mbed_official 237:f3da66175598 153 #define TICK_INT_PRIORITY ((uint32_t)(1<<__NVIC_PRIO_BITS) - 1) /*!< tick interrupt priority (lowest by default) */
mbed_official 237:f3da66175598 154 #define USE_RTOS 0
mbed_official 237:f3da66175598 155 #define PREFETCH_ENABLE 1
mbed_official 237:f3da66175598 156 #define INSTRUCTION_CACHE_ENABLE 0
mbed_official 237:f3da66175598 157 #define DATA_CACHE_ENABLE 0
mbed_official 237:f3da66175598 158
mbed_official 237:f3da66175598 159 /* ########################## Assert Selection ############################## */
mbed_official 237:f3da66175598 160 /**
mbed_official 237:f3da66175598 161 * @brief Uncomment the line below to expanse the "assert_param" macro in the
mbed_official 237:f3da66175598 162 * HAL drivers code
mbed_official 237:f3da66175598 163 */
mbed_official 237:f3da66175598 164 /*#define USE_FULL_ASSERT 1*/
mbed_official 237:f3da66175598 165
mbed_official 237:f3da66175598 166 /* Includes ------------------------------------------------------------------*/
mbed_official 237:f3da66175598 167 /**
mbed_official 237:f3da66175598 168 * @brief Include module's header file
mbed_official 237:f3da66175598 169 */
mbed_official 237:f3da66175598 170
mbed_official 237:f3da66175598 171 #ifdef HAL_RCC_MODULE_ENABLED
mbed_official 237:f3da66175598 172 #include "stm32f3xx_hal_rcc.h"
mbed_official 237:f3da66175598 173 #endif /* HAL_RCC_MODULE_ENABLED */
mbed_official 237:f3da66175598 174
mbed_official 237:f3da66175598 175 #ifdef HAL_GPIO_MODULE_ENABLED
mbed_official 237:f3da66175598 176 #include "stm32f3xx_hal_gpio.h"
mbed_official 237:f3da66175598 177 #endif /* HAL_GPIO_MODULE_ENABLED */
mbed_official 237:f3da66175598 178
mbed_official 237:f3da66175598 179 #ifdef HAL_DMA_MODULE_ENABLED
mbed_official 237:f3da66175598 180 #include "stm32f3xx_hal_dma.h"
mbed_official 237:f3da66175598 181 #endif /* HAL_DMA_MODULE_ENABLED */
mbed_official 237:f3da66175598 182
mbed_official 237:f3da66175598 183 #ifdef HAL_CORTEX_MODULE_ENABLED
mbed_official 237:f3da66175598 184 #include "stm32f3xx_hal_cortex.h"
mbed_official 237:f3da66175598 185 #endif /* HAL_CORTEX_MODULE_ENABLED */
mbed_official 237:f3da66175598 186
mbed_official 237:f3da66175598 187 #ifdef HAL_ADC_MODULE_ENABLED
mbed_official 237:f3da66175598 188 #include "stm32f3xx_hal_adc.h"
mbed_official 237:f3da66175598 189 #endif /* HAL_ADC_MODULE_ENABLED */
mbed_official 237:f3da66175598 190
mbed_official 237:f3da66175598 191 #ifdef HAL_CAN_MODULE_ENABLED
mbed_official 237:f3da66175598 192 #include "stm32f3xx_hal_can.h"
mbed_official 237:f3da66175598 193 #endif /* HAL_CAN_MODULE_ENABLED */
mbed_official 237:f3da66175598 194
mbed_official 237:f3da66175598 195 #ifdef HAL_CEC_MODULE_ENABLED
mbed_official 237:f3da66175598 196 #include "stm32f3xx_hal_cec.h"
mbed_official 237:f3da66175598 197 #endif /* HAL_CEC_MODULE_ENABLED */
mbed_official 237:f3da66175598 198
mbed_official 237:f3da66175598 199 #ifdef HAL_COMP_MODULE_ENABLED
mbed_official 237:f3da66175598 200 #include "stm32f3xx_hal_comp.h"
mbed_official 237:f3da66175598 201 #endif /* HAL_COMP_MODULE_ENABLED */
mbed_official 237:f3da66175598 202
mbed_official 237:f3da66175598 203 #ifdef HAL_CRC_MODULE_ENABLED
mbed_official 237:f3da66175598 204 #include "stm32f3xx_hal_crc.h"
mbed_official 237:f3da66175598 205 #endif /* HAL_CRC_MODULE_ENABLED */
mbed_official 237:f3da66175598 206
mbed_official 237:f3da66175598 207 #ifdef HAL_DAC_MODULE_ENABLED
mbed_official 237:f3da66175598 208 #include "stm32f3xx_hal_dac.h"
mbed_official 237:f3da66175598 209 #endif /* HAL_DAC_MODULE_ENABLED */
mbed_official 237:f3da66175598 210
mbed_official 237:f3da66175598 211 #ifdef HAL_FLASH_MODULE_ENABLED
mbed_official 237:f3da66175598 212 #include "stm32f3xx_hal_flash.h"
mbed_official 237:f3da66175598 213 #endif /* HAL_FLASH_MODULE_ENABLED */
mbed_official 237:f3da66175598 214
mbed_official 237:f3da66175598 215 #ifdef HAL_HRTIM_MODULE_ENABLED
mbed_official 237:f3da66175598 216 #include "stm32f3xx_hal_hrtim.h"
mbed_official 237:f3da66175598 217 #endif /* HAL_HRTIM_MODULE_ENABLED */
mbed_official 237:f3da66175598 218
mbed_official 237:f3da66175598 219 #ifdef HAL_I2C_MODULE_ENABLED
mbed_official 237:f3da66175598 220 #include "stm32f3xx_hal_i2c.h"
mbed_official 237:f3da66175598 221 #endif /* HAL_I2C_MODULE_ENABLED */
mbed_official 237:f3da66175598 222
mbed_official 237:f3da66175598 223 #ifdef HAL_I2S_MODULE_ENABLED
mbed_official 237:f3da66175598 224 #include "stm32f3xx_hal_i2s.h"
mbed_official 237:f3da66175598 225 #endif /* HAL_I2S_MODULE_ENABLED */
mbed_official 237:f3da66175598 226
mbed_official 237:f3da66175598 227 #ifdef HAL_IRDA_MODULE_ENABLED
mbed_official 237:f3da66175598 228 #include "stm32f3xx_hal_irda.h"
mbed_official 237:f3da66175598 229 #endif /* HAL_IRDA_MODULE_ENABLED */
mbed_official 237:f3da66175598 230
mbed_official 237:f3da66175598 231 #ifdef HAL_IWDG_MODULE_ENABLED
mbed_official 237:f3da66175598 232 #include "stm32f3xx_hal_iwdg.h"
mbed_official 237:f3da66175598 233 #endif /* HAL_IWDG_MODULE_ENABLED */
mbed_official 237:f3da66175598 234
mbed_official 237:f3da66175598 235 #ifdef HAL_OPAMP_MODULE_ENABLED
mbed_official 237:f3da66175598 236 #include "stm32f3xx_hal_opamp.h"
mbed_official 237:f3da66175598 237 #endif /* HAL_OPAMP_MODULE_ENABLED */
mbed_official 237:f3da66175598 238
mbed_official 237:f3da66175598 239 #ifdef HAL_PCD_MODULE_ENABLED
mbed_official 237:f3da66175598 240 #include "stm32f3xx_hal_pcd.h"
mbed_official 237:f3da66175598 241 #endif /* HAL_PCD_MODULE_ENABLED */
mbed_official 237:f3da66175598 242
mbed_official 237:f3da66175598 243 #ifdef HAL_PWR_MODULE_ENABLED
mbed_official 237:f3da66175598 244 #include "stm32f3xx_hal_pwr.h"
mbed_official 237:f3da66175598 245 #endif /* HAL_PWR_MODULE_ENABLED */
mbed_official 237:f3da66175598 246
mbed_official 237:f3da66175598 247 #ifdef HAL_RTC_MODULE_ENABLED
mbed_official 237:f3da66175598 248 #include "stm32f3xx_hal_rtc.h"
mbed_official 237:f3da66175598 249 #endif /* HAL_RTC_MODULE_ENABLED */
mbed_official 237:f3da66175598 250
mbed_official 237:f3da66175598 251 #ifdef HAL_SDADC_MODULE_ENABLED
mbed_official 237:f3da66175598 252 #include "stm32f3xx_hal_sdadc.h"
mbed_official 237:f3da66175598 253 #endif /* HAL_SDADC_MODULE_ENABLED */
mbed_official 237:f3da66175598 254
mbed_official 237:f3da66175598 255 #ifdef HAL_SMARTCARD_MODULE_ENABLED
mbed_official 237:f3da66175598 256 #include "stm32f3xx_hal_smartcard.h"
mbed_official 237:f3da66175598 257 #endif /* HAL_SMARTCARD_MODULE_ENABLED */
mbed_official 237:f3da66175598 258
mbed_official 237:f3da66175598 259 #ifdef HAL_SMBUS_MODULE_ENABLED
mbed_official 237:f3da66175598 260 #include "stm32f3xx_hal_smbus.h"
mbed_official 237:f3da66175598 261 #endif /* HAL_SMBUS_MODULE_ENABLED */
mbed_official 237:f3da66175598 262
mbed_official 237:f3da66175598 263 #ifdef HAL_SPI_MODULE_ENABLED
mbed_official 237:f3da66175598 264 #include "stm32f3xx_hal_spi.h"
mbed_official 237:f3da66175598 265 #endif /* HAL_SPI_MODULE_ENABLED */
mbed_official 237:f3da66175598 266
mbed_official 237:f3da66175598 267 #ifdef HAL_TIM_MODULE_ENABLED
mbed_official 237:f3da66175598 268 #include "stm32f3xx_hal_tim.h"
mbed_official 237:f3da66175598 269 #endif /* HAL_TIM_MODULE_ENABLED */
mbed_official 237:f3da66175598 270
mbed_official 237:f3da66175598 271 #ifdef HAL_TSC_MODULE_ENABLED
mbed_official 237:f3da66175598 272 #include "stm32f3xx_hal_tsc.h"
mbed_official 237:f3da66175598 273 #endif /* HAL_TSC_MODULE_ENABLED */
mbed_official 237:f3da66175598 274
mbed_official 237:f3da66175598 275 #ifdef HAL_UART_MODULE_ENABLED
mbed_official 237:f3da66175598 276 #include "stm32f3xx_hal_uart.h"
mbed_official 237:f3da66175598 277 #endif /* HAL_UART_MODULE_ENABLED */
mbed_official 237:f3da66175598 278
mbed_official 237:f3da66175598 279 #ifdef HAL_USART_MODULE_ENABLED
mbed_official 237:f3da66175598 280 #include "stm32f3xx_hal_usart.h"
mbed_official 237:f3da66175598 281 #endif /* HAL_USART_MODULE_ENABLED */
mbed_official 237:f3da66175598 282
mbed_official 237:f3da66175598 283 #ifdef HAL_WWDG_MODULE_ENABLED
mbed_official 237:f3da66175598 284 #include "stm32f3xx_hal_wwdg.h"
mbed_official 237:f3da66175598 285 #endif /* HAL_WWDG_MODULE_ENABLED */
mbed_official 237:f3da66175598 286
mbed_official 237:f3da66175598 287 /* Exported macro ------------------------------------------------------------*/
mbed_official 237:f3da66175598 288 #ifdef USE_FULL_ASSERT
mbed_official 237:f3da66175598 289 /**
mbed_official 237:f3da66175598 290 * @brief The assert_param macro is used for function's parameters check.
mbed_official 237:f3da66175598 291 * @param expr: If expr is false, it calls assert_failed function
mbed_official 237:f3da66175598 292 * which reports the name of the source file and the source
mbed_official 237:f3da66175598 293 * line number of the call that failed.
mbed_official 237:f3da66175598 294 * If expr is true, it returns no value.
mbed_official 237:f3da66175598 295 * @retval None
mbed_official 237:f3da66175598 296 */
mbed_official 237:f3da66175598 297 #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
mbed_official 237:f3da66175598 298 /* Exported functions ------------------------------------------------------- */
mbed_official 237:f3da66175598 299 void assert_failed(uint8_t* file, uint32_t line);
mbed_official 237:f3da66175598 300 #else
mbed_official 237:f3da66175598 301 #define assert_param(expr) ((void)0)
mbed_official 237:f3da66175598 302 #endif /* USE_FULL_ASSERT */
mbed_official 237:f3da66175598 303
mbed_official 237:f3da66175598 304 #ifdef __cplusplus
mbed_official 237:f3da66175598 305 }
mbed_official 237:f3da66175598 306 #endif
mbed_official 237:f3da66175598 307
mbed_official 237:f3da66175598 308 #endif /* __STM32F3xx_HAL_CONF_H */
mbed_official 237:f3da66175598 309
mbed_official 237:f3da66175598 310
mbed_official 237:f3da66175598 311 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/