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