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