my fork

Dependents:   Nucleo_blueNRG

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Thu Nov 27 13:33:22 2014 +0000
Revision:
92:4fc01daae5a5
Parent:
84:0b3ab51c8877
Child:
96:487b796308b0
Release 92 of the mbed libray

Main changes:

- nRF51822: fixed pin assignment issues
- ST targets moving to the STM32Cube driver
- LPC1439: fixed serial interrupt issue
- first Cortex-A platform supported in mbed (RZ_A1H)

Who changed what in which revision?

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