mbed official / mbed

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

Committer:
Kojto
Date:
Thu Jul 07 14:34:11 2016 +0100
Revision:
122:f9eeca106725
Parent:
117:99a22ba036c9
Release 122 of the mbed library

Changes:
- new targets - Nucleo L432KC, Beetle, Nucleo F446ZE, Nucleo L011K4
- Thread safety addition - mbed API should contain a statement about thread safety
- critical section API addition
- CAS API (core_util_atomic_incr/decr)
- DEVICE_ are generated from targets.json file, device.h deprecated
- Callback replaces FunctionPointer to provide std like interface
- mbed HAL API docs improvements
- toolchain - prexif attributes with MBED_
- add new attributes - packed, weak, forcedinline, align
- target.json - contains targets definitions
- ST - L1XX - Cube update to 1.5
- SPI clock selection fix (clock from APB domain)
- F7 - Cube update v1.4.0
- L0 - baudrate init fix
- L1 - Cube update v1.5
- F3 - baudrate init fix, 3 targets CAN support
- F4 - Cube update v1.12.0, 3 targets CAN support
- L4XX - Cube update v1.5.1
- F0 - update Cube to v1.5.0
- L4 - 2 targets (L476RG/VG) CAN support
- NXP - pwm clock fix for KSDK2 MCU
- LPC2368 - remove ARM toolchain support - due to regression
- KSDK2 - fix SPI , I2C address and repeat start
- Silabs - some fixes backported from mbed 3
- Renesas - RZ_A1H - SystemCoreClockUpdate addition

Who changed what in which revision?

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