1*6b8177c5SMatthias Ringwald /** 2*6b8177c5SMatthias Ringwald ****************************************************************************** 3*6b8177c5SMatthias Ringwald * @file stm32l4xx_hal_conf.h 4*6b8177c5SMatthias Ringwald * @author MCD Application Team 5*6b8177c5SMatthias Ringwald * @brief HAL configuration template file. 6*6b8177c5SMatthias Ringwald * This file should be copied to the application folder and renamed 7*6b8177c5SMatthias Ringwald * to stm32l4xx_hal_conf.h. 8*6b8177c5SMatthias Ringwald ****************************************************************************** 9*6b8177c5SMatthias Ringwald * @attention 10*6b8177c5SMatthias Ringwald * 11*6b8177c5SMatthias Ringwald * <h2><center>© Copyright (c) 2017 STMicroelectronics. 12*6b8177c5SMatthias Ringwald * All rights reserved.</center></h2> 13*6b8177c5SMatthias Ringwald * 14*6b8177c5SMatthias Ringwald * This software component is licensed by ST under BSD 3-Clause license, 15*6b8177c5SMatthias Ringwald * the "License"; You may not use this file except in compliance with the 16*6b8177c5SMatthias Ringwald * License. You may obtain a copy of the License at: 17*6b8177c5SMatthias Ringwald * opensource.org/licenses/BSD-3-Clause 18*6b8177c5SMatthias Ringwald * 19*6b8177c5SMatthias Ringwald ****************************************************************************** 20*6b8177c5SMatthias Ringwald */ 21*6b8177c5SMatthias Ringwald 22*6b8177c5SMatthias Ringwald /* Define to prevent recursive inclusion -------------------------------------*/ 23*6b8177c5SMatthias Ringwald #ifndef STM32L4xx_HAL_CONF_H 24*6b8177c5SMatthias Ringwald #define STM32L4xx_HAL_CONF_H 25*6b8177c5SMatthias Ringwald 26*6b8177c5SMatthias Ringwald #ifdef __cplusplus 27*6b8177c5SMatthias Ringwald extern "C" { 28*6b8177c5SMatthias Ringwald #endif 29*6b8177c5SMatthias Ringwald 30*6b8177c5SMatthias Ringwald /* Exported types ------------------------------------------------------------*/ 31*6b8177c5SMatthias Ringwald /* Exported constants --------------------------------------------------------*/ 32*6b8177c5SMatthias Ringwald 33*6b8177c5SMatthias Ringwald /* ########################## Module Selection ############################## */ 34*6b8177c5SMatthias Ringwald /** 35*6b8177c5SMatthias Ringwald * @brief This is the list of modules to be used in the HAL driver 36*6b8177c5SMatthias Ringwald */ 37*6b8177c5SMatthias Ringwald #define HAL_MODULE_ENABLED 38*6b8177c5SMatthias Ringwald /*#define HAL_ADC_MODULE_ENABLED */ 39*6b8177c5SMatthias Ringwald /*#define HAL_CRYP_MODULE_ENABLED */ 40*6b8177c5SMatthias Ringwald /*#define HAL_CAN_MODULE_ENABLED */ 41*6b8177c5SMatthias Ringwald /*#define HAL_COMP_MODULE_ENABLED */ 42*6b8177c5SMatthias Ringwald /*#define HAL_CRC_MODULE_ENABLED */ 43*6b8177c5SMatthias Ringwald /*#define HAL_CRYP_MODULE_ENABLED */ 44*6b8177c5SMatthias Ringwald /*#define HAL_DAC_MODULE_ENABLED */ 45*6b8177c5SMatthias Ringwald /*#define HAL_DCMI_MODULE_ENABLED */ 46*6b8177c5SMatthias Ringwald /*#define HAL_DMA2D_MODULE_ENABLED */ 47*6b8177c5SMatthias Ringwald /*#define HAL_DFSDM_MODULE_ENABLED */ 48*6b8177c5SMatthias Ringwald /*#define HAL_DSI_MODULE_ENABLED */ 49*6b8177c5SMatthias Ringwald /*#define HAL_FIREWALL_MODULE_ENABLED */ 50*6b8177c5SMatthias Ringwald /*#define HAL_GFXMMU_MODULE_ENABLED */ 51*6b8177c5SMatthias Ringwald /*#define HAL_HCD_MODULE_ENABLED */ 52*6b8177c5SMatthias Ringwald /*#define HAL_HASH_MODULE_ENABLED */ 53*6b8177c5SMatthias Ringwald /*#define HAL_I2S_MODULE_ENABLED */ 54*6b8177c5SMatthias Ringwald /*#define HAL_IRDA_MODULE_ENABLED */ 55*6b8177c5SMatthias Ringwald /*#define HAL_IWDG_MODULE_ENABLED */ 56*6b8177c5SMatthias Ringwald /*#define HAL_LTDC_MODULE_ENABLED */ 57*6b8177c5SMatthias Ringwald /*#define HAL_LCD_MODULE_ENABLED */ 58*6b8177c5SMatthias Ringwald #define HAL_LPTIM_MODULE_ENABLED 59*6b8177c5SMatthias Ringwald /*#define HAL_MMC_MODULE_ENABLED */ 60*6b8177c5SMatthias Ringwald /*#define HAL_NAND_MODULE_ENABLED */ 61*6b8177c5SMatthias Ringwald /*#define HAL_NOR_MODULE_ENABLED */ 62*6b8177c5SMatthias Ringwald /*#define HAL_OPAMP_MODULE_ENABLED */ 63*6b8177c5SMatthias Ringwald /*#define HAL_OSPI_MODULE_ENABLED */ 64*6b8177c5SMatthias Ringwald /*#define HAL_OSPI_MODULE_ENABLED */ 65*6b8177c5SMatthias Ringwald /*#define HAL_PCD_MODULE_ENABLED */ 66*6b8177c5SMatthias Ringwald /*#define HAL_PKA_MODULE_ENABLED */ 67*6b8177c5SMatthias Ringwald /*#define HAL_QSPI_MODULE_ENABLED */ 68*6b8177c5SMatthias Ringwald /*#define HAL_QSPI_MODULE_ENABLED */ 69*6b8177c5SMatthias Ringwald /*#define HAL_RNG_MODULE_ENABLED */ 70*6b8177c5SMatthias Ringwald /*#define HAL_RTC_MODULE_ENABLED */ 71*6b8177c5SMatthias Ringwald /*#define HAL_SAI_MODULE_ENABLED */ 72*6b8177c5SMatthias Ringwald /*#define HAL_SD_MODULE_ENABLED */ 73*6b8177c5SMatthias Ringwald /*#define HAL_SMBUS_MODULE_ENABLED */ 74*6b8177c5SMatthias Ringwald /*#define HAL_SMARTCARD_MODULE_ENABLED */ 75*6b8177c5SMatthias Ringwald #define HAL_SPI_MODULE_ENABLED 76*6b8177c5SMatthias Ringwald /*#define HAL_SRAM_MODULE_ENABLED */ 77*6b8177c5SMatthias Ringwald /*#define HAL_SWPMI_MODULE_ENABLED */ 78*6b8177c5SMatthias Ringwald /*#define HAL_TIM_MODULE_ENABLED */ 79*6b8177c5SMatthias Ringwald /*#define HAL_TSC_MODULE_ENABLED */ 80*6b8177c5SMatthias Ringwald #define HAL_UART_MODULE_ENABLED 81*6b8177c5SMatthias Ringwald /*#define HAL_USART_MODULE_ENABLED */ 82*6b8177c5SMatthias Ringwald /*#define HAL_WWDG_MODULE_ENABLED */ 83*6b8177c5SMatthias Ringwald /*#define HAL_EXTI_MODULE_ENABLED */ 84*6b8177c5SMatthias Ringwald /*#define HAL_PSSI_MODULE_ENABLED */ 85*6b8177c5SMatthias Ringwald #define HAL_GPIO_MODULE_ENABLED 86*6b8177c5SMatthias Ringwald #define HAL_EXTI_MODULE_ENABLED 87*6b8177c5SMatthias Ringwald #define HAL_I2C_MODULE_ENABLED 88*6b8177c5SMatthias Ringwald #define HAL_DMA_MODULE_ENABLED 89*6b8177c5SMatthias Ringwald #define HAL_RCC_MODULE_ENABLED 90*6b8177c5SMatthias Ringwald #define HAL_FLASH_MODULE_ENABLED 91*6b8177c5SMatthias Ringwald #define HAL_PWR_MODULE_ENABLED 92*6b8177c5SMatthias Ringwald #define HAL_CORTEX_MODULE_ENABLED 93*6b8177c5SMatthias Ringwald 94*6b8177c5SMatthias Ringwald /* ########################## Oscillator Values adaptation ####################*/ 95*6b8177c5SMatthias Ringwald /** 96*6b8177c5SMatthias Ringwald * @brief Adjust the value of External High Speed oscillator (HSE) used in your application. 97*6b8177c5SMatthias Ringwald * This value is used by the RCC HAL module to compute the system frequency 98*6b8177c5SMatthias Ringwald * (when HSE is used as system clock source, directly or through the PLL). 99*6b8177c5SMatthias Ringwald */ 100*6b8177c5SMatthias Ringwald #if !defined (HSE_VALUE) 101*6b8177c5SMatthias Ringwald #define HSE_VALUE ((uint32_t)8000000U) /*!< Value of the External oscillator in Hz */ 102*6b8177c5SMatthias Ringwald #endif /* HSE_VALUE */ 103*6b8177c5SMatthias Ringwald 104*6b8177c5SMatthias Ringwald #if !defined (HSE_STARTUP_TIMEOUT) 105*6b8177c5SMatthias Ringwald #define HSE_STARTUP_TIMEOUT ((uint32_t)100U) /*!< Time out for HSE start up, in ms */ 106*6b8177c5SMatthias Ringwald #endif /* HSE_STARTUP_TIMEOUT */ 107*6b8177c5SMatthias Ringwald 108*6b8177c5SMatthias Ringwald /** 109*6b8177c5SMatthias Ringwald * @brief Internal Multiple Speed oscillator (MSI) default value. 110*6b8177c5SMatthias Ringwald * This value is the default MSI range value after Reset. 111*6b8177c5SMatthias Ringwald */ 112*6b8177c5SMatthias Ringwald #if !defined (MSI_VALUE) 113*6b8177c5SMatthias Ringwald #define MSI_VALUE ((uint32_t)4000000U) /*!< Value of the Internal oscillator in Hz*/ 114*6b8177c5SMatthias Ringwald #endif /* MSI_VALUE */ 115*6b8177c5SMatthias Ringwald /** 116*6b8177c5SMatthias Ringwald * @brief Internal High Speed oscillator (HSI) value. 117*6b8177c5SMatthias Ringwald * This value is used by the RCC HAL module to compute the system frequency 118*6b8177c5SMatthias Ringwald * (when HSI is used as system clock source, directly or through the PLL). 119*6b8177c5SMatthias Ringwald */ 120*6b8177c5SMatthias Ringwald #if !defined (HSI_VALUE) 121*6b8177c5SMatthias Ringwald #define HSI_VALUE ((uint32_t)16000000U) /*!< Value of the Internal oscillator in Hz*/ 122*6b8177c5SMatthias Ringwald #endif /* HSI_VALUE */ 123*6b8177c5SMatthias Ringwald 124*6b8177c5SMatthias Ringwald /** 125*6b8177c5SMatthias Ringwald * @brief Internal High Speed oscillator (HSI48) value for USB FS, SDMMC and RNG. 126*6b8177c5SMatthias Ringwald * This internal oscillator is mainly dedicated to provide a high precision clock to 127*6b8177c5SMatthias Ringwald * the USB peripheral by means of a special Clock Recovery System (CRS) circuitry. 128*6b8177c5SMatthias Ringwald * When the CRS is not used, the HSI48 RC oscillator runs on it default frequency 129*6b8177c5SMatthias Ringwald * which is subject to manufacturing process variations. 130*6b8177c5SMatthias Ringwald */ 131*6b8177c5SMatthias Ringwald #if !defined (HSI48_VALUE) 132*6b8177c5SMatthias Ringwald #define HSI48_VALUE ((uint32_t)48000000U) /*!< Value of the Internal High Speed oscillator for USB FS/SDMMC/RNG in Hz. 133*6b8177c5SMatthias Ringwald The real value my vary depending on manufacturing process variations.*/ 134*6b8177c5SMatthias Ringwald #endif /* HSI48_VALUE */ 135*6b8177c5SMatthias Ringwald 136*6b8177c5SMatthias Ringwald /** 137*6b8177c5SMatthias Ringwald * @brief Internal Low Speed oscillator (LSI) value. 138*6b8177c5SMatthias Ringwald */ 139*6b8177c5SMatthias Ringwald #if !defined (LSI_VALUE) 140*6b8177c5SMatthias Ringwald #define LSI_VALUE 32000U /*!< LSI Typical Value in Hz*/ 141*6b8177c5SMatthias Ringwald #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz 142*6b8177c5SMatthias Ringwald The real value may vary depending on the variations 143*6b8177c5SMatthias Ringwald in voltage and temperature.*/ 144*6b8177c5SMatthias Ringwald 145*6b8177c5SMatthias Ringwald /** 146*6b8177c5SMatthias Ringwald * @brief External Low Speed oscillator (LSE) value. 147*6b8177c5SMatthias Ringwald * This value is used by the UART, RTC HAL module to compute the system frequency 148*6b8177c5SMatthias Ringwald */ 149*6b8177c5SMatthias Ringwald #if !defined (LSE_VALUE) 150*6b8177c5SMatthias Ringwald #define LSE_VALUE 32768U /*!< Value of the External oscillator in Hz*/ 151*6b8177c5SMatthias Ringwald #endif /* LSE_VALUE */ 152*6b8177c5SMatthias Ringwald 153*6b8177c5SMatthias Ringwald #if !defined (LSE_STARTUP_TIMEOUT) 154*6b8177c5SMatthias Ringwald #define LSE_STARTUP_TIMEOUT 5000U /*!< Time out for LSE start up, in ms */ 155*6b8177c5SMatthias Ringwald #endif /* HSE_STARTUP_TIMEOUT */ 156*6b8177c5SMatthias Ringwald 157*6b8177c5SMatthias Ringwald /** 158*6b8177c5SMatthias Ringwald * @brief External clock source for SAI1 peripheral 159*6b8177c5SMatthias Ringwald * This value is used by the RCC HAL module to compute the SAI1 & SAI2 clock source 160*6b8177c5SMatthias Ringwald * frequency. 161*6b8177c5SMatthias Ringwald */ 162*6b8177c5SMatthias Ringwald #if !defined (EXTERNAL_SAI1_CLOCK_VALUE) 163*6b8177c5SMatthias Ringwald #define EXTERNAL_SAI1_CLOCK_VALUE 2097000U /*!< Value of the SAI1 External clock source in Hz*/ 164*6b8177c5SMatthias Ringwald #endif /* EXTERNAL_SAI1_CLOCK_VALUE */ 165*6b8177c5SMatthias Ringwald 166*6b8177c5SMatthias Ringwald /** 167*6b8177c5SMatthias Ringwald * @brief External clock source for SAI2 peripheral 168*6b8177c5SMatthias Ringwald * This value is used by the RCC HAL module to compute the SAI1 & SAI2 clock source 169*6b8177c5SMatthias Ringwald * frequency. 170*6b8177c5SMatthias Ringwald */ 171*6b8177c5SMatthias Ringwald #if !defined (EXTERNAL_SAI2_CLOCK_VALUE) 172*6b8177c5SMatthias Ringwald #define EXTERNAL_SAI2_CLOCK_VALUE 2097000U /*!< Value of the SAI2 External clock source in Hz*/ 173*6b8177c5SMatthias Ringwald #endif /* EXTERNAL_SAI2_CLOCK_VALUE */ 174*6b8177c5SMatthias Ringwald 175*6b8177c5SMatthias Ringwald /* Tip: To avoid modifying this file each time you need to use different HSE, 176*6b8177c5SMatthias Ringwald === you can define the HSE value in your toolchain compiler preprocessor. */ 177*6b8177c5SMatthias Ringwald 178*6b8177c5SMatthias Ringwald /* ########################### System Configuration ######################### */ 179*6b8177c5SMatthias Ringwald /** 180*6b8177c5SMatthias Ringwald * @brief This is the HAL system configuration section 181*6b8177c5SMatthias Ringwald */ 182*6b8177c5SMatthias Ringwald 183*6b8177c5SMatthias Ringwald #define VDD_VALUE 3300U /*!< Value of VDD in mv */ 184*6b8177c5SMatthias Ringwald #define TICK_INT_PRIORITY 0U /*!< tick interrupt priority */ 185*6b8177c5SMatthias Ringwald #define USE_RTOS 0U 186*6b8177c5SMatthias Ringwald #define PREFETCH_ENABLE 1U 187*6b8177c5SMatthias Ringwald #define INSTRUCTION_CACHE_ENABLE 1U 188*6b8177c5SMatthias Ringwald #define DATA_CACHE_ENABLE 1U 189*6b8177c5SMatthias Ringwald 190*6b8177c5SMatthias Ringwald /* ########################## Assert Selection ############################## */ 191*6b8177c5SMatthias Ringwald /** 192*6b8177c5SMatthias Ringwald * @brief Uncomment the line below to expanse the "assert_param" macro in the 193*6b8177c5SMatthias Ringwald * HAL drivers code 194*6b8177c5SMatthias Ringwald */ 195*6b8177c5SMatthias Ringwald /* #define USE_FULL_ASSERT 1U */ 196*6b8177c5SMatthias Ringwald 197*6b8177c5SMatthias Ringwald /* ################## Register callback feature configuration ############### */ 198*6b8177c5SMatthias Ringwald /** 199*6b8177c5SMatthias Ringwald * @brief Set below the peripheral configuration to "1U" to add the support 200*6b8177c5SMatthias Ringwald * of HAL callback registration/deregistration feature for the HAL 201*6b8177c5SMatthias Ringwald * driver(s). This allows user application to provide specific callback 202*6b8177c5SMatthias Ringwald * functions thanks to HAL_PPP_RegisterCallback() rather than overwriting 203*6b8177c5SMatthias Ringwald * the default weak callback functions (see each stm32l4xx_hal_ppp.h file 204*6b8177c5SMatthias Ringwald * for possible callback identifiers defined in HAL_PPP_CallbackIDTypeDef 205*6b8177c5SMatthias Ringwald * for each PPP peripheral). 206*6b8177c5SMatthias Ringwald */ 207*6b8177c5SMatthias Ringwald #define USE_HAL_ADC_REGISTER_CALLBACKS 0U 208*6b8177c5SMatthias Ringwald #define USE_HAL_CAN_REGISTER_CALLBACKS 0U 209*6b8177c5SMatthias Ringwald #define USE_HAL_COMP_REGISTER_CALLBACKS 0U 210*6b8177c5SMatthias Ringwald #define USE_HAL_CRYP_REGISTER_CALLBACKS 0U 211*6b8177c5SMatthias Ringwald #define USE_HAL_DAC_REGISTER_CALLBACKS 0U 212*6b8177c5SMatthias Ringwald #define USE_HAL_DCMI_REGISTER_CALLBACKS 0U 213*6b8177c5SMatthias Ringwald #define USE_HAL_DFSDM_REGISTER_CALLBACKS 0U 214*6b8177c5SMatthias Ringwald #define USE_HAL_DMA2D_REGISTER_CALLBACKS 0U 215*6b8177c5SMatthias Ringwald #define USE_HAL_DSI_REGISTER_CALLBACKS 0U 216*6b8177c5SMatthias Ringwald #define USE_HAL_GFXMMU_REGISTER_CALLBACKS 0U 217*6b8177c5SMatthias Ringwald #define USE_HAL_HASH_REGISTER_CALLBACKS 0U 218*6b8177c5SMatthias Ringwald #define USE_HAL_HCD_REGISTER_CALLBACKS 0U 219*6b8177c5SMatthias Ringwald #define USE_HAL_I2C_REGISTER_CALLBACKS 0U 220*6b8177c5SMatthias Ringwald #define USE_HAL_IRDA_REGISTER_CALLBACKS 0U 221*6b8177c5SMatthias Ringwald #define USE_HAL_LPTIM_REGISTER_CALLBACKS 0U 222*6b8177c5SMatthias Ringwald #define USE_HAL_LTDC_REGISTER_CALLBACKS 0U 223*6b8177c5SMatthias Ringwald #define USE_HAL_MMC_REGISTER_CALLBACKS 0U 224*6b8177c5SMatthias Ringwald #define USE_HAL_OPAMP_REGISTER_CALLBACKS 0U 225*6b8177c5SMatthias Ringwald #define USE_HAL_OSPI_REGISTER_CALLBACKS 0U 226*6b8177c5SMatthias Ringwald #define USE_HAL_PCD_REGISTER_CALLBACKS 0U 227*6b8177c5SMatthias Ringwald #define USE_HAL_QSPI_REGISTER_CALLBACKS 0U 228*6b8177c5SMatthias Ringwald #define USE_HAL_RNG_REGISTER_CALLBACKS 0U 229*6b8177c5SMatthias Ringwald #define USE_HAL_RTC_REGISTER_CALLBACKS 0U 230*6b8177c5SMatthias Ringwald #define USE_HAL_SAI_REGISTER_CALLBACKS 0U 231*6b8177c5SMatthias Ringwald #define USE_HAL_SD_REGISTER_CALLBACKS 0U 232*6b8177c5SMatthias Ringwald #define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U 233*6b8177c5SMatthias Ringwald #define USE_HAL_SMBUS_REGISTER_CALLBACKS 0U 234*6b8177c5SMatthias Ringwald #define USE_HAL_SPI_REGISTER_CALLBACKS 0U 235*6b8177c5SMatthias Ringwald #define USE_HAL_SWPMI_REGISTER_CALLBACKS 0U 236*6b8177c5SMatthias Ringwald #define USE_HAL_TIM_REGISTER_CALLBACKS 0U 237*6b8177c5SMatthias Ringwald #define USE_HAL_TSC_REGISTER_CALLBACKS 0U 238*6b8177c5SMatthias Ringwald #define USE_HAL_UART_REGISTER_CALLBACKS 0U 239*6b8177c5SMatthias Ringwald #define USE_HAL_USART_REGISTER_CALLBACKS 0U 240*6b8177c5SMatthias Ringwald #define USE_HAL_WWDG_REGISTER_CALLBACKS 0U 241*6b8177c5SMatthias Ringwald 242*6b8177c5SMatthias Ringwald /* ################## SPI peripheral configuration ########################## */ 243*6b8177c5SMatthias Ringwald 244*6b8177c5SMatthias Ringwald /* CRC FEATURE: Use to activate CRC feature inside HAL SPI Driver 245*6b8177c5SMatthias Ringwald * Activated: CRC code is present inside driver 246*6b8177c5SMatthias Ringwald * Deactivated: CRC code cleaned from driver 247*6b8177c5SMatthias Ringwald */ 248*6b8177c5SMatthias Ringwald 249*6b8177c5SMatthias Ringwald #define USE_SPI_CRC 0U 250*6b8177c5SMatthias Ringwald 251*6b8177c5SMatthias Ringwald /* Includes ------------------------------------------------------------------*/ 252*6b8177c5SMatthias Ringwald /** 253*6b8177c5SMatthias Ringwald * @brief Include module's header file 254*6b8177c5SMatthias Ringwald */ 255*6b8177c5SMatthias Ringwald 256*6b8177c5SMatthias Ringwald #ifdef HAL_RCC_MODULE_ENABLED 257*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_rcc.h" 258*6b8177c5SMatthias Ringwald #endif /* HAL_RCC_MODULE_ENABLED */ 259*6b8177c5SMatthias Ringwald 260*6b8177c5SMatthias Ringwald #ifdef HAL_GPIO_MODULE_ENABLED 261*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_gpio.h" 262*6b8177c5SMatthias Ringwald #endif /* HAL_GPIO_MODULE_ENABLED */ 263*6b8177c5SMatthias Ringwald 264*6b8177c5SMatthias Ringwald #ifdef HAL_DMA_MODULE_ENABLED 265*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_dma.h" 266*6b8177c5SMatthias Ringwald #endif /* HAL_DMA_MODULE_ENABLED */ 267*6b8177c5SMatthias Ringwald 268*6b8177c5SMatthias Ringwald #ifdef HAL_DFSDM_MODULE_ENABLED 269*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_dfsdm.h" 270*6b8177c5SMatthias Ringwald #endif /* HAL_DFSDM_MODULE_ENABLED */ 271*6b8177c5SMatthias Ringwald 272*6b8177c5SMatthias Ringwald #ifdef HAL_CORTEX_MODULE_ENABLED 273*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_cortex.h" 274*6b8177c5SMatthias Ringwald #endif /* HAL_CORTEX_MODULE_ENABLED */ 275*6b8177c5SMatthias Ringwald 276*6b8177c5SMatthias Ringwald #ifdef HAL_ADC_MODULE_ENABLED 277*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_adc.h" 278*6b8177c5SMatthias Ringwald #endif /* HAL_ADC_MODULE_ENABLED */ 279*6b8177c5SMatthias Ringwald 280*6b8177c5SMatthias Ringwald #ifdef HAL_CAN_MODULE_ENABLED 281*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_can.h" 282*6b8177c5SMatthias Ringwald #endif /* HAL_CAN_MODULE_ENABLED */ 283*6b8177c5SMatthias Ringwald 284*6b8177c5SMatthias Ringwald #ifdef HAL_CAN_LEGACY_MODULE_ENABLED 285*6b8177c5SMatthias Ringwald #include "Legacy/stm32l4xx_hal_can_legacy.h" 286*6b8177c5SMatthias Ringwald #endif /* HAL_CAN_LEGACY_MODULE_ENABLED */ 287*6b8177c5SMatthias Ringwald 288*6b8177c5SMatthias Ringwald #ifdef HAL_COMP_MODULE_ENABLED 289*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_comp.h" 290*6b8177c5SMatthias Ringwald #endif /* HAL_COMP_MODULE_ENABLED */ 291*6b8177c5SMatthias Ringwald 292*6b8177c5SMatthias Ringwald #ifdef HAL_CRC_MODULE_ENABLED 293*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_crc.h" 294*6b8177c5SMatthias Ringwald #endif /* HAL_CRC_MODULE_ENABLED */ 295*6b8177c5SMatthias Ringwald 296*6b8177c5SMatthias Ringwald #ifdef HAL_CRYP_MODULE_ENABLED 297*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_cryp.h" 298*6b8177c5SMatthias Ringwald #endif /* HAL_CRYP_MODULE_ENABLED */ 299*6b8177c5SMatthias Ringwald 300*6b8177c5SMatthias Ringwald #ifdef HAL_DAC_MODULE_ENABLED 301*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_dac.h" 302*6b8177c5SMatthias Ringwald #endif /* HAL_DAC_MODULE_ENABLED */ 303*6b8177c5SMatthias Ringwald 304*6b8177c5SMatthias Ringwald #ifdef HAL_DCMI_MODULE_ENABLED 305*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_dcmi.h" 306*6b8177c5SMatthias Ringwald #endif /* HAL_DCMI_MODULE_ENABLED */ 307*6b8177c5SMatthias Ringwald 308*6b8177c5SMatthias Ringwald #ifdef HAL_DMA2D_MODULE_ENABLED 309*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_dma2d.h" 310*6b8177c5SMatthias Ringwald #endif /* HAL_DMA2D_MODULE_ENABLED */ 311*6b8177c5SMatthias Ringwald 312*6b8177c5SMatthias Ringwald #ifdef HAL_DSI_MODULE_ENABLED 313*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_dsi.h" 314*6b8177c5SMatthias Ringwald #endif /* HAL_DSI_MODULE_ENABLED */ 315*6b8177c5SMatthias Ringwald 316*6b8177c5SMatthias Ringwald #ifdef HAL_EXTI_MODULE_ENABLED 317*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_exti.h" 318*6b8177c5SMatthias Ringwald #endif /* HAL_EXTI_MODULE_ENABLED */ 319*6b8177c5SMatthias Ringwald 320*6b8177c5SMatthias Ringwald #ifdef HAL_GFXMMU_MODULE_ENABLED 321*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_gfxmmu.h" 322*6b8177c5SMatthias Ringwald #endif /* HAL_GFXMMU_MODULE_ENABLED */ 323*6b8177c5SMatthias Ringwald 324*6b8177c5SMatthias Ringwald #ifdef HAL_FIREWALL_MODULE_ENABLED 325*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_firewall.h" 326*6b8177c5SMatthias Ringwald #endif /* HAL_FIREWALL_MODULE_ENABLED */ 327*6b8177c5SMatthias Ringwald 328*6b8177c5SMatthias Ringwald #ifdef HAL_FLASH_MODULE_ENABLED 329*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_flash.h" 330*6b8177c5SMatthias Ringwald #endif /* HAL_FLASH_MODULE_ENABLED */ 331*6b8177c5SMatthias Ringwald 332*6b8177c5SMatthias Ringwald #ifdef HAL_HASH_MODULE_ENABLED 333*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_hash.h" 334*6b8177c5SMatthias Ringwald #endif /* HAL_HASH_MODULE_ENABLED */ 335*6b8177c5SMatthias Ringwald 336*6b8177c5SMatthias Ringwald #ifdef HAL_HCD_MODULE_ENABLED 337*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_hcd.h" 338*6b8177c5SMatthias Ringwald #endif /* HAL_HCD_MODULE_ENABLED */ 339*6b8177c5SMatthias Ringwald 340*6b8177c5SMatthias Ringwald #ifdef HAL_I2C_MODULE_ENABLED 341*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_i2c.h" 342*6b8177c5SMatthias Ringwald #endif /* HAL_I2C_MODULE_ENABLED */ 343*6b8177c5SMatthias Ringwald 344*6b8177c5SMatthias Ringwald #ifdef HAL_IRDA_MODULE_ENABLED 345*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_irda.h" 346*6b8177c5SMatthias Ringwald #endif /* HAL_IRDA_MODULE_ENABLED */ 347*6b8177c5SMatthias Ringwald 348*6b8177c5SMatthias Ringwald #ifdef HAL_IWDG_MODULE_ENABLED 349*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_iwdg.h" 350*6b8177c5SMatthias Ringwald #endif /* HAL_IWDG_MODULE_ENABLED */ 351*6b8177c5SMatthias Ringwald 352*6b8177c5SMatthias Ringwald #ifdef HAL_LCD_MODULE_ENABLED 353*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_lcd.h" 354*6b8177c5SMatthias Ringwald #endif /* HAL_LCD_MODULE_ENABLED */ 355*6b8177c5SMatthias Ringwald 356*6b8177c5SMatthias Ringwald #ifdef HAL_LPTIM_MODULE_ENABLED 357*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_lptim.h" 358*6b8177c5SMatthias Ringwald #endif /* HAL_LPTIM_MODULE_ENABLED */ 359*6b8177c5SMatthias Ringwald 360*6b8177c5SMatthias Ringwald #ifdef HAL_LTDC_MODULE_ENABLED 361*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_ltdc.h" 362*6b8177c5SMatthias Ringwald #endif /* HAL_LTDC_MODULE_ENABLED */ 363*6b8177c5SMatthias Ringwald 364*6b8177c5SMatthias Ringwald #ifdef HAL_MMC_MODULE_ENABLED 365*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_mmc.h" 366*6b8177c5SMatthias Ringwald #endif /* HAL_MMC_MODULE_ENABLED */ 367*6b8177c5SMatthias Ringwald 368*6b8177c5SMatthias Ringwald #ifdef HAL_NAND_MODULE_ENABLED 369*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_nand.h" 370*6b8177c5SMatthias Ringwald #endif /* HAL_NAND_MODULE_ENABLED */ 371*6b8177c5SMatthias Ringwald 372*6b8177c5SMatthias Ringwald #ifdef HAL_NOR_MODULE_ENABLED 373*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_nor.h" 374*6b8177c5SMatthias Ringwald #endif /* HAL_NOR_MODULE_ENABLED */ 375*6b8177c5SMatthias Ringwald 376*6b8177c5SMatthias Ringwald #ifdef HAL_OPAMP_MODULE_ENABLED 377*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_opamp.h" 378*6b8177c5SMatthias Ringwald #endif /* HAL_OPAMP_MODULE_ENABLED */ 379*6b8177c5SMatthias Ringwald 380*6b8177c5SMatthias Ringwald #ifdef HAL_OSPI_MODULE_ENABLED 381*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_ospi.h" 382*6b8177c5SMatthias Ringwald #endif /* HAL_OSPI_MODULE_ENABLED */ 383*6b8177c5SMatthias Ringwald 384*6b8177c5SMatthias Ringwald #ifdef HAL_PCD_MODULE_ENABLED 385*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_pcd.h" 386*6b8177c5SMatthias Ringwald #endif /* HAL_PCD_MODULE_ENABLED */ 387*6b8177c5SMatthias Ringwald 388*6b8177c5SMatthias Ringwald #ifdef HAL_PKA_MODULE_ENABLED 389*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_pka.h" 390*6b8177c5SMatthias Ringwald #endif /* HAL_PKA_MODULE_ENABLED */ 391*6b8177c5SMatthias Ringwald 392*6b8177c5SMatthias Ringwald #ifdef HAL_PSSI_MODULE_ENABLED 393*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_pssi.h" 394*6b8177c5SMatthias Ringwald #endif /* HAL_PSSI_MODULE_ENABLED */ 395*6b8177c5SMatthias Ringwald 396*6b8177c5SMatthias Ringwald #ifdef HAL_PWR_MODULE_ENABLED 397*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_pwr.h" 398*6b8177c5SMatthias Ringwald #endif /* HAL_PWR_MODULE_ENABLED */ 399*6b8177c5SMatthias Ringwald 400*6b8177c5SMatthias Ringwald #ifdef HAL_QSPI_MODULE_ENABLED 401*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_qspi.h" 402*6b8177c5SMatthias Ringwald #endif /* HAL_QSPI_MODULE_ENABLED */ 403*6b8177c5SMatthias Ringwald 404*6b8177c5SMatthias Ringwald #ifdef HAL_RNG_MODULE_ENABLED 405*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_rng.h" 406*6b8177c5SMatthias Ringwald #endif /* HAL_RNG_MODULE_ENABLED */ 407*6b8177c5SMatthias Ringwald 408*6b8177c5SMatthias Ringwald #ifdef HAL_RTC_MODULE_ENABLED 409*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_rtc.h" 410*6b8177c5SMatthias Ringwald #endif /* HAL_RTC_MODULE_ENABLED */ 411*6b8177c5SMatthias Ringwald 412*6b8177c5SMatthias Ringwald #ifdef HAL_SAI_MODULE_ENABLED 413*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_sai.h" 414*6b8177c5SMatthias Ringwald #endif /* HAL_SAI_MODULE_ENABLED */ 415*6b8177c5SMatthias Ringwald 416*6b8177c5SMatthias Ringwald #ifdef HAL_SD_MODULE_ENABLED 417*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_sd.h" 418*6b8177c5SMatthias Ringwald #endif /* HAL_SD_MODULE_ENABLED */ 419*6b8177c5SMatthias Ringwald 420*6b8177c5SMatthias Ringwald #ifdef HAL_SMARTCARD_MODULE_ENABLED 421*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_smartcard.h" 422*6b8177c5SMatthias Ringwald #endif /* HAL_SMARTCARD_MODULE_ENABLED */ 423*6b8177c5SMatthias Ringwald 424*6b8177c5SMatthias Ringwald #ifdef HAL_SMBUS_MODULE_ENABLED 425*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_smbus.h" 426*6b8177c5SMatthias Ringwald #endif /* HAL_SMBUS_MODULE_ENABLED */ 427*6b8177c5SMatthias Ringwald 428*6b8177c5SMatthias Ringwald #ifdef HAL_SPI_MODULE_ENABLED 429*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_spi.h" 430*6b8177c5SMatthias Ringwald #endif /* HAL_SPI_MODULE_ENABLED */ 431*6b8177c5SMatthias Ringwald 432*6b8177c5SMatthias Ringwald #ifdef HAL_SRAM_MODULE_ENABLED 433*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_sram.h" 434*6b8177c5SMatthias Ringwald #endif /* HAL_SRAM_MODULE_ENABLED */ 435*6b8177c5SMatthias Ringwald 436*6b8177c5SMatthias Ringwald #ifdef HAL_SWPMI_MODULE_ENABLED 437*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_swpmi.h" 438*6b8177c5SMatthias Ringwald #endif /* HAL_SWPMI_MODULE_ENABLED */ 439*6b8177c5SMatthias Ringwald 440*6b8177c5SMatthias Ringwald #ifdef HAL_TIM_MODULE_ENABLED 441*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_tim.h" 442*6b8177c5SMatthias Ringwald #endif /* HAL_TIM_MODULE_ENABLED */ 443*6b8177c5SMatthias Ringwald 444*6b8177c5SMatthias Ringwald #ifdef HAL_TSC_MODULE_ENABLED 445*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_tsc.h" 446*6b8177c5SMatthias Ringwald #endif /* HAL_TSC_MODULE_ENABLED */ 447*6b8177c5SMatthias Ringwald 448*6b8177c5SMatthias Ringwald #ifdef HAL_UART_MODULE_ENABLED 449*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_uart.h" 450*6b8177c5SMatthias Ringwald #endif /* HAL_UART_MODULE_ENABLED */ 451*6b8177c5SMatthias Ringwald 452*6b8177c5SMatthias Ringwald #ifdef HAL_USART_MODULE_ENABLED 453*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_usart.h" 454*6b8177c5SMatthias Ringwald #endif /* HAL_USART_MODULE_ENABLED */ 455*6b8177c5SMatthias Ringwald 456*6b8177c5SMatthias Ringwald #ifdef HAL_WWDG_MODULE_ENABLED 457*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal_wwdg.h" 458*6b8177c5SMatthias Ringwald #endif /* HAL_WWDG_MODULE_ENABLED */ 459*6b8177c5SMatthias Ringwald 460*6b8177c5SMatthias Ringwald /* Exported macro ------------------------------------------------------------*/ 461*6b8177c5SMatthias Ringwald #ifdef USE_FULL_ASSERT 462*6b8177c5SMatthias Ringwald /** 463*6b8177c5SMatthias Ringwald * @brief The assert_param macro is used for function's parameters check. 464*6b8177c5SMatthias Ringwald * @param expr If expr is false, it calls assert_failed function 465*6b8177c5SMatthias Ringwald * which reports the name of the source file and the source 466*6b8177c5SMatthias Ringwald * line number of the call that failed. 467*6b8177c5SMatthias Ringwald * If expr is true, it returns no value. 468*6b8177c5SMatthias Ringwald * @retval None 469*6b8177c5SMatthias Ringwald */ 470*6b8177c5SMatthias Ringwald #define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__)) 471*6b8177c5SMatthias Ringwald /* Exported functions ------------------------------------------------------- */ 472*6b8177c5SMatthias Ringwald void assert_failed(uint8_t *file, uint32_t line); 473*6b8177c5SMatthias Ringwald #else 474*6b8177c5SMatthias Ringwald #define assert_param(expr) ((void)0U) 475*6b8177c5SMatthias Ringwald #endif /* USE_FULL_ASSERT */ 476*6b8177c5SMatthias Ringwald 477*6b8177c5SMatthias Ringwald #ifdef __cplusplus 478*6b8177c5SMatthias Ringwald } 479*6b8177c5SMatthias Ringwald #endif 480*6b8177c5SMatthias Ringwald 481*6b8177c5SMatthias Ringwald #endif /* STM32L4xx_HAL_CONF_H */ 482*6b8177c5SMatthias Ringwald 483*6b8177c5SMatthias Ringwald /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 484