my fork

Dependents:   Nucleo_blueNRG

Fork of mbed by mbed official

Committer:
filartrix
Date:
Wed Apr 08 14:12:53 2015 +0000
Revision:
97:4298809c7c9e
Parent:
93:e188a91d3eaa
First reale BlueNRG module for nucleo 401 board

Who changed what in which revision?

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