my fork
Fork of mbed by
TARGET_NUCLEO_L152RE/stm32l1xx_hal_conf.h@90:cb3d968589d8, 2014-10-28 (annotated)
- Committer:
- Kojto
- Date:
- Tue Oct 28 16:40:41 2014 +0000
- Revision:
- 90:cb3d968589d8
Release 90 of the mbed library
Changes:
- Freescale KSDK update (v1.0)
- K22 - new target addition
- KL43Z - new target addition
- Nucleo F091RC - new target addition
- Nucleo L152RE - STM32Cube driver
- Nordic - Softdevice v7.1.0
- Nvic files - BSD License
- LPC824 - various HAL fixes
- Nucleo F411RE - CMSIS - IAR files
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 90:cb3d968589d8 | 1 | /** |
Kojto | 90:cb3d968589d8 | 2 | ****************************************************************************** |
Kojto | 90:cb3d968589d8 | 3 | * @file stm32l1xx_hal_conf_template.h |
Kojto | 90:cb3d968589d8 | 4 | * @author MCD Application Team |
Kojto | 90:cb3d968589d8 | 5 | * @version V1.0.0 |
Kojto | 90:cb3d968589d8 | 6 | * @date 5-September-2014 |
Kojto | 90:cb3d968589d8 | 7 | * @brief HAL configuration template file. |
Kojto | 90:cb3d968589d8 | 8 | * This file should be copied to the application folder and renamed |
Kojto | 90:cb3d968589d8 | 9 | * to stm32l1xx_hal_conf.h. |
Kojto | 90:cb3d968589d8 | 10 | ****************************************************************************** |
Kojto | 90:cb3d968589d8 | 11 | * @attention |
Kojto | 90:cb3d968589d8 | 12 | * |
Kojto | 90:cb3d968589d8 | 13 | * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> |
Kojto | 90:cb3d968589d8 | 14 | * |
Kojto | 90:cb3d968589d8 | 15 | * Redistribution and use in source and binary forms, with or without modification, |
Kojto | 90:cb3d968589d8 | 16 | * are permitted provided that the following conditions are met: |
Kojto | 90:cb3d968589d8 | 17 | * 1. Redistributions of source code must retain the above copyright notice, |
Kojto | 90:cb3d968589d8 | 18 | * this list of conditions and the following disclaimer. |
Kojto | 90:cb3d968589d8 | 19 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
Kojto | 90:cb3d968589d8 | 20 | * this list of conditions and the following disclaimer in the documentation |
Kojto | 90:cb3d968589d8 | 21 | * and/or other materials provided with the distribution. |
Kojto | 90:cb3d968589d8 | 22 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
Kojto | 90:cb3d968589d8 | 23 | * may be used to endorse or promote products derived from this software |
Kojto | 90:cb3d968589d8 | 24 | * without specific prior written permission. |
Kojto | 90:cb3d968589d8 | 25 | * |
Kojto | 90:cb3d968589d8 | 26 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
Kojto | 90:cb3d968589d8 | 27 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
Kojto | 90:cb3d968589d8 | 28 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
Kojto | 90:cb3d968589d8 | 29 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
Kojto | 90:cb3d968589d8 | 30 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
Kojto | 90:cb3d968589d8 | 31 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
Kojto | 90:cb3d968589d8 | 32 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
Kojto | 90:cb3d968589d8 | 33 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
Kojto | 90:cb3d968589d8 | 34 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
Kojto | 90:cb3d968589d8 | 35 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Kojto | 90:cb3d968589d8 | 36 | * |
Kojto | 90:cb3d968589d8 | 37 | ****************************************************************************** |
Kojto | 90:cb3d968589d8 | 38 | */ |
Kojto | 90:cb3d968589d8 | 39 | |
Kojto | 90:cb3d968589d8 | 40 | /* Define to prevent recursive inclusion -------------------------------------*/ |
Kojto | 90:cb3d968589d8 | 41 | #ifndef __STM32L1xx_HAL_CONF_H |
Kojto | 90:cb3d968589d8 | 42 | #define __STM32L1xx_HAL_CONF_H |
Kojto | 90:cb3d968589d8 | 43 | |
Kojto | 90:cb3d968589d8 | 44 | #ifdef __cplusplus |
Kojto | 90:cb3d968589d8 | 45 | extern "C" { |
Kojto | 90:cb3d968589d8 | 46 | #endif |
Kojto | 90:cb3d968589d8 | 47 | |
Kojto | 90:cb3d968589d8 | 48 | /* Exported types ------------------------------------------------------------*/ |
Kojto | 90:cb3d968589d8 | 49 | /* Exported constants --------------------------------------------------------*/ |
Kojto | 90:cb3d968589d8 | 50 | |
Kojto | 90:cb3d968589d8 | 51 | /* ########################## Module Selection ############################## */ |
Kojto | 90:cb3d968589d8 | 52 | /** |
Kojto | 90:cb3d968589d8 | 53 | * @brief This is the list of modules to be used in the HAL driver |
Kojto | 90:cb3d968589d8 | 54 | */ |
Kojto | 90:cb3d968589d8 | 55 | #define HAL_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 56 | #define HAL_ADC_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_CRYP_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 61 | #define HAL_DAC_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 62 | #define HAL_DMA_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 63 | #define HAL_FLASH_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 64 | #define HAL_GPIO_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 65 | #define HAL_I2C_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 66 | #define HAL_I2S_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 67 | #define HAL_IRDA_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 68 | #define HAL_IWDG_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 69 | #define HAL_LCD_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 70 | #define HAL_NOR_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 71 | #define HAL_OPAMP_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 72 | #define HAL_PCD_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 73 | #define HAL_PWR_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 74 | #define HAL_RCC_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 75 | #define HAL_RTC_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 76 | #define HAL_SD_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 77 | #define HAL_SMARTCARD_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 78 | #define HAL_SPI_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 79 | #define HAL_SRAM_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 80 | #define HAL_TIM_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 81 | #define HAL_UART_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 82 | #define HAL_USART_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 83 | #define HAL_WWDG_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 84 | |
Kojto | 90:cb3d968589d8 | 85 | /* ########################## Oscillator Values adaptation ####################*/ |
Kojto | 90:cb3d968589d8 | 86 | /** |
Kojto | 90:cb3d968589d8 | 87 | * @brief Adjust the value of External High Speed oscillator (HSE) used in your application. |
Kojto | 90:cb3d968589d8 | 88 | * This value is used by the RCC HAL module to compute the system frequency |
Kojto | 90:cb3d968589d8 | 89 | * (when HSE is used as system clock source, directly or through the PLL). |
Kojto | 90:cb3d968589d8 | 90 | */ |
Kojto | 90:cb3d968589d8 | 91 | #if !defined (HSE_VALUE) |
Kojto | 90:cb3d968589d8 | 92 | #define HSE_VALUE ((uint32_t)8000000) /*!< Value of the External oscillator in Hz */ |
Kojto | 90:cb3d968589d8 | 93 | #endif /* HSE_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 Multiple Speed oscillator (MSI) default value. |
Kojto | 90:cb3d968589d8 | 101 | * This value is the default MSI range value after Reset. |
Kojto | 90:cb3d968589d8 | 102 | */ |
Kojto | 90:cb3d968589d8 | 103 | #if !defined (MSI_VALUE) |
Kojto | 90:cb3d968589d8 | 104 | #define MSI_VALUE ((uint32_t)2097000) /*!< Value of the Internal oscillator in Hz*/ |
Kojto | 90:cb3d968589d8 | 105 | #endif /* MSI_VALUE */ |
Kojto | 90:cb3d968589d8 | 106 | /** |
Kojto | 90:cb3d968589d8 | 107 | * @brief Internal High Speed oscillator (HSI) value. |
Kojto | 90:cb3d968589d8 | 108 | * This value is used by the RCC HAL module to compute the system frequency |
Kojto | 90:cb3d968589d8 | 109 | * (when HSI is used as system clock source, directly or through the PLL). |
Kojto | 90:cb3d968589d8 | 110 | */ |
Kojto | 90:cb3d968589d8 | 111 | #if !defined (HSI_VALUE) |
Kojto | 90:cb3d968589d8 | 112 | #define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/ |
Kojto | 90:cb3d968589d8 | 113 | #endif /* HSI_VALUE */ |
Kojto | 90:cb3d968589d8 | 114 | |
Kojto | 90:cb3d968589d8 | 115 | /** |
Kojto | 90:cb3d968589d8 | 116 | * @brief External Low Speed oscillator (LSE) value. |
Kojto | 90:cb3d968589d8 | 117 | * This value is used by the UART, RTC HAL module to compute the system frequency |
Kojto | 90:cb3d968589d8 | 118 | */ |
Kojto | 90:cb3d968589d8 | 119 | #if !defined (LSE_VALUE) |
Kojto | 90:cb3d968589d8 | 120 | #define LSE_VALUE ((uint32_t)32768) /*!< Value of the External oscillator in Hz*/ |
Kojto | 90:cb3d968589d8 | 121 | #endif /* LSE_VALUE */ |
Kojto | 90:cb3d968589d8 | 122 | |
Kojto | 90:cb3d968589d8 | 123 | |
Kojto | 90:cb3d968589d8 | 124 | #if !defined (LSE_STARTUP_TIMEOUT) |
Kojto | 90:cb3d968589d8 | 125 | #define LSE_STARTUP_TIMEOUT ((uint32_t)500) /*!< Time out for LSE start up, in ms */ |
Kojto | 90:cb3d968589d8 | 126 | #endif /* HSE_STARTUP_TIMEOUT */ |
Kojto | 90:cb3d968589d8 | 127 | |
Kojto | 90:cb3d968589d8 | 128 | |
Kojto | 90:cb3d968589d8 | 129 | /* Tip: To avoid modifying this file each time you need to use different HSE, |
Kojto | 90:cb3d968589d8 | 130 | === you can define the HSE value in your toolchain compiler preprocessor. */ |
Kojto | 90:cb3d968589d8 | 131 | |
Kojto | 90:cb3d968589d8 | 132 | /* ########################### System Configuration ######################### */ |
Kojto | 90:cb3d968589d8 | 133 | /** |
Kojto | 90:cb3d968589d8 | 134 | * @brief This is the HAL system configuration section |
Kojto | 90:cb3d968589d8 | 135 | */ |
Kojto | 90:cb3d968589d8 | 136 | #define VDD_VALUE ((uint32_t)3300) /*!< Value of VDD in mv */ |
Kojto | 90:cb3d968589d8 | 137 | #define TICK_INT_PRIORITY ((uint32_t)0x000F) /*!< tick interrupt priority */ |
Kojto | 90:cb3d968589d8 | 138 | #define USE_RTOS 0 |
Kojto | 90:cb3d968589d8 | 139 | #define PREFETCH_ENABLE 1 |
Kojto | 90:cb3d968589d8 | 140 | #define INSTRUCTION_CACHE_ENABLE 0 |
Kojto | 90:cb3d968589d8 | 141 | #define DATA_CACHE_ENABLE 0 |
Kojto | 90:cb3d968589d8 | 142 | |
Kojto | 90:cb3d968589d8 | 143 | /* ########################## Assert Selection ############################## */ |
Kojto | 90:cb3d968589d8 | 144 | /** |
Kojto | 90:cb3d968589d8 | 145 | * @brief Uncomment the line below to expanse the "assert_param" macro in the |
Kojto | 90:cb3d968589d8 | 146 | * HAL drivers code |
Kojto | 90:cb3d968589d8 | 147 | */ |
Kojto | 90:cb3d968589d8 | 148 | /*#define USE_FULL_ASSERT 1*/ |
Kojto | 90:cb3d968589d8 | 149 | |
Kojto | 90:cb3d968589d8 | 150 | /* Includes ------------------------------------------------------------------*/ |
Kojto | 90:cb3d968589d8 | 151 | /** |
Kojto | 90:cb3d968589d8 | 152 | * @brief Include module's header file |
Kojto | 90:cb3d968589d8 | 153 | */ |
Kojto | 90:cb3d968589d8 | 154 | |
Kojto | 90:cb3d968589d8 | 155 | #ifdef HAL_RCC_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 156 | #include "stm32l1xx_hal_rcc.h" |
Kojto | 90:cb3d968589d8 | 157 | #endif /* HAL_RCC_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 158 | |
Kojto | 90:cb3d968589d8 | 159 | #ifdef HAL_GPIO_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 160 | #include "stm32l1xx_hal_gpio.h" |
Kojto | 90:cb3d968589d8 | 161 | #endif /* HAL_GPIO_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 162 | |
Kojto | 90:cb3d968589d8 | 163 | #ifdef HAL_DMA_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 164 | #include "stm32l1xx_hal_dma.h" |
Kojto | 90:cb3d968589d8 | 165 | #endif /* HAL_DMA_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 166 | |
Kojto | 90:cb3d968589d8 | 167 | #ifdef HAL_CORTEX_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 168 | #include "stm32l1xx_hal_cortex.h" |
Kojto | 90:cb3d968589d8 | 169 | #endif /* HAL_CORTEX_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 170 | |
Kojto | 90:cb3d968589d8 | 171 | #ifdef HAL_ADC_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 172 | #include "stm32l1xx_hal_adc.h" |
Kojto | 90:cb3d968589d8 | 173 | #endif /* HAL_ADC_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 174 | |
Kojto | 90:cb3d968589d8 | 175 | #ifdef HAL_COMP_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 176 | #include "stm32l1xx_hal_comp.h" |
Kojto | 90:cb3d968589d8 | 177 | #endif /* HAL_COMP_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 178 | |
Kojto | 90:cb3d968589d8 | 179 | #ifdef HAL_CRC_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 180 | #include "stm32l1xx_hal_crc.h" |
Kojto | 90:cb3d968589d8 | 181 | #endif /* HAL_CRC_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 182 | |
Kojto | 90:cb3d968589d8 | 183 | #ifdef HAL_CRYP_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 184 | #include "stm32l1xx_hal_cryp.h" |
Kojto | 90:cb3d968589d8 | 185 | #endif /* HAL_CRYP_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 186 | |
Kojto | 90:cb3d968589d8 | 187 | #ifdef HAL_DAC_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 188 | #include "stm32l1xx_hal_dac.h" |
Kojto | 90:cb3d968589d8 | 189 | #endif /* HAL_DAC_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 190 | |
Kojto | 90:cb3d968589d8 | 191 | #ifdef HAL_FLASH_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 192 | #include "stm32l1xx_hal_flash.h" |
Kojto | 90:cb3d968589d8 | 193 | #endif /* HAL_FLASH_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 194 | |
Kojto | 90:cb3d968589d8 | 195 | #ifdef HAL_SRAM_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 196 | #include "stm32l1xx_hal_sram.h" |
Kojto | 90:cb3d968589d8 | 197 | #endif /* HAL_SRAM_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 198 | |
Kojto | 90:cb3d968589d8 | 199 | #ifdef HAL_NOR_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 200 | #include "stm32l1xx_hal_nor.h" |
Kojto | 90:cb3d968589d8 | 201 | #endif /* HAL_NOR_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 202 | |
Kojto | 90:cb3d968589d8 | 203 | #ifdef HAL_I2C_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 204 | #include "stm32l1xx_hal_i2c.h" |
Kojto | 90:cb3d968589d8 | 205 | #endif /* HAL_I2C_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 206 | |
Kojto | 90:cb3d968589d8 | 207 | #ifdef HAL_I2S_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 208 | #include "stm32l1xx_hal_i2s.h" |
Kojto | 90:cb3d968589d8 | 209 | #endif /* HAL_I2S_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 210 | |
Kojto | 90:cb3d968589d8 | 211 | #ifdef HAL_IWDG_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 212 | #include "stm32l1xx_hal_iwdg.h" |
Kojto | 90:cb3d968589d8 | 213 | #endif /* HAL_IWDG_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 214 | |
Kojto | 90:cb3d968589d8 | 215 | #ifdef HAL_LCD_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 216 | #include "stm32l1xx_hal_lcd.h" |
Kojto | 90:cb3d968589d8 | 217 | #endif /* HAL_LCD_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 218 | |
Kojto | 90:cb3d968589d8 | 219 | #ifdef HAL_OPAMP_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 220 | #include "stm32l1xx_hal_opamp.h" |
Kojto | 90:cb3d968589d8 | 221 | #endif /* HAL_OPAMP_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 222 | |
Kojto | 90:cb3d968589d8 | 223 | #ifdef HAL_PWR_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 224 | #include "stm32l1xx_hal_pwr.h" |
Kojto | 90:cb3d968589d8 | 225 | #endif /* HAL_PWR_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 226 | |
Kojto | 90:cb3d968589d8 | 227 | #ifdef HAL_RTC_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 228 | #include "stm32l1xx_hal_rtc.h" |
Kojto | 90:cb3d968589d8 | 229 | #endif /* HAL_RTC_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 230 | |
Kojto | 90:cb3d968589d8 | 231 | #ifdef HAL_SD_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 232 | #include "stm32l1xx_hal_sd.h" |
Kojto | 90:cb3d968589d8 | 233 | #endif /* HAL_SD_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 234 | |
Kojto | 90:cb3d968589d8 | 235 | #ifdef HAL_SPI_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 236 | #include "stm32l1xx_hal_spi.h" |
Kojto | 90:cb3d968589d8 | 237 | #endif /* HAL_SPI_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 238 | |
Kojto | 90:cb3d968589d8 | 239 | #ifdef HAL_TIM_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 240 | #include "stm32l1xx_hal_tim.h" |
Kojto | 90:cb3d968589d8 | 241 | #endif /* HAL_TIM_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 242 | |
Kojto | 90:cb3d968589d8 | 243 | #ifdef HAL_UART_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 244 | #include "stm32l1xx_hal_uart.h" |
Kojto | 90:cb3d968589d8 | 245 | #endif /* HAL_UART_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 246 | |
Kojto | 90:cb3d968589d8 | 247 | #ifdef HAL_USART_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 248 | #include "stm32l1xx_hal_usart.h" |
Kojto | 90:cb3d968589d8 | 249 | #endif /* HAL_USART_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 250 | |
Kojto | 90:cb3d968589d8 | 251 | #ifdef HAL_IRDA_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 252 | #include "stm32l1xx_hal_irda.h" |
Kojto | 90:cb3d968589d8 | 253 | #endif /* HAL_IRDA_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 254 | |
Kojto | 90:cb3d968589d8 | 255 | #ifdef HAL_SMARTCARD_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 256 | #include "stm32l1xx_hal_smartcard.h" |
Kojto | 90:cb3d968589d8 | 257 | #endif /* HAL_SMARTCARD_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 258 | |
Kojto | 90:cb3d968589d8 | 259 | #ifdef HAL_WWDG_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 260 | #include "stm32l1xx_hal_wwdg.h" |
Kojto | 90:cb3d968589d8 | 261 | #endif /* HAL_WWDG_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 262 | |
Kojto | 90:cb3d968589d8 | 263 | #ifdef HAL_PCD_MODULE_ENABLED |
Kojto | 90:cb3d968589d8 | 264 | #include "stm32l1xx_hal_pcd.h" |
Kojto | 90:cb3d968589d8 | 265 | #endif /* HAL_PCD_MODULE_ENABLED */ |
Kojto | 90:cb3d968589d8 | 266 | |
Kojto | 90:cb3d968589d8 | 267 | /* Exported macro ------------------------------------------------------------*/ |
Kojto | 90:cb3d968589d8 | 268 | #ifdef USE_FULL_ASSERT |
Kojto | 90:cb3d968589d8 | 269 | /** |
Kojto | 90:cb3d968589d8 | 270 | * @brief The assert_param macro is used for function's parameters check. |
Kojto | 90:cb3d968589d8 | 271 | * @param expr: If expr is false, it calls assert_failed function |
Kojto | 90:cb3d968589d8 | 272 | * which reports the name of the source file and the source |
Kojto | 90:cb3d968589d8 | 273 | * line number of the call that failed. |
Kojto | 90:cb3d968589d8 | 274 | * If expr is true, it returns no value. |
Kojto | 90:cb3d968589d8 | 275 | * @retval None |
Kojto | 90:cb3d968589d8 | 276 | */ |
Kojto | 90:cb3d968589d8 | 277 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__)) |
Kojto | 90:cb3d968589d8 | 278 | /* Exported functions ------------------------------------------------------- */ |
Kojto | 90:cb3d968589d8 | 279 | void assert_failed(uint8_t* file, uint32_t line); |
Kojto | 90:cb3d968589d8 | 280 | #else |
Kojto | 90:cb3d968589d8 | 281 | #define assert_param(expr) ((void)0) |
Kojto | 90:cb3d968589d8 | 282 | #endif /* USE_FULL_ASSERT */ |
Kojto | 90:cb3d968589d8 | 283 | |
Kojto | 90:cb3d968589d8 | 284 | #ifdef __cplusplus |
Kojto | 90:cb3d968589d8 | 285 | } |
Kojto | 90:cb3d968589d8 | 286 | #endif |
Kojto | 90:cb3d968589d8 | 287 | |
Kojto | 90:cb3d968589d8 | 288 | #endif /* __STM32L1xx_HAL_CONF_H */ |
Kojto | 90:cb3d968589d8 | 289 | |
Kojto | 90:cb3d968589d8 | 290 | |
Kojto | 90:cb3d968589d8 | 291 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |