|
@@ -1,40 +1,28 @@
|
|
|
|
+/* USER CODE BEGIN Header */
|
|
/**
|
|
/**
|
|
******************************************************************************
|
|
******************************************************************************
|
|
* @file stm32l4xx_hal_conf.h
|
|
* @file stm32l4xx_hal_conf.h
|
|
- * @brief HAL configuration file.
|
|
|
|
|
|
+ * @author MCD Application Team
|
|
|
|
+ * @brief HAL configuration template file.
|
|
|
|
+ * This file should be copied to the application folder and renamed
|
|
|
|
+ * to stm32l4xx_hal_conf.h.
|
|
******************************************************************************
|
|
******************************************************************************
|
|
* @attention
|
|
* @attention
|
|
*
|
|
*
|
|
- * <h2><center>© COPYRIGHT(c) 2023 STMicroelectronics</center></h2>
|
|
|
|
|
|
+ * Copyright (c) 2017 STMicroelectronics.
|
|
|
|
+ * All rights reserved.
|
|
*
|
|
*
|
|
- * Redistribution and use in source and binary forms, with or without modification,
|
|
|
|
- * are permitted provided that the following conditions are met:
|
|
|
|
- * 1. Redistributions of source code must retain the above copyright notice,
|
|
|
|
- * this list of conditions and the following disclaimer.
|
|
|
|
- * 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
|
|
- * this list of conditions and the following disclaimer in the documentation
|
|
|
|
- * and/or other materials provided with the distribution.
|
|
|
|
- * 3. Neither the name of STMicroelectronics nor the names of its contributors
|
|
|
|
- * may be used to endorse or promote products derived from this software
|
|
|
|
- * without specific prior written permission.
|
|
|
|
- *
|
|
|
|
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
|
|
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
|
|
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
|
|
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
|
|
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
|
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
+ * This software is licensed under terms that can be found in the LICENSE file
|
|
|
|
+ * in the root directory of this software component.
|
|
|
|
+ * If no LICENSE file comes with this software, it is provided AS-IS.
|
|
*
|
|
*
|
|
******************************************************************************
|
|
******************************************************************************
|
|
*/
|
|
*/
|
|
|
|
+/* USER CODE END Header */
|
|
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
-#ifndef __STM32L4xx_HAL_CONF_H
|
|
|
|
-#define __STM32L4xx_HAL_CONF_H
|
|
|
|
|
|
+#ifndef STM32L4xx_HAL_CONF_H
|
|
|
|
+#define STM32L4xx_HAL_CONF_H
|
|
|
|
|
|
#ifdef __cplusplus
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
extern "C" {
|
|
@@ -47,12 +35,12 @@
|
|
/**
|
|
/**
|
|
* @brief This is the list of modules to be used in the HAL driver
|
|
* @brief This is the list of modules to be used in the HAL driver
|
|
*/
|
|
*/
|
|
-
|
|
|
|
#define HAL_MODULE_ENABLED
|
|
#define HAL_MODULE_ENABLED
|
|
#define HAL_ADC_MODULE_ENABLED
|
|
#define HAL_ADC_MODULE_ENABLED
|
|
/*#define HAL_CRYP_MODULE_ENABLED */
|
|
/*#define HAL_CRYP_MODULE_ENABLED */
|
|
-/*#define HAL_CAN_MODULE_ENABLED */
|
|
|
|
|
|
+#define HAL_CAN_MODULE_ENABLED
|
|
/*#define HAL_COMP_MODULE_ENABLED */
|
|
/*#define HAL_COMP_MODULE_ENABLED */
|
|
|
|
+#define HAL_I2C_MODULE_ENABLED
|
|
/*#define HAL_CRC_MODULE_ENABLED */
|
|
/*#define HAL_CRC_MODULE_ENABLED */
|
|
/*#define HAL_CRYP_MODULE_ENABLED */
|
|
/*#define HAL_CRYP_MODULE_ENABLED */
|
|
#define HAL_DAC_MODULE_ENABLED
|
|
#define HAL_DAC_MODULE_ENABLED
|
|
@@ -78,11 +66,11 @@
|
|
/*#define HAL_OSPI_MODULE_ENABLED */
|
|
/*#define HAL_OSPI_MODULE_ENABLED */
|
|
#define HAL_PCD_MODULE_ENABLED
|
|
#define HAL_PCD_MODULE_ENABLED
|
|
/*#define HAL_PKA_MODULE_ENABLED */
|
|
/*#define HAL_PKA_MODULE_ENABLED */
|
|
-#define HAL_QSPI_MODULE_ENABLED
|
|
|
|
/*#define HAL_QSPI_MODULE_ENABLED */
|
|
/*#define HAL_QSPI_MODULE_ENABLED */
|
|
|
|
+#define HAL_QSPI_MODULE_ENABLED
|
|
/*#define HAL_RNG_MODULE_ENABLED */
|
|
/*#define HAL_RNG_MODULE_ENABLED */
|
|
#define HAL_RTC_MODULE_ENABLED
|
|
#define HAL_RTC_MODULE_ENABLED
|
|
-/*#define HAL_SAI_MODULE_ENABLED */
|
|
|
|
|
|
+#define HAL_SAI_MODULE_ENABLED
|
|
/*#define HAL_SD_MODULE_ENABLED */
|
|
/*#define HAL_SD_MODULE_ENABLED */
|
|
/*#define HAL_SMBUS_MODULE_ENABLED */
|
|
/*#define HAL_SMBUS_MODULE_ENABLED */
|
|
/*#define HAL_SMARTCARD_MODULE_ENABLED */
|
|
/*#define HAL_SMARTCARD_MODULE_ENABLED */
|
|
@@ -98,7 +86,6 @@
|
|
/*#define HAL_PSSI_MODULE_ENABLED */
|
|
/*#define HAL_PSSI_MODULE_ENABLED */
|
|
#define HAL_GPIO_MODULE_ENABLED
|
|
#define HAL_GPIO_MODULE_ENABLED
|
|
#define HAL_EXTI_MODULE_ENABLED
|
|
#define HAL_EXTI_MODULE_ENABLED
|
|
-#define HAL_I2C_MODULE_ENABLED
|
|
|
|
#define HAL_DMA_MODULE_ENABLED
|
|
#define HAL_DMA_MODULE_ENABLED
|
|
#define HAL_RCC_MODULE_ENABLED
|
|
#define HAL_RCC_MODULE_ENABLED
|
|
#define HAL_FLASH_MODULE_ENABLED
|
|
#define HAL_FLASH_MODULE_ENABLED
|
|
@@ -151,7 +138,7 @@
|
|
* @brief Internal Low Speed oscillator (LSI) value.
|
|
* @brief Internal Low Speed oscillator (LSI) value.
|
|
*/
|
|
*/
|
|
#if !defined (LSI_VALUE)
|
|
#if !defined (LSI_VALUE)
|
|
- #define LSI_VALUE ((uint32_t)32000U) /*!< LSI Typical Value in Hz*/
|
|
|
|
|
|
+ #define LSI_VALUE 32000U /*!< LSI Typical Value in Hz*/
|
|
#endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz
|
|
#endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz
|
|
The real value may vary depending on the variations
|
|
The real value may vary depending on the variations
|
|
in voltage and temperature.*/
|
|
in voltage and temperature.*/
|
|
@@ -161,11 +148,11 @@
|
|
* This value is used by the UART, RTC HAL module to compute the system frequency
|
|
* This value is used by the UART, RTC HAL module to compute the system frequency
|
|
*/
|
|
*/
|
|
#if !defined (LSE_VALUE)
|
|
#if !defined (LSE_VALUE)
|
|
- #define LSE_VALUE ((uint32_t)32768U) /*!< Value of the External oscillator in Hz*/
|
|
|
|
|
|
+ #define LSE_VALUE 32768U /*!< Value of the External oscillator in Hz*/
|
|
#endif /* LSE_VALUE */
|
|
#endif /* LSE_VALUE */
|
|
|
|
|
|
#if !defined (LSE_STARTUP_TIMEOUT)
|
|
#if !defined (LSE_STARTUP_TIMEOUT)
|
|
- #define LSE_STARTUP_TIMEOUT ((uint32_t)5000U) /*!< Time out for LSE start up, in ms */
|
|
|
|
|
|
+ #define LSE_STARTUP_TIMEOUT 5000U /*!< Time out for LSE start up, in ms */
|
|
#endif /* HSE_STARTUP_TIMEOUT */
|
|
#endif /* HSE_STARTUP_TIMEOUT */
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -174,7 +161,7 @@
|
|
* frequency.
|
|
* frequency.
|
|
*/
|
|
*/
|
|
#if !defined (EXTERNAL_SAI1_CLOCK_VALUE)
|
|
#if !defined (EXTERNAL_SAI1_CLOCK_VALUE)
|
|
- #define EXTERNAL_SAI1_CLOCK_VALUE ((uint32_t)2097000U) /*!< Value of the SAI1 External clock source in Hz*/
|
|
|
|
|
|
+ #define EXTERNAL_SAI1_CLOCK_VALUE 2097000U /*!< Value of the SAI1 External clock source in Hz*/
|
|
#endif /* EXTERNAL_SAI1_CLOCK_VALUE */
|
|
#endif /* EXTERNAL_SAI1_CLOCK_VALUE */
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -183,7 +170,7 @@
|
|
* frequency.
|
|
* frequency.
|
|
*/
|
|
*/
|
|
#if !defined (EXTERNAL_SAI2_CLOCK_VALUE)
|
|
#if !defined (EXTERNAL_SAI2_CLOCK_VALUE)
|
|
- #define EXTERNAL_SAI2_CLOCK_VALUE ((uint32_t)2097000U) /*!< Value of the SAI2 External clock source in Hz*/
|
|
|
|
|
|
+ #define EXTERNAL_SAI2_CLOCK_VALUE 2097000U /*!< Value of the SAI2 External clock source in Hz*/
|
|
#endif /* EXTERNAL_SAI2_CLOCK_VALUE */
|
|
#endif /* EXTERNAL_SAI2_CLOCK_VALUE */
|
|
|
|
|
|
/* Tip: To avoid modifying this file each time you need to use different HSE,
|
|
/* Tip: To avoid modifying this file each time you need to use different HSE,
|
|
@@ -194,8 +181,8 @@
|
|
* @brief This is the HAL system configuration section
|
|
* @brief This is the HAL system configuration section
|
|
*/
|
|
*/
|
|
|
|
|
|
-#define VDD_VALUE ((uint32_t)3300U) /*!< Value of VDD in mv */
|
|
|
|
-#define TICK_INT_PRIORITY ((uint32_t)0U) /*!< tick interrupt priority */
|
|
|
|
|
|
+#define VDD_VALUE 3300U /*!< Value of VDD in mv */
|
|
|
|
+#define TICK_INT_PRIORITY 0U /*!< tick interrupt priority */
|
|
#define USE_RTOS 0U
|
|
#define USE_RTOS 0U
|
|
#define PREFETCH_ENABLE 0U
|
|
#define PREFETCH_ENABLE 0U
|
|
#define INSTRUCTION_CACHE_ENABLE 1U
|
|
#define INSTRUCTION_CACHE_ENABLE 1U
|
|
@@ -208,6 +195,51 @@
|
|
*/
|
|
*/
|
|
/* #define USE_FULL_ASSERT 1U */
|
|
/* #define USE_FULL_ASSERT 1U */
|
|
|
|
|
|
|
|
+/* ################## Register callback feature configuration ############### */
|
|
|
|
+/**
|
|
|
|
+ * @brief Set below the peripheral configuration to "1U" to add the support
|
|
|
|
+ * of HAL callback registration/deregistration feature for the HAL
|
|
|
|
+ * driver(s). This allows user application to provide specific callback
|
|
|
|
+ * functions thanks to HAL_PPP_RegisterCallback() rather than overwriting
|
|
|
|
+ * the default weak callback functions (see each stm32l4xx_hal_ppp.h file
|
|
|
|
+ * for possible callback identifiers defined in HAL_PPP_CallbackIDTypeDef
|
|
|
|
+ * for each PPP peripheral).
|
|
|
|
+ */
|
|
|
|
+#define USE_HAL_ADC_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_CAN_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_COMP_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_CRYP_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_DAC_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_DCMI_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_DFSDM_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_DMA2D_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_DSI_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_GFXMMU_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_HASH_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_HCD_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_I2C_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_IRDA_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_LPTIM_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_LTDC_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_MMC_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_OPAMP_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_OSPI_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_PCD_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_QSPI_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_RNG_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_RTC_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_SAI_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_SD_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_SMBUS_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_SPI_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_SWPMI_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_TIM_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_TSC_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_UART_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_USART_REGISTER_CALLBACKS 0U
|
|
|
|
+#define USE_HAL_WWDG_REGISTER_CALLBACKS 0U
|
|
|
|
+
|
|
/* ################## SPI peripheral configuration ########################## */
|
|
/* ################## SPI peripheral configuration ########################## */
|
|
|
|
|
|
/* CRC FEATURE: Use to activate CRC feature inside HAL SPI Driver
|
|
/* CRC FEATURE: Use to activate CRC feature inside HAL SPI Driver
|
|
@@ -224,20 +256,14 @@
|
|
|
|
|
|
#ifdef HAL_RCC_MODULE_ENABLED
|
|
#ifdef HAL_RCC_MODULE_ENABLED
|
|
#include "stm32l4xx_hal_rcc.h"
|
|
#include "stm32l4xx_hal_rcc.h"
|
|
- #include "stm32l4xx_hal_rcc_ex.h"
|
|
|
|
#endif /* HAL_RCC_MODULE_ENABLED */
|
|
#endif /* HAL_RCC_MODULE_ENABLED */
|
|
|
|
|
|
-#ifdef HAL_EXTI_MODULE_ENABLED
|
|
|
|
- #include "stm32l4xx_hal_exti.h"
|
|
|
|
-#endif /* HAL_EXTI_MODULE_ENABLED */
|
|
|
|
-
|
|
|
|
#ifdef HAL_GPIO_MODULE_ENABLED
|
|
#ifdef HAL_GPIO_MODULE_ENABLED
|
|
#include "stm32l4xx_hal_gpio.h"
|
|
#include "stm32l4xx_hal_gpio.h"
|
|
#endif /* HAL_GPIO_MODULE_ENABLED */
|
|
#endif /* HAL_GPIO_MODULE_ENABLED */
|
|
|
|
|
|
#ifdef HAL_DMA_MODULE_ENABLED
|
|
#ifdef HAL_DMA_MODULE_ENABLED
|
|
#include "stm32l4xx_hal_dma.h"
|
|
#include "stm32l4xx_hal_dma.h"
|
|
- #include "stm32l4xx_hal_dma_ex.h"
|
|
|
|
#endif /* HAL_DMA_MODULE_ENABLED */
|
|
#endif /* HAL_DMA_MODULE_ENABLED */
|
|
|
|
|
|
#ifdef HAL_DFSDM_MODULE_ENABLED
|
|
#ifdef HAL_DFSDM_MODULE_ENABLED
|
|
@@ -256,6 +282,10 @@
|
|
#include "stm32l4xx_hal_can.h"
|
|
#include "stm32l4xx_hal_can.h"
|
|
#endif /* HAL_CAN_MODULE_ENABLED */
|
|
#endif /* HAL_CAN_MODULE_ENABLED */
|
|
|
|
|
|
|
|
+#ifdef HAL_CAN_LEGACY_MODULE_ENABLED
|
|
|
|
+ #include "Legacy/stm32l4xx_hal_can_legacy.h"
|
|
|
|
+#endif /* HAL_CAN_LEGACY_MODULE_ENABLED */
|
|
|
|
+
|
|
#ifdef HAL_COMP_MODULE_ENABLED
|
|
#ifdef HAL_COMP_MODULE_ENABLED
|
|
#include "stm32l4xx_hal_comp.h"
|
|
#include "stm32l4xx_hal_comp.h"
|
|
#endif /* HAL_COMP_MODULE_ENABLED */
|
|
#endif /* HAL_COMP_MODULE_ENABLED */
|
|
@@ -284,6 +314,14 @@
|
|
#include "stm32l4xx_hal_dsi.h"
|
|
#include "stm32l4xx_hal_dsi.h"
|
|
#endif /* HAL_DSI_MODULE_ENABLED */
|
|
#endif /* HAL_DSI_MODULE_ENABLED */
|
|
|
|
|
|
|
|
+#ifdef HAL_EXTI_MODULE_ENABLED
|
|
|
|
+ #include "stm32l4xx_hal_exti.h"
|
|
|
|
+#endif /* HAL_EXTI_MODULE_ENABLED */
|
|
|
|
+
|
|
|
|
+#ifdef HAL_GFXMMU_MODULE_ENABLED
|
|
|
|
+ #include "stm32l4xx_hal_gfxmmu.h"
|
|
|
|
+#endif /* HAL_GFXMMU_MODULE_ENABLED */
|
|
|
|
+
|
|
#ifdef HAL_FIREWALL_MODULE_ENABLED
|
|
#ifdef HAL_FIREWALL_MODULE_ENABLED
|
|
#include "stm32l4xx_hal_firewall.h"
|
|
#include "stm32l4xx_hal_firewall.h"
|
|
#endif /* HAL_FIREWALL_MODULE_ENABLED */
|
|
#endif /* HAL_FIREWALL_MODULE_ENABLED */
|
|
@@ -296,26 +334,18 @@
|
|
#include "stm32l4xx_hal_hash.h"
|
|
#include "stm32l4xx_hal_hash.h"
|
|
#endif /* HAL_HASH_MODULE_ENABLED */
|
|
#endif /* HAL_HASH_MODULE_ENABLED */
|
|
|
|
|
|
-#ifdef HAL_SRAM_MODULE_ENABLED
|
|
|
|
- #include "stm32l4xx_hal_sram.h"
|
|
|
|
-#endif /* HAL_SRAM_MODULE_ENABLED */
|
|
|
|
-
|
|
|
|
-#ifdef HAL_MMC_MODULE_ENABLED
|
|
|
|
- #include "stm32l4xx_hal_mmc.h"
|
|
|
|
-#endif /* HAL_MMC_MODULE_ENABLED */
|
|
|
|
-
|
|
|
|
-#ifdef HAL_NOR_MODULE_ENABLED
|
|
|
|
- #include "stm32l4xx_hal_nor.h"
|
|
|
|
-#endif /* HAL_NOR_MODULE_ENABLED */
|
|
|
|
-
|
|
|
|
-#ifdef HAL_NAND_MODULE_ENABLED
|
|
|
|
- #include "stm32l4xx_hal_nand.h"
|
|
|
|
-#endif /* HAL_NAND_MODULE_ENABLED */
|
|
|
|
|
|
+#ifdef HAL_HCD_MODULE_ENABLED
|
|
|
|
+ #include "stm32l4xx_hal_hcd.h"
|
|
|
|
+#endif /* HAL_HCD_MODULE_ENABLED */
|
|
|
|
|
|
#ifdef HAL_I2C_MODULE_ENABLED
|
|
#ifdef HAL_I2C_MODULE_ENABLED
|
|
#include "stm32l4xx_hal_i2c.h"
|
|
#include "stm32l4xx_hal_i2c.h"
|
|
#endif /* HAL_I2C_MODULE_ENABLED */
|
|
#endif /* HAL_I2C_MODULE_ENABLED */
|
|
|
|
|
|
|
|
+#ifdef HAL_IRDA_MODULE_ENABLED
|
|
|
|
+ #include "stm32l4xx_hal_irda.h"
|
|
|
|
+#endif /* HAL_IRDA_MODULE_ENABLED */
|
|
|
|
+
|
|
#ifdef HAL_IWDG_MODULE_ENABLED
|
|
#ifdef HAL_IWDG_MODULE_ENABLED
|
|
#include "stm32l4xx_hal_iwdg.h"
|
|
#include "stm32l4xx_hal_iwdg.h"
|
|
#endif /* HAL_IWDG_MODULE_ENABLED */
|
|
#endif /* HAL_IWDG_MODULE_ENABLED */
|
|
@@ -332,6 +362,18 @@
|
|
#include "stm32l4xx_hal_ltdc.h"
|
|
#include "stm32l4xx_hal_ltdc.h"
|
|
#endif /* HAL_LTDC_MODULE_ENABLED */
|
|
#endif /* HAL_LTDC_MODULE_ENABLED */
|
|
|
|
|
|
|
|
+#ifdef HAL_MMC_MODULE_ENABLED
|
|
|
|
+ #include "stm32l4xx_hal_mmc.h"
|
|
|
|
+#endif /* HAL_MMC_MODULE_ENABLED */
|
|
|
|
+
|
|
|
|
+#ifdef HAL_NAND_MODULE_ENABLED
|
|
|
|
+ #include "stm32l4xx_hal_nand.h"
|
|
|
|
+#endif /* HAL_NAND_MODULE_ENABLED */
|
|
|
|
+
|
|
|
|
+#ifdef HAL_NOR_MODULE_ENABLED
|
|
|
|
+ #include "stm32l4xx_hal_nor.h"
|
|
|
|
+#endif /* HAL_NOR_MODULE_ENABLED */
|
|
|
|
+
|
|
#ifdef HAL_OPAMP_MODULE_ENABLED
|
|
#ifdef HAL_OPAMP_MODULE_ENABLED
|
|
#include "stm32l4xx_hal_opamp.h"
|
|
#include "stm32l4xx_hal_opamp.h"
|
|
#endif /* HAL_OPAMP_MODULE_ENABLED */
|
|
#endif /* HAL_OPAMP_MODULE_ENABLED */
|
|
@@ -340,9 +382,17 @@
|
|
#include "stm32l4xx_hal_ospi.h"
|
|
#include "stm32l4xx_hal_ospi.h"
|
|
#endif /* HAL_OSPI_MODULE_ENABLED */
|
|
#endif /* HAL_OSPI_MODULE_ENABLED */
|
|
|
|
|
|
|
|
+#ifdef HAL_PCD_MODULE_ENABLED
|
|
|
|
+ #include "stm32l4xx_hal_pcd.h"
|
|
|
|
+#endif /* HAL_PCD_MODULE_ENABLED */
|
|
|
|
+
|
|
#ifdef HAL_PKA_MODULE_ENABLED
|
|
#ifdef HAL_PKA_MODULE_ENABLED
|
|
#include "stm32l4xx_hal_pka.h"
|
|
#include "stm32l4xx_hal_pka.h"
|
|
-#endif /* HAL_PWR_MODULE_ENABLED */
|
|
|
|
|
|
+#endif /* HAL_PKA_MODULE_ENABLED */
|
|
|
|
+
|
|
|
|
+#ifdef HAL_PSSI_MODULE_ENABLED
|
|
|
|
+ #include "stm32l4xx_hal_pssi.h"
|
|
|
|
+#endif /* HAL_PSSI_MODULE_ENABLED */
|
|
|
|
|
|
#ifdef HAL_PWR_MODULE_ENABLED
|
|
#ifdef HAL_PWR_MODULE_ENABLED
|
|
#include "stm32l4xx_hal_pwr.h"
|
|
#include "stm32l4xx_hal_pwr.h"
|
|
@@ -368,6 +418,10 @@
|
|
#include "stm32l4xx_hal_sd.h"
|
|
#include "stm32l4xx_hal_sd.h"
|
|
#endif /* HAL_SD_MODULE_ENABLED */
|
|
#endif /* HAL_SD_MODULE_ENABLED */
|
|
|
|
|
|
|
|
+#ifdef HAL_SMARTCARD_MODULE_ENABLED
|
|
|
|
+ #include "stm32l4xx_hal_smartcard.h"
|
|
|
|
+#endif /* HAL_SMARTCARD_MODULE_ENABLED */
|
|
|
|
+
|
|
#ifdef HAL_SMBUS_MODULE_ENABLED
|
|
#ifdef HAL_SMBUS_MODULE_ENABLED
|
|
#include "stm32l4xx_hal_smbus.h"
|
|
#include "stm32l4xx_hal_smbus.h"
|
|
#endif /* HAL_SMBUS_MODULE_ENABLED */
|
|
#endif /* HAL_SMBUS_MODULE_ENABLED */
|
|
@@ -376,6 +430,10 @@
|
|
#include "stm32l4xx_hal_spi.h"
|
|
#include "stm32l4xx_hal_spi.h"
|
|
#endif /* HAL_SPI_MODULE_ENABLED */
|
|
#endif /* HAL_SPI_MODULE_ENABLED */
|
|
|
|
|
|
|
|
+#ifdef HAL_SRAM_MODULE_ENABLED
|
|
|
|
+ #include "stm32l4xx_hal_sram.h"
|
|
|
|
+#endif /* HAL_SRAM_MODULE_ENABLED */
|
|
|
|
+
|
|
#ifdef HAL_SWPMI_MODULE_ENABLED
|
|
#ifdef HAL_SWPMI_MODULE_ENABLED
|
|
#include "stm32l4xx_hal_swpmi.h"
|
|
#include "stm32l4xx_hal_swpmi.h"
|
|
#endif /* HAL_SWPMI_MODULE_ENABLED */
|
|
#endif /* HAL_SWPMI_MODULE_ENABLED */
|
|
@@ -396,39 +454,15 @@
|
|
#include "stm32l4xx_hal_usart.h"
|
|
#include "stm32l4xx_hal_usart.h"
|
|
#endif /* HAL_USART_MODULE_ENABLED */
|
|
#endif /* HAL_USART_MODULE_ENABLED */
|
|
|
|
|
|
-#ifdef HAL_IRDA_MODULE_ENABLED
|
|
|
|
- #include "stm32l4xx_hal_irda.h"
|
|
|
|
-#endif /* HAL_IRDA_MODULE_ENABLED */
|
|
|
|
-
|
|
|
|
-#ifdef HAL_SMARTCARD_MODULE_ENABLED
|
|
|
|
- #include "stm32l4xx_hal_smartcard.h"
|
|
|
|
-#endif /* HAL_SMARTCARD_MODULE_ENABLED */
|
|
|
|
-
|
|
|
|
#ifdef HAL_WWDG_MODULE_ENABLED
|
|
#ifdef HAL_WWDG_MODULE_ENABLED
|
|
#include "stm32l4xx_hal_wwdg.h"
|
|
#include "stm32l4xx_hal_wwdg.h"
|
|
#endif /* HAL_WWDG_MODULE_ENABLED */
|
|
#endif /* HAL_WWDG_MODULE_ENABLED */
|
|
|
|
|
|
-#ifdef HAL_PCD_MODULE_ENABLED
|
|
|
|
- #include "stm32l4xx_hal_pcd.h"
|
|
|
|
-#endif /* HAL_PCD_MODULE_ENABLED */
|
|
|
|
-
|
|
|
|
-#ifdef HAL_HCD_MODULE_ENABLED
|
|
|
|
- #include "stm32l4xx_hal_hcd.h"
|
|
|
|
-#endif /* HAL_HCD_MODULE_ENABLED */
|
|
|
|
-
|
|
|
|
-#ifdef HAL_GFXMMU_MODULE_ENABLED
|
|
|
|
- #include "stm32l4xx_hal_gfxmmu.h"
|
|
|
|
-#endif /* HAL_GFXMMU_MODULE_ENABLED */
|
|
|
|
-
|
|
|
|
-#ifdef HAL_PSSI_MODULE_ENABLED
|
|
|
|
- #include "stm32l4xx_hal_pssi.h"
|
|
|
|
-#endif /* HAL_PSSI_MODULE_ENABLED */
|
|
|
|
-
|
|
|
|
/* Exported macro ------------------------------------------------------------*/
|
|
/* Exported macro ------------------------------------------------------------*/
|
|
#ifdef USE_FULL_ASSERT
|
|
#ifdef USE_FULL_ASSERT
|
|
/**
|
|
/**
|
|
* @brief The assert_param macro is used for function's parameters check.
|
|
* @brief The assert_param macro is used for function's parameters check.
|
|
- * @param expr: If expr is false, it calls assert_failed function
|
|
|
|
|
|
+ * @param expr If expr is false, it calls assert_failed function
|
|
* which reports the name of the source file and the source
|
|
* which reports the name of the source file and the source
|
|
* line number of the call that failed.
|
|
* line number of the call that failed.
|
|
* If expr is true, it returns no value.
|
|
* If expr is true, it returns no value.
|
|
@@ -436,7 +470,7 @@
|
|
*/
|
|
*/
|
|
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
|
|
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
|
|
/* Exported functions ------------------------------------------------------- */
|
|
/* Exported functions ------------------------------------------------------- */
|
|
- void assert_failed(char *file, uint32_t line);
|
|
|
|
|
|
+ void assert_failed(uint8_t *file, uint32_t line);
|
|
#else
|
|
#else
|
|
#define assert_param(expr) ((void)0U)
|
|
#define assert_param(expr) ((void)0U)
|
|
#endif /* USE_FULL_ASSERT */
|
|
#endif /* USE_FULL_ASSERT */
|
|
@@ -445,6 +479,4 @@
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#endif /* __STM32L4xx_HAL_CONF_H */
|
|
|
|
-
|
|
|
|
-/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
|
|
|
|
|
+#endif /* STM32L4xx_HAL_CONF_H */
|