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:
96:487b796308b0
First reale BlueNRG module for nucleo 401 board

Who changed what in which revision?

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