Very slightly modified from original
Fork of GYRO_DISCO_L476VG by
stm32l4xx_hal_conf.h@1:504155ed5862, 2016-02-13 (annotated)
- Committer:
- flowh
- Date:
- Sat Feb 13 14:28:56 2016 +0000
- Revision:
- 1:504155ed5862
for moth logger 2.1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
flowh | 1:504155ed5862 | 1 | /** |
flowh | 1:504155ed5862 | 2 | ****************************************************************************** |
flowh | 1:504155ed5862 | 3 | * @file stm32l4xx_hal_conf.h |
flowh | 1:504155ed5862 | 4 | * @author MCD Application Team |
flowh | 1:504155ed5862 | 5 | * @version V1.2.0 |
flowh | 1:504155ed5862 | 6 | * @date 25-November-2015 |
flowh | 1:504155ed5862 | 7 | * @brief HAL configuration file. |
flowh | 1:504155ed5862 | 8 | ****************************************************************************** |
flowh | 1:504155ed5862 | 9 | * @attention |
flowh | 1:504155ed5862 | 10 | * |
flowh | 1:504155ed5862 | 11 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
flowh | 1:504155ed5862 | 12 | * |
flowh | 1:504155ed5862 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
flowh | 1:504155ed5862 | 14 | * are permitted provided that the following conditions are met: |
flowh | 1:504155ed5862 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
flowh | 1:504155ed5862 | 16 | * this list of conditions and the following disclaimer. |
flowh | 1:504155ed5862 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
flowh | 1:504155ed5862 | 18 | * this list of conditions and the following disclaimer in the documentation |
flowh | 1:504155ed5862 | 19 | * and/or other materials provided with the distribution. |
flowh | 1:504155ed5862 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
flowh | 1:504155ed5862 | 21 | * may be used to endorse or promote products derived from this software |
flowh | 1:504155ed5862 | 22 | * without specific prior written permission. |
flowh | 1:504155ed5862 | 23 | * |
flowh | 1:504155ed5862 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
flowh | 1:504155ed5862 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
flowh | 1:504155ed5862 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
flowh | 1:504155ed5862 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
flowh | 1:504155ed5862 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
flowh | 1:504155ed5862 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
flowh | 1:504155ed5862 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
flowh | 1:504155ed5862 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
flowh | 1:504155ed5862 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
flowh | 1:504155ed5862 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
flowh | 1:504155ed5862 | 34 | * |
flowh | 1:504155ed5862 | 35 | ****************************************************************************** |
flowh | 1:504155ed5862 | 36 | */ |
flowh | 1:504155ed5862 | 37 | |
flowh | 1:504155ed5862 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
flowh | 1:504155ed5862 | 39 | #ifndef __STM32L4xx_HAL_CONF_H |
flowh | 1:504155ed5862 | 40 | #define __STM32L4xx_HAL_CONF_H |
flowh | 1:504155ed5862 | 41 | |
flowh | 1:504155ed5862 | 42 | #ifdef __cplusplus |
flowh | 1:504155ed5862 | 43 | extern "C" { |
flowh | 1:504155ed5862 | 44 | #endif |
flowh | 1:504155ed5862 | 45 | |
flowh | 1:504155ed5862 | 46 | /* Exported types ------------------------------------------------------------*/ |
flowh | 1:504155ed5862 | 47 | /* Exported constants --------------------------------------------------------*/ |
flowh | 1:504155ed5862 | 48 | |
flowh | 1:504155ed5862 | 49 | /* ########################## Module Selection ############################## */ |
flowh | 1:504155ed5862 | 50 | /** |
flowh | 1:504155ed5862 | 51 | * @brief This is the list of modules to be used in the HAL driver |
flowh | 1:504155ed5862 | 52 | */ |
flowh | 1:504155ed5862 | 53 | #define HAL_MODULE_ENABLED |
flowh | 1:504155ed5862 | 54 | /* #define HAL_ADC_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 55 | /* #define HAL_CAN_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 56 | /* #define HAL_COMP_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 57 | #define HAL_CORTEX_MODULE_ENABLED |
flowh | 1:504155ed5862 | 58 | /* #define HAL_CRC_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 59 | /* #define HAL_CRYP_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 60 | /* #define HAL_DAC_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 61 | /* #define HAL_DFSDM_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 62 | /* #define HAL_DMA_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 63 | /* #define HAL_FIREWALL_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 64 | #define HAL_FLASH_MODULE_ENABLED |
flowh | 1:504155ed5862 | 65 | /* #define HAL_HCD_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 66 | /* #define HAL_NAND_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 67 | /* #define HAL_NOR_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 68 | /* #define HAL_SRAM_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 69 | #define HAL_GPIO_MODULE_ENABLED |
flowh | 1:504155ed5862 | 70 | /* #define HAL_I2C_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 71 | /* #define HAL_IRDA_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 72 | /* #define HAL_IWDG_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 73 | /* #define HAL_LCD_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 74 | /* #define HAL_LPTIM_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 75 | /* #define HAL_OPAMP_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 76 | /* #define HAL_PCD_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 77 | #define HAL_PWR_MODULE_ENABLED |
flowh | 1:504155ed5862 | 78 | /* #define HAL_QSPI_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 79 | #define HAL_RCC_MODULE_ENABLED |
flowh | 1:504155ed5862 | 80 | /* #define HAL_RNG_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 81 | /* #define HAL_RTC_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 82 | /* #define HAL_SAI_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 83 | /* #define HAL_SD_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 84 | /* #define HAL_SMARTCARD_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 85 | /* #define HAL_SMBUS_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 86 | /* #define HAL_SPI_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 87 | /* #define HAL_SWPMI_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 88 | /* #define HAL_TIM_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 89 | /* #define HAL_TSC_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 90 | /* #define HAL_UART_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 91 | /* #define HAL_USART_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 92 | /* #define HAL_WWDG_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 93 | |
flowh | 1:504155ed5862 | 94 | |
flowh | 1:504155ed5862 | 95 | /* ########################## Oscillator Values adaptation ####################*/ |
flowh | 1:504155ed5862 | 96 | /** |
flowh | 1:504155ed5862 | 97 | * @brief Adjust the value of External High Speed oscillator (HSE) used in your application. |
flowh | 1:504155ed5862 | 98 | * This value is used by the RCC HAL module to compute the system frequency |
flowh | 1:504155ed5862 | 99 | * (when HSE is used as system clock source, directly or through the PLL). |
flowh | 1:504155ed5862 | 100 | */ |
flowh | 1:504155ed5862 | 101 | #if !defined (HSE_VALUE) |
flowh | 1:504155ed5862 | 102 | #define HSE_VALUE ((uint32_t)8000000) /*!< Value of the External oscillator in Hz */ |
flowh | 1:504155ed5862 | 103 | #endif /* HSE_VALUE */ |
flowh | 1:504155ed5862 | 104 | |
flowh | 1:504155ed5862 | 105 | #if !defined (HSE_STARTUP_TIMEOUT) |
flowh | 1:504155ed5862 | 106 | #define HSE_STARTUP_TIMEOUT ((uint32_t)100) /*!< Time out for HSE start up, in ms */ |
flowh | 1:504155ed5862 | 107 | #endif /* HSE_STARTUP_TIMEOUT */ |
flowh | 1:504155ed5862 | 108 | |
flowh | 1:504155ed5862 | 109 | /** |
flowh | 1:504155ed5862 | 110 | * @brief Internal Multiple Speed oscillator (MSI) default value. |
flowh | 1:504155ed5862 | 111 | * This value is the default MSI range value after Reset. |
flowh | 1:504155ed5862 | 112 | */ |
flowh | 1:504155ed5862 | 113 | #if !defined (MSI_VALUE) |
flowh | 1:504155ed5862 | 114 | #define MSI_VALUE ((uint32_t)4000000) /*!< Value of the Internal oscillator in Hz*/ |
flowh | 1:504155ed5862 | 115 | #endif /* MSI_VALUE */ |
flowh | 1:504155ed5862 | 116 | |
flowh | 1:504155ed5862 | 117 | /** |
flowh | 1:504155ed5862 | 118 | * @brief Internal High Speed oscillator (HSI) value. |
flowh | 1:504155ed5862 | 119 | * This value is used by the RCC HAL module to compute the system frequency |
flowh | 1:504155ed5862 | 120 | * (when HSI is used as system clock source, directly or through the PLL). |
flowh | 1:504155ed5862 | 121 | */ |
flowh | 1:504155ed5862 | 122 | #if !defined (HSI_VALUE) |
flowh | 1:504155ed5862 | 123 | #define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/ |
flowh | 1:504155ed5862 | 124 | #endif /* HSI_VALUE */ |
flowh | 1:504155ed5862 | 125 | |
flowh | 1:504155ed5862 | 126 | /** |
flowh | 1:504155ed5862 | 127 | * @brief Internal Low Speed oscillator (LSI) value. |
flowh | 1:504155ed5862 | 128 | */ |
flowh | 1:504155ed5862 | 129 | #if !defined (LSI_VALUE) |
flowh | 1:504155ed5862 | 130 | #define LSI_VALUE ((uint32_t)32000) /*!< LSI Typical Value in Hz*/ |
flowh | 1:504155ed5862 | 131 | #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz |
flowh | 1:504155ed5862 | 132 | The real value may vary depending on the variations |
flowh | 1:504155ed5862 | 133 | in voltage and temperature.*/ |
flowh | 1:504155ed5862 | 134 | /** |
flowh | 1:504155ed5862 | 135 | * @brief External Low Speed oscillator (LSE) value. |
flowh | 1:504155ed5862 | 136 | * This value is used by the UART, RTC HAL module to compute the system frequency |
flowh | 1:504155ed5862 | 137 | */ |
flowh | 1:504155ed5862 | 138 | #if !defined (LSE_VALUE) |
flowh | 1:504155ed5862 | 139 | #define LSE_VALUE ((uint32_t)32768) /*!< Value of the External oscillator in Hz*/ |
flowh | 1:504155ed5862 | 140 | #endif /* LSE_VALUE */ |
flowh | 1:504155ed5862 | 141 | |
flowh | 1:504155ed5862 | 142 | #if !defined (LSE_STARTUP_TIMEOUT) |
flowh | 1:504155ed5862 | 143 | #define LSE_STARTUP_TIMEOUT ((uint32_t)5000) /*!< Time out for LSE start up, in ms */ |
flowh | 1:504155ed5862 | 144 | #endif /* HSE_STARTUP_TIMEOUT */ |
flowh | 1:504155ed5862 | 145 | |
flowh | 1:504155ed5862 | 146 | /** |
flowh | 1:504155ed5862 | 147 | * @brief External clock source for SAI1 peripheral |
flowh | 1:504155ed5862 | 148 | * This value is used by the RCC HAL module to compute the SAI1 & SAI2 clock source |
flowh | 1:504155ed5862 | 149 | * frequency. |
flowh | 1:504155ed5862 | 150 | */ |
flowh | 1:504155ed5862 | 151 | #if !defined (EXTERNAL_SAI1_CLOCK_VALUE) |
flowh | 1:504155ed5862 | 152 | #define EXTERNAL_SAI1_CLOCK_VALUE ((uint32_t)48000) /*!< Value of the SAI1 External clock source in Hz*/ |
flowh | 1:504155ed5862 | 153 | #endif /* EXTERNAL_SAI1_CLOCK_VALUE */ |
flowh | 1:504155ed5862 | 154 | |
flowh | 1:504155ed5862 | 155 | /** |
flowh | 1:504155ed5862 | 156 | * @brief External clock source for SAI2 peripheral |
flowh | 1:504155ed5862 | 157 | * This value is used by the RCC HAL module to compute the SAI1 & SAI2 clock source |
flowh | 1:504155ed5862 | 158 | * frequency. |
flowh | 1:504155ed5862 | 159 | */ |
flowh | 1:504155ed5862 | 160 | #if !defined (EXTERNAL_SAI2_CLOCK_VALUE) |
flowh | 1:504155ed5862 | 161 | #define EXTERNAL_SAI2_CLOCK_VALUE ((uint32_t)48000) /*!< Value of the SAI2 External clock source in Hz*/ |
flowh | 1:504155ed5862 | 162 | #endif /* EXTERNAL_SAI2_CLOCK_VALUE */ |
flowh | 1:504155ed5862 | 163 | |
flowh | 1:504155ed5862 | 164 | /* Tip: To avoid modifying this file each time you need to use different HSE, |
flowh | 1:504155ed5862 | 165 | === you can define the HSE value in your toolchain compiler preprocessor. */ |
flowh | 1:504155ed5862 | 166 | |
flowh | 1:504155ed5862 | 167 | /* ########################### System Configuration ######################### */ |
flowh | 1:504155ed5862 | 168 | /** |
flowh | 1:504155ed5862 | 169 | * @brief This is the HAL system configuration section |
flowh | 1:504155ed5862 | 170 | */ |
flowh | 1:504155ed5862 | 171 | #define VDD_VALUE ((uint32_t)3300) /*!< Value of VDD in mv */ |
flowh | 1:504155ed5862 | 172 | #define TICK_INT_PRIORITY ((uint32_t)0x0F) /*!< tick interrupt priority */ |
flowh | 1:504155ed5862 | 173 | #define USE_RTOS 0 |
flowh | 1:504155ed5862 | 174 | #define PREFETCH_ENABLE 0 |
flowh | 1:504155ed5862 | 175 | #define INSTRUCTION_CACHE_ENABLE 1 |
flowh | 1:504155ed5862 | 176 | #define DATA_CACHE_ENABLE 1 |
flowh | 1:504155ed5862 | 177 | |
flowh | 1:504155ed5862 | 178 | /* ########################## Assert Selection ############################## */ |
flowh | 1:504155ed5862 | 179 | /** |
flowh | 1:504155ed5862 | 180 | * @brief Uncomment the line below to expanse the "assert_param" macro in the |
flowh | 1:504155ed5862 | 181 | * HAL drivers code |
flowh | 1:504155ed5862 | 182 | */ |
flowh | 1:504155ed5862 | 183 | /* #define USE_FULL_ASSERT 1 */ |
flowh | 1:504155ed5862 | 184 | |
flowh | 1:504155ed5862 | 185 | /* Includes ------------------------------------------------------------------*/ |
flowh | 1:504155ed5862 | 186 | /** |
flowh | 1:504155ed5862 | 187 | * @brief Include module's header file |
flowh | 1:504155ed5862 | 188 | */ |
flowh | 1:504155ed5862 | 189 | |
flowh | 1:504155ed5862 | 190 | #ifdef HAL_RCC_MODULE_ENABLED |
flowh | 1:504155ed5862 | 191 | #include "stm32l4xx_hal_rcc.h" |
flowh | 1:504155ed5862 | 192 | #endif /* HAL_RCC_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 193 | |
flowh | 1:504155ed5862 | 194 | #ifdef HAL_GPIO_MODULE_ENABLED |
flowh | 1:504155ed5862 | 195 | #include "stm32l4xx_hal_gpio.h" |
flowh | 1:504155ed5862 | 196 | #endif /* HAL_GPIO_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 197 | |
flowh | 1:504155ed5862 | 198 | #ifdef HAL_DMA_MODULE_ENABLED |
flowh | 1:504155ed5862 | 199 | #include "stm32l4xx_hal_dma.h" |
flowh | 1:504155ed5862 | 200 | #endif /* HAL_DMA_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 201 | |
flowh | 1:504155ed5862 | 202 | #ifdef HAL_DFSDM_MODULE_ENABLED |
flowh | 1:504155ed5862 | 203 | #include "stm32l4xx_hal_dfsdm.h" |
flowh | 1:504155ed5862 | 204 | #endif /* HAL_DFSDM_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 205 | |
flowh | 1:504155ed5862 | 206 | #ifdef HAL_CORTEX_MODULE_ENABLED |
flowh | 1:504155ed5862 | 207 | #include "stm32l4xx_hal_cortex.h" |
flowh | 1:504155ed5862 | 208 | #endif /* HAL_CORTEX_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 209 | |
flowh | 1:504155ed5862 | 210 | #ifdef HAL_ADC_MODULE_ENABLED |
flowh | 1:504155ed5862 | 211 | #include "stm32l4xx_hal_adc.h" |
flowh | 1:504155ed5862 | 212 | #endif /* HAL_ADC_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 213 | |
flowh | 1:504155ed5862 | 214 | #ifdef HAL_CAN_MODULE_ENABLED |
flowh | 1:504155ed5862 | 215 | #include "stm32l4xx_hal_can.h" |
flowh | 1:504155ed5862 | 216 | #endif /* HAL_CAN_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 217 | |
flowh | 1:504155ed5862 | 218 | #ifdef HAL_COMP_MODULE_ENABLED |
flowh | 1:504155ed5862 | 219 | #include "stm32l4xx_hal_comp.h" |
flowh | 1:504155ed5862 | 220 | #endif /* HAL_COMP_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 221 | |
flowh | 1:504155ed5862 | 222 | #ifdef HAL_CRC_MODULE_ENABLED |
flowh | 1:504155ed5862 | 223 | #include "stm32l4xx_hal_crc.h" |
flowh | 1:504155ed5862 | 224 | #endif /* HAL_CRC_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 225 | |
flowh | 1:504155ed5862 | 226 | #ifdef HAL_CRYP_MODULE_ENABLED |
flowh | 1:504155ed5862 | 227 | #include "stm32l4xx_hal_cryp.h" |
flowh | 1:504155ed5862 | 228 | #endif /* HAL_CRYP_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 229 | |
flowh | 1:504155ed5862 | 230 | #ifdef HAL_DAC_MODULE_ENABLED |
flowh | 1:504155ed5862 | 231 | #include "stm32l4xx_hal_dac.h" |
flowh | 1:504155ed5862 | 232 | #endif /* HAL_DAC_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 233 | |
flowh | 1:504155ed5862 | 234 | #ifdef HAL_FIREWALL_MODULE_ENABLED |
flowh | 1:504155ed5862 | 235 | #include "stm32l4xx_hal_firewall.h" |
flowh | 1:504155ed5862 | 236 | #endif /* HAL_FIREWALL_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 237 | |
flowh | 1:504155ed5862 | 238 | #ifdef HAL_FLASH_MODULE_ENABLED |
flowh | 1:504155ed5862 | 239 | #include "stm32l4xx_hal_flash.h" |
flowh | 1:504155ed5862 | 240 | #endif /* HAL_FLASH_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 241 | |
flowh | 1:504155ed5862 | 242 | #ifdef HAL_SRAM_MODULE_ENABLED |
flowh | 1:504155ed5862 | 243 | #include "stm32l4xx_hal_sram.h" |
flowh | 1:504155ed5862 | 244 | #endif /* HAL_SRAM_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 245 | |
flowh | 1:504155ed5862 | 246 | #ifdef HAL_NOR_MODULE_ENABLED |
flowh | 1:504155ed5862 | 247 | #include "stm32l4xx_hal_nor.h" |
flowh | 1:504155ed5862 | 248 | #endif /* HAL_NOR_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 249 | |
flowh | 1:504155ed5862 | 250 | #ifdef HAL_NAND_MODULE_ENABLED |
flowh | 1:504155ed5862 | 251 | #include "stm32l4xx_hal_nand.h" |
flowh | 1:504155ed5862 | 252 | #endif /* HAL_NAND_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 253 | |
flowh | 1:504155ed5862 | 254 | #ifdef HAL_I2C_MODULE_ENABLED |
flowh | 1:504155ed5862 | 255 | #include "stm32l4xx_hal_i2c.h" |
flowh | 1:504155ed5862 | 256 | #endif /* HAL_I2C_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 257 | |
flowh | 1:504155ed5862 | 258 | #ifdef HAL_IWDG_MODULE_ENABLED |
flowh | 1:504155ed5862 | 259 | #include "stm32l4xx_hal_iwdg.h" |
flowh | 1:504155ed5862 | 260 | #endif /* HAL_IWDG_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 261 | |
flowh | 1:504155ed5862 | 262 | #ifdef HAL_LCD_MODULE_ENABLED |
flowh | 1:504155ed5862 | 263 | #include "stm32l4xx_hal_lcd.h" |
flowh | 1:504155ed5862 | 264 | #endif /* HAL_LCD_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 265 | |
flowh | 1:504155ed5862 | 266 | #ifdef HAL_LPTIM_MODULE_ENABLED |
flowh | 1:504155ed5862 | 267 | #include "stm32l4xx_hal_lptim.h" |
flowh | 1:504155ed5862 | 268 | #endif /* HAL_LPTIM_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 269 | |
flowh | 1:504155ed5862 | 270 | #ifdef HAL_OPAMP_MODULE_ENABLED |
flowh | 1:504155ed5862 | 271 | #include "stm32l4xx_hal_opamp.h" |
flowh | 1:504155ed5862 | 272 | #endif /* HAL_OPAMP_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 273 | |
flowh | 1:504155ed5862 | 274 | #ifdef HAL_PWR_MODULE_ENABLED |
flowh | 1:504155ed5862 | 275 | #include "stm32l4xx_hal_pwr.h" |
flowh | 1:504155ed5862 | 276 | #endif /* HAL_PWR_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 277 | |
flowh | 1:504155ed5862 | 278 | #ifdef HAL_QSPI_MODULE_ENABLED |
flowh | 1:504155ed5862 | 279 | #include "stm32l4xx_hal_qspi.h" |
flowh | 1:504155ed5862 | 280 | #endif /* HAL_QSPI_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 281 | |
flowh | 1:504155ed5862 | 282 | #ifdef HAL_RNG_MODULE_ENABLED |
flowh | 1:504155ed5862 | 283 | #include "stm32l4xx_hal_rng.h" |
flowh | 1:504155ed5862 | 284 | #endif /* HAL_RNG_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 285 | |
flowh | 1:504155ed5862 | 286 | #ifdef HAL_RTC_MODULE_ENABLED |
flowh | 1:504155ed5862 | 287 | #include "stm32l4xx_hal_rtc.h" |
flowh | 1:504155ed5862 | 288 | #endif /* HAL_RTC_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 289 | |
flowh | 1:504155ed5862 | 290 | #ifdef HAL_SAI_MODULE_ENABLED |
flowh | 1:504155ed5862 | 291 | #include "stm32l4xx_hal_sai.h" |
flowh | 1:504155ed5862 | 292 | #endif /* HAL_SAI_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 293 | |
flowh | 1:504155ed5862 | 294 | #ifdef HAL_SD_MODULE_ENABLED |
flowh | 1:504155ed5862 | 295 | #include "stm32l4xx_hal_sd.h" |
flowh | 1:504155ed5862 | 296 | #endif /* HAL_SD_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 297 | |
flowh | 1:504155ed5862 | 298 | #ifdef HAL_SMBUS_MODULE_ENABLED |
flowh | 1:504155ed5862 | 299 | #include "stm32l4xx_hal_smbus.h" |
flowh | 1:504155ed5862 | 300 | #endif /* HAL_SMBUS_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 301 | |
flowh | 1:504155ed5862 | 302 | #ifdef HAL_SPI_MODULE_ENABLED |
flowh | 1:504155ed5862 | 303 | #include "stm32l4xx_hal_spi.h" |
flowh | 1:504155ed5862 | 304 | #endif /* HAL_SPI_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 305 | |
flowh | 1:504155ed5862 | 306 | #ifdef HAL_SWPMI_MODULE_ENABLED |
flowh | 1:504155ed5862 | 307 | #include "stm32l4xx_hal_swpmi.h" |
flowh | 1:504155ed5862 | 308 | #endif /* HAL_SWPMI_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 309 | |
flowh | 1:504155ed5862 | 310 | #ifdef HAL_TIM_MODULE_ENABLED |
flowh | 1:504155ed5862 | 311 | #include "stm32l4xx_hal_tim.h" |
flowh | 1:504155ed5862 | 312 | #endif /* HAL_TIM_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 313 | |
flowh | 1:504155ed5862 | 314 | #ifdef HAL_TSC_MODULE_ENABLED |
flowh | 1:504155ed5862 | 315 | #include "stm32l4xx_hal_tsc.h" |
flowh | 1:504155ed5862 | 316 | #endif /* HAL_TSC_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 317 | |
flowh | 1:504155ed5862 | 318 | #ifdef HAL_UART_MODULE_ENABLED |
flowh | 1:504155ed5862 | 319 | #include "stm32l4xx_hal_uart.h" |
flowh | 1:504155ed5862 | 320 | #endif /* HAL_UART_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 321 | |
flowh | 1:504155ed5862 | 322 | #ifdef HAL_USART_MODULE_ENABLED |
flowh | 1:504155ed5862 | 323 | #include "stm32l4xx_hal_usart.h" |
flowh | 1:504155ed5862 | 324 | #endif /* HAL_USART_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 325 | |
flowh | 1:504155ed5862 | 326 | #ifdef HAL_IRDA_MODULE_ENABLED |
flowh | 1:504155ed5862 | 327 | #include "stm32l4xx_hal_irda.h" |
flowh | 1:504155ed5862 | 328 | #endif /* HAL_IRDA_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 329 | |
flowh | 1:504155ed5862 | 330 | #ifdef HAL_SMARTCARD_MODULE_ENABLED |
flowh | 1:504155ed5862 | 331 | #include "stm32l4xx_hal_smartcard.h" |
flowh | 1:504155ed5862 | 332 | #endif /* HAL_SMARTCARD_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 333 | |
flowh | 1:504155ed5862 | 334 | #ifdef HAL_WWDG_MODULE_ENABLED |
flowh | 1:504155ed5862 | 335 | #include "stm32l4xx_hal_wwdg.h" |
flowh | 1:504155ed5862 | 336 | #endif /* HAL_WWDG_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 337 | |
flowh | 1:504155ed5862 | 338 | #ifdef HAL_PCD_MODULE_ENABLED |
flowh | 1:504155ed5862 | 339 | #include "stm32l4xx_hal_pcd.h" |
flowh | 1:504155ed5862 | 340 | #endif /* HAL_PCD_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 341 | |
flowh | 1:504155ed5862 | 342 | #ifdef HAL_HCD_MODULE_ENABLED |
flowh | 1:504155ed5862 | 343 | #include "stm32l4xx_hal_hcd.h" |
flowh | 1:504155ed5862 | 344 | #endif /* HAL_HCD_MODULE_ENABLED */ |
flowh | 1:504155ed5862 | 345 | |
flowh | 1:504155ed5862 | 346 | /* Exported macro ------------------------------------------------------------*/ |
flowh | 1:504155ed5862 | 347 | #ifdef USE_FULL_ASSERT |
flowh | 1:504155ed5862 | 348 | /** |
flowh | 1:504155ed5862 | 349 | * @brief The assert_param macro is used for function's parameters check. |
flowh | 1:504155ed5862 | 350 | * @param expr: If expr is false, it calls assert_failed function |
flowh | 1:504155ed5862 | 351 | * which reports the name of the source file and the source |
flowh | 1:504155ed5862 | 352 | * line number of the call that failed. |
flowh | 1:504155ed5862 | 353 | * If expr is true, it returns no value. |
flowh | 1:504155ed5862 | 354 | * @retval None |
flowh | 1:504155ed5862 | 355 | */ |
flowh | 1:504155ed5862 | 356 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__)) |
flowh | 1:504155ed5862 | 357 | /* Exported functions ------------------------------------------------------- */ |
flowh | 1:504155ed5862 | 358 | void assert_failed(uint8_t* file, uint32_t line); |
flowh | 1:504155ed5862 | 359 | #else |
flowh | 1:504155ed5862 | 360 | #define assert_param(expr) ((void)0) |
flowh | 1:504155ed5862 | 361 | #endif /* USE_FULL_ASSERT */ |
flowh | 1:504155ed5862 | 362 | |
flowh | 1:504155ed5862 | 363 | #ifdef __cplusplus |
flowh | 1:504155ed5862 | 364 | } |
flowh | 1:504155ed5862 | 365 | #endif |
flowh | 1:504155ed5862 | 366 | |
flowh | 1:504155ed5862 | 367 | #endif /* __STM32L4xx_HAL_CONF_H */ |
flowh | 1:504155ed5862 | 368 | |
flowh | 1:504155ed5862 | 369 | |
flowh | 1:504155ed5862 | 370 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
flowh | 1:504155ed5862 | 371 |