The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_NUCLEO_L486RG/TARGET_STM/TARGET_STM32L4/device/stm32l4xx_hal_conf.h@140:97feb9bacc10, 2017-04-12 (annotated)
- Committer:
- <>
- Date:
- Wed Apr 12 16:07:08 2017 +0100
- Revision:
- 140:97feb9bacc10
- Parent:
- 133:99b5ccf27215
- Child:
- 145:64910690c574
Release 140 of the mbed library
Ports for Upcoming Targets
3841: Add nRf52840 target https://github.com/ARMmbed/mbed-os/pull/3841
3992: Introducing UBLOX_C030 platform. https://github.com/ARMmbed/mbed-os/pull/3992
Fixes and Changes
3951: [NUCLEO_F303ZE] Correct ARDUINO pin https://github.com/ARMmbed/mbed-os/pull/3951
4021: Fixing a macro to detect when RTOS was in use for the NRF52840_DK https://github.com/ARMmbed/mbed-os/pull/4021
3979: KW24D: Add missing SPI defines and Arduino connector definitions https://github.com/ARMmbed/mbed-os/pull/3979
3990: UBLOX_C027: construct a ticker-based wait, rather than calling wait_ms(), in the https://github.com/ARMmbed/mbed-os/pull/3990
4003: Fixed OBOE in async serial tx for NRF52 target, fixes #4002 https://github.com/ARMmbed/mbed-os/pull/4003
4012: STM32: Correct I2C master error handling https://github.com/ARMmbed/mbed-os/pull/4012
4020: NUCLEO_L011K4 remove unsupported tool chain files https://github.com/ARMmbed/mbed-os/pull/4020
4065: K66F: Move bss section to m_data_2 Section https://github.com/ARMmbed/mbed-os/pull/4065
4014: Issue 3763: Reduce heap allocation in the GCC linker file https://github.com/ARMmbed/mbed-os/pull/4014
4030: [STM32L0] reduce IAR heap and stack size for small targets https://github.com/ARMmbed/mbed-os/pull/4030
4109: NUCLEO_L476RG : minor serial pin update https://github.com/ARMmbed/mbed-os/pull/4109
3982: Ticker - kl25z bugfix for handling events in the past https://github.com/ARMmbed/mbed-os/pull/3982
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 133:99b5ccf27215 | 1 | /** |
<> | 133:99b5ccf27215 | 2 | ****************************************************************************** |
<> | 133:99b5ccf27215 | 3 | * @file stm32l4xx_hal_conf.h |
<> | 133:99b5ccf27215 | 4 | * @author MCD Application Team |
<> | 133:99b5ccf27215 | 5 | * @version V1.5.1 |
<> | 133:99b5ccf27215 | 6 | * @date 31-May-2016 |
<> | 133:99b5ccf27215 | 7 | * @brief HAL configuration file. |
<> | 133:99b5ccf27215 | 8 | ****************************************************************************** |
<> | 133:99b5ccf27215 | 9 | * @attention |
<> | 133:99b5ccf27215 | 10 | * |
<> | 133:99b5ccf27215 | 11 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
<> | 133:99b5ccf27215 | 12 | * |
<> | 133:99b5ccf27215 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
<> | 133:99b5ccf27215 | 14 | * are permitted provided that the following conditions are met: |
<> | 133:99b5ccf27215 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
<> | 133:99b5ccf27215 | 16 | * this list of conditions and the following disclaimer. |
<> | 133:99b5ccf27215 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
<> | 133:99b5ccf27215 | 18 | * this list of conditions and the following disclaimer in the documentation |
<> | 133:99b5ccf27215 | 19 | * and/or other materials provided with the distribution. |
<> | 133:99b5ccf27215 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
<> | 133:99b5ccf27215 | 21 | * may be used to endorse or promote products derived from this software |
<> | 133:99b5ccf27215 | 22 | * without specific prior written permission. |
<> | 133:99b5ccf27215 | 23 | * |
<> | 133:99b5ccf27215 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
<> | 133:99b5ccf27215 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
<> | 133:99b5ccf27215 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
<> | 133:99b5ccf27215 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
<> | 133:99b5ccf27215 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
<> | 133:99b5ccf27215 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
<> | 133:99b5ccf27215 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
<> | 133:99b5ccf27215 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
<> | 133:99b5ccf27215 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
<> | 133:99b5ccf27215 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
<> | 133:99b5ccf27215 | 34 | * |
<> | 133:99b5ccf27215 | 35 | ****************************************************************************** |
<> | 133:99b5ccf27215 | 36 | */ |
<> | 133:99b5ccf27215 | 37 | |
<> | 133:99b5ccf27215 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
<> | 133:99b5ccf27215 | 39 | #ifndef __STM32L4xx_HAL_CONF_H |
<> | 133:99b5ccf27215 | 40 | #define __STM32L4xx_HAL_CONF_H |
<> | 133:99b5ccf27215 | 41 | |
<> | 133:99b5ccf27215 | 42 | #ifdef __cplusplus |
<> | 133:99b5ccf27215 | 43 | extern "C" { |
<> | 133:99b5ccf27215 | 44 | #endif |
<> | 133:99b5ccf27215 | 45 | |
<> | 133:99b5ccf27215 | 46 | /* Exported types ------------------------------------------------------------*/ |
<> | 133:99b5ccf27215 | 47 | /* Exported constants --------------------------------------------------------*/ |
<> | 133:99b5ccf27215 | 48 | |
<> | 133:99b5ccf27215 | 49 | /* ########################## Module Selection ############################## */ |
<> | 133:99b5ccf27215 | 50 | /** |
<> | 133:99b5ccf27215 | 51 | * @brief This is the list of modules to be used in the HAL driver |
<> | 133:99b5ccf27215 | 52 | */ |
<> | 133:99b5ccf27215 | 53 | #define HAL_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 54 | #define HAL_ADC_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 55 | #define HAL_CAN_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 56 | #define HAL_COMP_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 57 | #define HAL_CORTEX_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 58 | #define HAL_CRC_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 59 | #define HAL_CRYP_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 60 | #define HAL_DAC_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 61 | #define HAL_DFSDM_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 62 | #define HAL_DMA_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 63 | #define HAL_FIREWALL_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 64 | #define HAL_FLASH_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 65 | #define HAL_HCD_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 66 | #define HAL_NAND_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 67 | #define HAL_NOR_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 68 | #define HAL_SRAM_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 69 | #define HAL_GPIO_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 70 | #define HAL_I2C_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 71 | #define HAL_IRDA_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 72 | #define HAL_IWDG_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 73 | #define HAL_LCD_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 74 | #define HAL_LPTIM_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 75 | #define HAL_OPAMP_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 76 | #define HAL_PCD_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 77 | #define HAL_PWR_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 78 | #define HAL_QSPI_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 79 | #define HAL_RCC_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 80 | #define HAL_RNG_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 81 | #define HAL_RTC_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 82 | #define HAL_SAI_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 83 | #define HAL_SD_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 84 | #define HAL_SMARTCARD_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 85 | #define HAL_SMBUS_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 86 | #define HAL_SPI_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 87 | #define HAL_SWPMI_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 88 | #define HAL_TIM_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 89 | #define HAL_TSC_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 90 | #define HAL_UART_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 91 | #define HAL_USART_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 92 | #define HAL_WWDG_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 93 | |
<> | 133:99b5ccf27215 | 94 | |
<> | 133:99b5ccf27215 | 95 | /* ########################## Oscillator Values adaptation ####################*/ |
<> | 133:99b5ccf27215 | 96 | /** |
<> | 133:99b5ccf27215 | 97 | * @brief Adjust the value of External High Speed oscillator (HSE) used in your application. |
<> | 133:99b5ccf27215 | 98 | * This value is used by the RCC HAL module to compute the system frequency |
<> | 133:99b5ccf27215 | 99 | * (when HSE is used as system clock source, directly or through the PLL). |
<> | 133:99b5ccf27215 | 100 | */ |
<> | 133:99b5ccf27215 | 101 | #if !defined (HSE_VALUE) |
<> | 133:99b5ccf27215 | 102 | #define HSE_VALUE ((uint32_t)8000000U) /*!< Value of the External oscillator in Hz */ |
<> | 133:99b5ccf27215 | 103 | #endif /* HSE_VALUE */ |
<> | 133:99b5ccf27215 | 104 | |
<> | 133:99b5ccf27215 | 105 | #if !defined (HSE_STARTUP_TIMEOUT) |
<> | 133:99b5ccf27215 | 106 | #define HSE_STARTUP_TIMEOUT ((uint32_t)200U) /*!< Time out for HSE start up, in ms */ |
<> | 133:99b5ccf27215 | 107 | #endif /* HSE_STARTUP_TIMEOUT */ |
<> | 133:99b5ccf27215 | 108 | |
<> | 133:99b5ccf27215 | 109 | /** |
<> | 133:99b5ccf27215 | 110 | * @brief Internal Multiple Speed oscillator (MSI) default value. |
<> | 133:99b5ccf27215 | 111 | * This value is the default MSI range value after Reset. |
<> | 133:99b5ccf27215 | 112 | */ |
<> | 133:99b5ccf27215 | 113 | #if !defined (MSI_VALUE) |
<> | 133:99b5ccf27215 | 114 | #define MSI_VALUE ((uint32_t)4000000U) /*!< Value of the Internal oscillator in Hz*/ |
<> | 133:99b5ccf27215 | 115 | #endif /* MSI_VALUE */ |
<> | 133:99b5ccf27215 | 116 | |
<> | 133:99b5ccf27215 | 117 | /** |
<> | 133:99b5ccf27215 | 118 | * @brief Internal High Speed oscillator (HSI) value. |
<> | 133:99b5ccf27215 | 119 | * This value is used by the RCC HAL module to compute the system frequency |
<> | 133:99b5ccf27215 | 120 | * (when HSI is used as system clock source, directly or through the PLL). |
<> | 133:99b5ccf27215 | 121 | */ |
<> | 133:99b5ccf27215 | 122 | #if !defined (HSI_VALUE) |
<> | 133:99b5ccf27215 | 123 | #define HSI_VALUE ((uint32_t)16000000U) /*!< Value of the Internal oscillator in Hz*/ |
<> | 133:99b5ccf27215 | 124 | #endif /* HSI_VALUE */ |
<> | 133:99b5ccf27215 | 125 | |
<> | 133:99b5ccf27215 | 126 | /** |
<> | 133:99b5ccf27215 | 127 | * @brief Internal High Speed oscillator (HSI48) value for USB FS, SDMMC and RNG. |
<> | 133:99b5ccf27215 | 128 | * This internal oscillator is mainly dedicated to provide a high precision clock to |
<> | 133:99b5ccf27215 | 129 | * the USB peripheral by means of a special Clock Recovery System (CRS) circuitry. |
<> | 133:99b5ccf27215 | 130 | * When the CRS is not used, the HSI48 RC oscillator runs on it default frequency |
<> | 133:99b5ccf27215 | 131 | * which is subject to manufacturing process variations. |
<> | 133:99b5ccf27215 | 132 | */ |
<> | 133:99b5ccf27215 | 133 | #if !defined (HSI48_VALUE) |
<> | 133:99b5ccf27215 | 134 | #define HSI48_VALUE ((uint32_t)48000000U) /*!< Value of the Internal High Speed oscillator for USB FS/SDMMC/RNG in Hz. |
<> | 133:99b5ccf27215 | 135 | The real value my vary depending on manufacturing process variations.*/ |
<> | 133:99b5ccf27215 | 136 | #endif /* HSI48_VALUE */ |
<> | 133:99b5ccf27215 | 137 | |
<> | 133:99b5ccf27215 | 138 | /** |
<> | 133:99b5ccf27215 | 139 | * @brief Internal Low Speed oscillator (LSI) value. |
<> | 133:99b5ccf27215 | 140 | */ |
<> | 133:99b5ccf27215 | 141 | #if !defined (LSI_VALUE) |
<> | 133:99b5ccf27215 | 142 | #define LSI_VALUE ((uint32_t)32000U) /*!< LSI Typical Value in Hz*/ |
<> | 133:99b5ccf27215 | 143 | #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz |
<> | 133:99b5ccf27215 | 144 | The real value may vary depending on the variations |
<> | 133:99b5ccf27215 | 145 | in voltage and temperature.*/ |
<> | 133:99b5ccf27215 | 146 | /** |
<> | 133:99b5ccf27215 | 147 | * @brief External Low Speed oscillator (LSE) value. |
<> | 133:99b5ccf27215 | 148 | * This value is used by the UART, RTC HAL module to compute the system frequency |
<> | 133:99b5ccf27215 | 149 | */ |
<> | 133:99b5ccf27215 | 150 | #if !defined (LSE_VALUE) |
<> | 133:99b5ccf27215 | 151 | #define LSE_VALUE ((uint32_t)32768U) /*!< Value of the External oscillator in Hz*/ |
<> | 133:99b5ccf27215 | 152 | #endif /* LSE_VALUE */ |
<> | 133:99b5ccf27215 | 153 | |
<> | 133:99b5ccf27215 | 154 | #if !defined (LSE_STARTUP_TIMEOUT) |
<> | 133:99b5ccf27215 | 155 | #define LSE_STARTUP_TIMEOUT ((uint32_t)5000U) /*!< Time out for LSE start up, in ms */ |
<> | 133:99b5ccf27215 | 156 | #endif /* HSE_STARTUP_TIMEOUT */ |
<> | 133:99b5ccf27215 | 157 | |
<> | 133:99b5ccf27215 | 158 | /** |
<> | 133:99b5ccf27215 | 159 | * @brief External clock source for SAI1 peripheral |
<> | 133:99b5ccf27215 | 160 | * This value is used by the RCC HAL module to compute the SAI1 & SAI2 clock source |
<> | 133:99b5ccf27215 | 161 | * frequency. |
<> | 133:99b5ccf27215 | 162 | */ |
<> | 133:99b5ccf27215 | 163 | #if !defined (EXTERNAL_SAI1_CLOCK_VALUE) |
<> | 133:99b5ccf27215 | 164 | #define EXTERNAL_SAI1_CLOCK_VALUE ((uint32_t)48000U) /*!< Value of the SAI1 External clock source in Hz*/ |
<> | 133:99b5ccf27215 | 165 | #endif /* EXTERNAL_SAI1_CLOCK_VALUE */ |
<> | 133:99b5ccf27215 | 166 | |
<> | 133:99b5ccf27215 | 167 | /** |
<> | 133:99b5ccf27215 | 168 | * @brief External clock source for SAI2 peripheral |
<> | 133:99b5ccf27215 | 169 | * This value is used by the RCC HAL module to compute the SAI1 & SAI2 clock source |
<> | 133:99b5ccf27215 | 170 | * frequency. |
<> | 133:99b5ccf27215 | 171 | */ |
<> | 133:99b5ccf27215 | 172 | #if !defined (EXTERNAL_SAI2_CLOCK_VALUE) |
<> | 133:99b5ccf27215 | 173 | #define EXTERNAL_SAI2_CLOCK_VALUE ((uint32_t)48000U) /*!< Value of the SAI2 External clock source in Hz*/ |
<> | 133:99b5ccf27215 | 174 | #endif /* EXTERNAL_SAI2_CLOCK_VALUE */ |
<> | 133:99b5ccf27215 | 175 | |
<> | 133:99b5ccf27215 | 176 | /* Tip: To avoid modifying this file each time you need to use different HSE, |
<> | 133:99b5ccf27215 | 177 | === you can define the HSE value in your toolchain compiler preprocessor. */ |
<> | 133:99b5ccf27215 | 178 | |
<> | 133:99b5ccf27215 | 179 | /* ########################### System Configuration ######################### */ |
<> | 133:99b5ccf27215 | 180 | /** |
<> | 133:99b5ccf27215 | 181 | * @brief This is the HAL system configuration section |
<> | 133:99b5ccf27215 | 182 | */ |
<> | 133:99b5ccf27215 | 183 | #define VDD_VALUE ((uint32_t)3300U) /*!< Value of VDD in mv */ |
<> | 133:99b5ccf27215 | 184 | #define TICK_INT_PRIORITY ((uint32_t)0x0FU) /*!< tick interrupt priority */ |
<> | 133:99b5ccf27215 | 185 | #define USE_RTOS 0 |
<> | 133:99b5ccf27215 | 186 | #define PREFETCH_ENABLE 0 |
<> | 133:99b5ccf27215 | 187 | #define INSTRUCTION_CACHE_ENABLE 1 |
<> | 133:99b5ccf27215 | 188 | #define DATA_CACHE_ENABLE 1 |
<> | 133:99b5ccf27215 | 189 | |
<> | 133:99b5ccf27215 | 190 | /* ########################## Assert Selection ############################## */ |
<> | 133:99b5ccf27215 | 191 | /** |
<> | 133:99b5ccf27215 | 192 | * @brief Uncomment the line below to expanse the "assert_param" macro in the |
<> | 133:99b5ccf27215 | 193 | * HAL drivers code |
<> | 133:99b5ccf27215 | 194 | */ |
<> | 133:99b5ccf27215 | 195 | /* #define USE_FULL_ASSERT 1 */ |
<> | 133:99b5ccf27215 | 196 | |
<> | 133:99b5ccf27215 | 197 | /* Includes ------------------------------------------------------------------*/ |
<> | 133:99b5ccf27215 | 198 | /** |
<> | 133:99b5ccf27215 | 199 | * @brief Include module's header file |
<> | 133:99b5ccf27215 | 200 | */ |
<> | 133:99b5ccf27215 | 201 | |
<> | 133:99b5ccf27215 | 202 | #ifdef HAL_RCC_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 203 | #include "stm32l4xx_hal_rcc.h" |
<> | 133:99b5ccf27215 | 204 | #endif /* HAL_RCC_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 205 | |
<> | 133:99b5ccf27215 | 206 | #ifdef HAL_GPIO_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 207 | #include "stm32l4xx_hal_gpio.h" |
<> | 133:99b5ccf27215 | 208 | #endif /* HAL_GPIO_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 209 | |
<> | 133:99b5ccf27215 | 210 | #ifdef HAL_DMA_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 211 | #include "stm32l4xx_hal_dma.h" |
<> | 133:99b5ccf27215 | 212 | #endif /* HAL_DMA_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 213 | |
<> | 133:99b5ccf27215 | 214 | #ifdef HAL_DFSDM_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 215 | #include "stm32l4xx_hal_dfsdm.h" |
<> | 133:99b5ccf27215 | 216 | #endif /* HAL_DFSDM_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 217 | |
<> | 133:99b5ccf27215 | 218 | #ifdef HAL_CORTEX_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 219 | #include "stm32l4xx_hal_cortex.h" |
<> | 133:99b5ccf27215 | 220 | #endif /* HAL_CORTEX_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 221 | |
<> | 133:99b5ccf27215 | 222 | #ifdef HAL_ADC_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 223 | #include "stm32l4xx_hal_adc.h" |
<> | 133:99b5ccf27215 | 224 | #endif /* HAL_ADC_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 225 | |
<> | 133:99b5ccf27215 | 226 | #ifdef HAL_CAN_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 227 | #include "stm32l4xx_hal_can.h" |
<> | 133:99b5ccf27215 | 228 | #endif /* HAL_CAN_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 229 | |
<> | 133:99b5ccf27215 | 230 | #ifdef HAL_COMP_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 231 | #include "stm32l4xx_hal_comp.h" |
<> | 133:99b5ccf27215 | 232 | #endif /* HAL_COMP_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 233 | |
<> | 133:99b5ccf27215 | 234 | #ifdef HAL_CRC_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 235 | #include "stm32l4xx_hal_crc.h" |
<> | 133:99b5ccf27215 | 236 | #endif /* HAL_CRC_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 237 | |
<> | 133:99b5ccf27215 | 238 | #ifdef HAL_CRYP_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 239 | #include "stm32l4xx_hal_cryp.h" |
<> | 133:99b5ccf27215 | 240 | #endif /* HAL_CRYP_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 241 | |
<> | 133:99b5ccf27215 | 242 | #ifdef HAL_DAC_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 243 | #include "stm32l4xx_hal_dac.h" |
<> | 133:99b5ccf27215 | 244 | #endif /* HAL_DAC_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 245 | |
<> | 133:99b5ccf27215 | 246 | #ifdef HAL_FIREWALL_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 247 | #include "stm32l4xx_hal_firewall.h" |
<> | 133:99b5ccf27215 | 248 | #endif /* HAL_FIREWALL_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 249 | |
<> | 133:99b5ccf27215 | 250 | #ifdef HAL_FLASH_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 251 | #include "stm32l4xx_hal_flash.h" |
<> | 133:99b5ccf27215 | 252 | #endif /* HAL_FLASH_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 253 | |
<> | 133:99b5ccf27215 | 254 | #ifdef HAL_SRAM_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 255 | #include "stm32l4xx_hal_sram.h" |
<> | 133:99b5ccf27215 | 256 | #endif /* HAL_SRAM_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 257 | |
<> | 133:99b5ccf27215 | 258 | #ifdef HAL_NOR_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 259 | #include "stm32l4xx_hal_nor.h" |
<> | 133:99b5ccf27215 | 260 | #endif /* HAL_NOR_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 261 | |
<> | 133:99b5ccf27215 | 262 | #ifdef HAL_NAND_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 263 | #include "stm32l4xx_hal_nand.h" |
<> | 133:99b5ccf27215 | 264 | #endif /* HAL_NAND_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 265 | |
<> | 133:99b5ccf27215 | 266 | #ifdef HAL_I2C_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 267 | #include "stm32l4xx_hal_i2c.h" |
<> | 133:99b5ccf27215 | 268 | #endif /* HAL_I2C_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 269 | |
<> | 133:99b5ccf27215 | 270 | #ifdef HAL_IWDG_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 271 | #include "stm32l4xx_hal_iwdg.h" |
<> | 133:99b5ccf27215 | 272 | #endif /* HAL_IWDG_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 273 | |
<> | 133:99b5ccf27215 | 274 | #ifdef HAL_LCD_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 275 | #include "stm32l4xx_hal_lcd.h" |
<> | 133:99b5ccf27215 | 276 | #endif /* HAL_LCD_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 277 | |
<> | 133:99b5ccf27215 | 278 | #ifdef HAL_LPTIM_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 279 | #include "stm32l4xx_hal_lptim.h" |
<> | 133:99b5ccf27215 | 280 | #endif /* HAL_LPTIM_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 281 | |
<> | 133:99b5ccf27215 | 282 | #ifdef HAL_OPAMP_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 283 | #include "stm32l4xx_hal_opamp.h" |
<> | 133:99b5ccf27215 | 284 | #endif /* HAL_OPAMP_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 285 | |
<> | 133:99b5ccf27215 | 286 | #ifdef HAL_PWR_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 287 | #include "stm32l4xx_hal_pwr.h" |
<> | 133:99b5ccf27215 | 288 | #endif /* HAL_PWR_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 289 | |
<> | 133:99b5ccf27215 | 290 | #ifdef HAL_QSPI_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 291 | #include "stm32l4xx_hal_qspi.h" |
<> | 133:99b5ccf27215 | 292 | #endif /* HAL_QSPI_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 293 | |
<> | 133:99b5ccf27215 | 294 | #ifdef HAL_RNG_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 295 | #include "stm32l4xx_hal_rng.h" |
<> | 133:99b5ccf27215 | 296 | #endif /* HAL_RNG_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 297 | |
<> | 133:99b5ccf27215 | 298 | #ifdef HAL_RTC_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 299 | #include "stm32l4xx_hal_rtc.h" |
<> | 133:99b5ccf27215 | 300 | #endif /* HAL_RTC_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 301 | |
<> | 133:99b5ccf27215 | 302 | #ifdef HAL_SAI_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 303 | #include "stm32l4xx_hal_sai.h" |
<> | 133:99b5ccf27215 | 304 | #endif /* HAL_SAI_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 305 | |
<> | 133:99b5ccf27215 | 306 | #ifdef HAL_SD_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 307 | #include "stm32l4xx_hal_sd.h" |
<> | 133:99b5ccf27215 | 308 | #endif /* HAL_SD_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 309 | |
<> | 133:99b5ccf27215 | 310 | #ifdef HAL_SMBUS_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 311 | #include "stm32l4xx_hal_smbus.h" |
<> | 133:99b5ccf27215 | 312 | #endif /* HAL_SMBUS_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 313 | |
<> | 133:99b5ccf27215 | 314 | #ifdef HAL_SPI_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 315 | #include "stm32l4xx_hal_spi.h" |
<> | 133:99b5ccf27215 | 316 | #endif /* HAL_SPI_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 317 | |
<> | 133:99b5ccf27215 | 318 | #ifdef HAL_SWPMI_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 319 | #include "stm32l4xx_hal_swpmi.h" |
<> | 133:99b5ccf27215 | 320 | #endif /* HAL_SWPMI_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 321 | |
<> | 133:99b5ccf27215 | 322 | #ifdef HAL_TIM_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 323 | #include "stm32l4xx_hal_tim.h" |
<> | 133:99b5ccf27215 | 324 | #endif /* HAL_TIM_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 325 | |
<> | 133:99b5ccf27215 | 326 | #ifdef HAL_TSC_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 327 | #include "stm32l4xx_hal_tsc.h" |
<> | 133:99b5ccf27215 | 328 | #endif /* HAL_TSC_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 329 | |
<> | 133:99b5ccf27215 | 330 | #ifdef HAL_UART_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 331 | #include "stm32l4xx_hal_uart.h" |
<> | 133:99b5ccf27215 | 332 | #endif /* HAL_UART_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 333 | |
<> | 133:99b5ccf27215 | 334 | #ifdef HAL_USART_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 335 | #include "stm32l4xx_hal_usart.h" |
<> | 133:99b5ccf27215 | 336 | #endif /* HAL_USART_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 337 | |
<> | 133:99b5ccf27215 | 338 | #ifdef HAL_IRDA_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 339 | #include "stm32l4xx_hal_irda.h" |
<> | 133:99b5ccf27215 | 340 | #endif /* HAL_IRDA_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 341 | |
<> | 133:99b5ccf27215 | 342 | #ifdef HAL_SMARTCARD_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 343 | #include "stm32l4xx_hal_smartcard.h" |
<> | 133:99b5ccf27215 | 344 | #endif /* HAL_SMARTCARD_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 345 | |
<> | 133:99b5ccf27215 | 346 | #ifdef HAL_WWDG_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 347 | #include "stm32l4xx_hal_wwdg.h" |
<> | 133:99b5ccf27215 | 348 | #endif /* HAL_WWDG_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 349 | |
<> | 133:99b5ccf27215 | 350 | #ifdef HAL_PCD_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 351 | #include "stm32l4xx_hal_pcd.h" |
<> | 133:99b5ccf27215 | 352 | #endif /* HAL_PCD_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 353 | |
<> | 133:99b5ccf27215 | 354 | #ifdef HAL_HCD_MODULE_ENABLED |
<> | 133:99b5ccf27215 | 355 | #include "stm32l4xx_hal_hcd.h" |
<> | 133:99b5ccf27215 | 356 | #endif /* HAL_HCD_MODULE_ENABLED */ |
<> | 133:99b5ccf27215 | 357 | |
<> | 133:99b5ccf27215 | 358 | /* Exported macro ------------------------------------------------------------*/ |
<> | 133:99b5ccf27215 | 359 | #ifdef USE_FULL_ASSERT |
<> | 133:99b5ccf27215 | 360 | /** |
<> | 133:99b5ccf27215 | 361 | * @brief The assert_param macro is used for function's parameters check. |
<> | 133:99b5ccf27215 | 362 | * @param expr: If expr is false, it calls assert_failed function |
<> | 133:99b5ccf27215 | 363 | * which reports the name of the source file and the source |
<> | 133:99b5ccf27215 | 364 | * line number of the call that failed. |
<> | 133:99b5ccf27215 | 365 | * If expr is true, it returns no value. |
<> | 133:99b5ccf27215 | 366 | * @retval None |
<> | 133:99b5ccf27215 | 367 | */ |
<> | 133:99b5ccf27215 | 368 | #include "mbed_assert.h" |
<> | 133:99b5ccf27215 | 369 | #define assert_param(expr) MBED_ASSERT(expr) |
<> | 133:99b5ccf27215 | 370 | #else |
<> | 133:99b5ccf27215 | 371 | #define assert_param(expr) ((void)0U) |
<> | 133:99b5ccf27215 | 372 | #endif /* USE_FULL_ASSERT */ |
<> | 133:99b5ccf27215 | 373 | |
<> | 133:99b5ccf27215 | 374 | #ifdef __cplusplus |
<> | 133:99b5ccf27215 | 375 | } |
<> | 133:99b5ccf27215 | 376 | #endif |
<> | 133:99b5ccf27215 | 377 | |
<> | 133:99b5ccf27215 | 378 | #endif /* __STM32L4xx_HAL_CONF_H */ |
<> | 133:99b5ccf27215 | 379 | |
<> | 133:99b5ccf27215 | 380 | |
<> | 133:99b5ccf27215 | 381 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |