mbed official / mbed

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

Committer:
Kojto
Date:
Thu Jul 07 14:34:11 2016 +0100
Revision:
122:f9eeca106725
Release 122 of the mbed library

Changes:
- new targets - Nucleo L432KC, Beetle, Nucleo F446ZE, Nucleo L011K4
- Thread safety addition - mbed API should contain a statement about thread safety
- critical section API addition
- CAS API (core_util_atomic_incr/decr)
- DEVICE_ are generated from targets.json file, device.h deprecated
- Callback replaces FunctionPointer to provide std like interface
- mbed HAL API docs improvements
- toolchain - prexif attributes with MBED_
- add new attributes - packed, weak, forcedinline, align
- target.json - contains targets definitions
- ST - L1XX - Cube update to 1.5
- SPI clock selection fix (clock from APB domain)
- F7 - Cube update v1.4.0
- L0 - baudrate init fix
- L1 - Cube update v1.5
- F3 - baudrate init fix, 3 targets CAN support
- F4 - Cube update v1.12.0, 3 targets CAN support
- L4XX - Cube update v1.5.1
- F0 - update Cube to v1.5.0
- L4 - 2 targets (L476RG/VG) CAN support
- NXP - pwm clock fix for KSDK2 MCU
- LPC2368 - remove ARM toolchain support - due to regression
- KSDK2 - fix SPI , I2C address and repeat start
- Silabs - some fixes backported from mbed 3
- Renesas - RZ_A1H - SystemCoreClockUpdate addition

Who changed what in which revision?

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