/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/adc/fsl_adc_hal.h substitute line 894 extern } by }

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Wed Jun 11 15:14:05 2014 +0100
Revision:
85:024bf7f99721
Child:
92:4fc01daae5a5
Release 85 of the mbed library

Main changes:

- K64F Ethernet fixes
- Updated tests
- Fixes for various mbed targets
- Code cleanup: fixed warnings, more consistent code style
- GCC support for K64F

There is a known issue with the I2C interface on some ST targets. If you
find the I2C interface problematic on your ST board, please log a bug
against this on mbed.org.

Who changed what in which revision?

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