Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
Kojto
Date:
Wed Sep 16 15:32:31 2015 +0100
Revision:
107:4f6c30876dfa
Child:
111:4336505e4b1c
Release 107  of the mbed library

Changes:
- new platforms - DISCO_F746NG, DISCO_L476VG, NUCLEO_L476RG
- KL43Z - bugfix RTC init function
- K20 - SPI mode fix

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 107:4f6c30876dfa 5 * @version V1.0.0
Kojto 107:4f6c30876dfa 6 * @date 26-June-2015
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 107:4f6c30876dfa 13 * <h2><center>&copy; COPYRIGHT(c) 2015 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 107:4f6c30876dfa 104 #define HSE_VALUE ((uint32_t)8000000) /*!< 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 107:4f6c30876dfa 108 #define HSE_STARTUP_TIMEOUT ((uint32_t)200) /*!< 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 107:4f6c30876dfa 116 #define MSI_VALUE ((uint32_t)4000000) /*!< 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 107:4f6c30876dfa 125 #define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/
Kojto 107:4f6c30876dfa 126 #endif /* HSI_VALUE */
Kojto 107:4f6c30876dfa 127
Kojto 107:4f6c30876dfa 128 /**
Kojto 107:4f6c30876dfa 129 * @brief Internal Low Speed oscillator (LSI) value.
Kojto 107:4f6c30876dfa 130 */
Kojto 107:4f6c30876dfa 131 #if !defined (LSI_VALUE)
Kojto 107:4f6c30876dfa 132 #define LSI_VALUE ((uint32_t)32000) /*!< LSI Typical Value in Hz*/
Kojto 107:4f6c30876dfa 133 #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz
Kojto 107:4f6c30876dfa 134 The real value may vary depending on the variations
Kojto 107:4f6c30876dfa 135 in voltage and temperature.*/
Kojto 107:4f6c30876dfa 136 /**
Kojto 107:4f6c30876dfa 137 * @brief External Low Speed oscillator (LSE) value.
Kojto 107:4f6c30876dfa 138 * This value is used by the UART, RTC HAL module to compute the system frequency
Kojto 107:4f6c30876dfa 139 */
Kojto 107:4f6c30876dfa 140 #if !defined (LSE_VALUE)
Kojto 107:4f6c30876dfa 141 #define LSE_VALUE ((uint32_t)32768) /*!< Value of the External oscillator in Hz*/
Kojto 107:4f6c30876dfa 142 #endif /* LSE_VALUE */
Kojto 107:4f6c30876dfa 143
Kojto 107:4f6c30876dfa 144 #if !defined (LSE_STARTUP_TIMEOUT)
Kojto 107:4f6c30876dfa 145 #define LSE_STARTUP_TIMEOUT ((uint32_t)500) /*!< Time out for LSE start up, in ms */
Kojto 107:4f6c30876dfa 146 #endif /* HSE_STARTUP_TIMEOUT */
Kojto 107:4f6c30876dfa 147
Kojto 107:4f6c30876dfa 148 /**
Kojto 107:4f6c30876dfa 149 * @brief External clock source for SAI1 peripheral
Kojto 107:4f6c30876dfa 150 * This value is used by the RCC HAL module to compute the SAI1 & SAI2 clock source
Kojto 107:4f6c30876dfa 151 * frequency.
Kojto 107:4f6c30876dfa 152 */
Kojto 107:4f6c30876dfa 153 #if !defined (EXTERNAL_SAI1_CLOCK_VALUE)
Kojto 107:4f6c30876dfa 154 #define EXTERNAL_SAI1_CLOCK_VALUE ((uint32_t)48000) /*!< Value of the SAI1 External clock source in Hz*/
Kojto 107:4f6c30876dfa 155 #endif /* EXTERNAL_SAI1_CLOCK_VALUE */
Kojto 107:4f6c30876dfa 156
Kojto 107:4f6c30876dfa 157 /**
Kojto 107:4f6c30876dfa 158 * @brief External clock source for SAI2 peripheral
Kojto 107:4f6c30876dfa 159 * This value is used by the RCC HAL module to compute the SAI1 & SAI2 clock source
Kojto 107:4f6c30876dfa 160 * frequency.
Kojto 107:4f6c30876dfa 161 */
Kojto 107:4f6c30876dfa 162 #if !defined (EXTERNAL_SAI2_CLOCK_VALUE)
Kojto 107:4f6c30876dfa 163 #define EXTERNAL_SAI2_CLOCK_VALUE ((uint32_t)48000) /*!< Value of the SAI2 External clock source in Hz*/
Kojto 107:4f6c30876dfa 164 #endif /* EXTERNAL_SAI2_CLOCK_VALUE */
Kojto 107:4f6c30876dfa 165
Kojto 107:4f6c30876dfa 166 /* Tip: To avoid modifying this file each time you need to use different HSE,
Kojto 107:4f6c30876dfa 167 === you can define the HSE value in your toolchain compiler preprocessor. */
Kojto 107:4f6c30876dfa 168
Kojto 107:4f6c30876dfa 169 /* ########################### System Configuration ######################### */
Kojto 107:4f6c30876dfa 170 /**
Kojto 107:4f6c30876dfa 171 * @brief This is the HAL system configuration section
Kojto 107:4f6c30876dfa 172 */
Kojto 107:4f6c30876dfa 173 #define VDD_VALUE ((uint32_t)3300) /*!< Value of VDD in mv */
Kojto 107:4f6c30876dfa 174 #define TICK_INT_PRIORITY ((uint32_t)0x0F) /*!< tick interrupt priority */
Kojto 107:4f6c30876dfa 175 #define USE_RTOS 0
Kojto 107:4f6c30876dfa 176 #define PREFETCH_ENABLE 1
Kojto 107:4f6c30876dfa 177 #define INSTRUCTION_CACHE_ENABLE 1
Kojto 107:4f6c30876dfa 178 #define DATA_CACHE_ENABLE 1
Kojto 107:4f6c30876dfa 179
Kojto 107:4f6c30876dfa 180 /* ########################## Assert Selection ############################## */
Kojto 107:4f6c30876dfa 181 /**
Kojto 107:4f6c30876dfa 182 * @brief Uncomment the line below to expanse the "assert_param" macro in the
Kojto 107:4f6c30876dfa 183 * HAL drivers code
Kojto 107:4f6c30876dfa 184 */
Kojto 107:4f6c30876dfa 185 /* #define USE_FULL_ASSERT 1 */
Kojto 107:4f6c30876dfa 186
Kojto 107:4f6c30876dfa 187 /* Includes ------------------------------------------------------------------*/
Kojto 107:4f6c30876dfa 188 /**
Kojto 107:4f6c30876dfa 189 * @brief Include module's header file
Kojto 107:4f6c30876dfa 190 */
Kojto 107:4f6c30876dfa 191
Kojto 107:4f6c30876dfa 192 #ifdef HAL_RCC_MODULE_ENABLED
Kojto 107:4f6c30876dfa 193 #include "stm32l4xx_hal_rcc.h"
Kojto 107:4f6c30876dfa 194 #endif /* HAL_RCC_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 195
Kojto 107:4f6c30876dfa 196 #ifdef HAL_GPIO_MODULE_ENABLED
Kojto 107:4f6c30876dfa 197 #include "stm32l4xx_hal_gpio.h"
Kojto 107:4f6c30876dfa 198 #endif /* HAL_GPIO_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 199
Kojto 107:4f6c30876dfa 200 #ifdef HAL_DMA_MODULE_ENABLED
Kojto 107:4f6c30876dfa 201 #include "stm32l4xx_hal_dma.h"
Kojto 107:4f6c30876dfa 202 #endif /* HAL_DMA_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 203
Kojto 107:4f6c30876dfa 204 #ifdef HAL_DFSDM_MODULE_ENABLED
Kojto 107:4f6c30876dfa 205 #include "stm32l4xx_hal_dfsdm.h"
Kojto 107:4f6c30876dfa 206 #endif /* HAL_DFSDM_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 207
Kojto 107:4f6c30876dfa 208 #ifdef HAL_CORTEX_MODULE_ENABLED
Kojto 107:4f6c30876dfa 209 #include "stm32l4xx_hal_cortex.h"
Kojto 107:4f6c30876dfa 210 #endif /* HAL_CORTEX_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 211
Kojto 107:4f6c30876dfa 212 #ifdef HAL_ADC_MODULE_ENABLED
Kojto 107:4f6c30876dfa 213 #include "stm32l4xx_hal_adc.h"
Kojto 107:4f6c30876dfa 214 #endif /* HAL_ADC_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 215
Kojto 107:4f6c30876dfa 216 #ifdef HAL_CAN_MODULE_ENABLED
Kojto 107:4f6c30876dfa 217 #include "stm32l4xx_hal_can.h"
Kojto 107:4f6c30876dfa 218 #endif /* HAL_CAN_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 219
Kojto 107:4f6c30876dfa 220 #ifdef HAL_COMP_MODULE_ENABLED
Kojto 107:4f6c30876dfa 221 #include "stm32l4xx_hal_comp.h"
Kojto 107:4f6c30876dfa 222 #endif /* HAL_COMP_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 223
Kojto 107:4f6c30876dfa 224 #ifdef HAL_CRC_MODULE_ENABLED
Kojto 107:4f6c30876dfa 225 #include "stm32l4xx_hal_crc.h"
Kojto 107:4f6c30876dfa 226 #endif /* HAL_CRC_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 227
Kojto 107:4f6c30876dfa 228 #ifdef HAL_CRYP_MODULE_ENABLED
Kojto 107:4f6c30876dfa 229 #include "stm32l4xx_hal_cryp.h"
Kojto 107:4f6c30876dfa 230 #endif /* HAL_CRYP_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 231
Kojto 107:4f6c30876dfa 232 #ifdef HAL_DAC_MODULE_ENABLED
Kojto 107:4f6c30876dfa 233 #include "stm32l4xx_hal_dac.h"
Kojto 107:4f6c30876dfa 234 #endif /* HAL_DAC_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 235
Kojto 107:4f6c30876dfa 236 #ifdef HAL_FIREWALL_MODULE_ENABLED
Kojto 107:4f6c30876dfa 237 #include "stm32l4xx_hal_firewall.h"
Kojto 107:4f6c30876dfa 238 #endif /* HAL_FIREWALL_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 239
Kojto 107:4f6c30876dfa 240 #ifdef HAL_FLASH_MODULE_ENABLED
Kojto 107:4f6c30876dfa 241 #include "stm32l4xx_hal_flash.h"
Kojto 107:4f6c30876dfa 242 #endif /* HAL_FLASH_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 243
Kojto 107:4f6c30876dfa 244 #ifdef HAL_SRAM_MODULE_ENABLED
Kojto 107:4f6c30876dfa 245 #include "stm32l4xx_hal_sram.h"
Kojto 107:4f6c30876dfa 246 #endif /* HAL_SRAM_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 247
Kojto 107:4f6c30876dfa 248 #ifdef HAL_NOR_MODULE_ENABLED
Kojto 107:4f6c30876dfa 249 #include "stm32l4xx_hal_nor.h"
Kojto 107:4f6c30876dfa 250 #endif /* HAL_NOR_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 251
Kojto 107:4f6c30876dfa 252 #ifdef HAL_NAND_MODULE_ENABLED
Kojto 107:4f6c30876dfa 253 #include "stm32l4xx_hal_nand.h"
Kojto 107:4f6c30876dfa 254 #endif /* HAL_NAND_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 255
Kojto 107:4f6c30876dfa 256 #ifdef HAL_I2C_MODULE_ENABLED
Kojto 107:4f6c30876dfa 257 #include "stm32l4xx_hal_i2c.h"
Kojto 107:4f6c30876dfa 258 #endif /* HAL_I2C_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 259
Kojto 107:4f6c30876dfa 260 #ifdef HAL_IWDG_MODULE_ENABLED
Kojto 107:4f6c30876dfa 261 #include "stm32l4xx_hal_iwdg.h"
Kojto 107:4f6c30876dfa 262 #endif /* HAL_IWDG_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 263
Kojto 107:4f6c30876dfa 264 #ifdef HAL_LCD_MODULE_ENABLED
Kojto 107:4f6c30876dfa 265 #include "stm32l4xx_hal_lcd.h"
Kojto 107:4f6c30876dfa 266 #endif /* HAL_LCD_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 267
Kojto 107:4f6c30876dfa 268 #ifdef HAL_LPTIM_MODULE_ENABLED
Kojto 107:4f6c30876dfa 269 #include "stm32l4xx_hal_lptim.h"
Kojto 107:4f6c30876dfa 270 #endif /* HAL_LPTIM_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 271
Kojto 107:4f6c30876dfa 272 #ifdef HAL_OPAMP_MODULE_ENABLED
Kojto 107:4f6c30876dfa 273 #include "stm32l4xx_hal_opamp.h"
Kojto 107:4f6c30876dfa 274 #endif /* HAL_OPAMP_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 275
Kojto 107:4f6c30876dfa 276 #ifdef HAL_PWR_MODULE_ENABLED
Kojto 107:4f6c30876dfa 277 #include "stm32l4xx_hal_pwr.h"
Kojto 107:4f6c30876dfa 278 #endif /* HAL_PWR_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 279
Kojto 107:4f6c30876dfa 280 #ifdef HAL_QSPI_MODULE_ENABLED
Kojto 107:4f6c30876dfa 281 #include "stm32l4xx_hal_qspi.h"
Kojto 107:4f6c30876dfa 282 #endif /* HAL_QSPI_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 283
Kojto 107:4f6c30876dfa 284 #ifdef HAL_RNG_MODULE_ENABLED
Kojto 107:4f6c30876dfa 285 #include "stm32l4xx_hal_rng.h"
Kojto 107:4f6c30876dfa 286 #endif /* HAL_RNG_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 287
Kojto 107:4f6c30876dfa 288 #ifdef HAL_RTC_MODULE_ENABLED
Kojto 107:4f6c30876dfa 289 #include "stm32l4xx_hal_rtc.h"
Kojto 107:4f6c30876dfa 290 #endif /* HAL_RTC_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 291
Kojto 107:4f6c30876dfa 292 #ifdef HAL_SAI_MODULE_ENABLED
Kojto 107:4f6c30876dfa 293 #include "stm32l4xx_hal_sai.h"
Kojto 107:4f6c30876dfa 294 #endif /* HAL_SAI_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 295
Kojto 107:4f6c30876dfa 296 #ifdef HAL_SD_MODULE_ENABLED
Kojto 107:4f6c30876dfa 297 #include "stm32l4xx_hal_sd.h"
Kojto 107:4f6c30876dfa 298 #endif /* HAL_SD_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 299
Kojto 107:4f6c30876dfa 300 #ifdef HAL_SMBUS_MODULE_ENABLED
Kojto 107:4f6c30876dfa 301 #include "stm32l4xx_hal_smbus.h"
Kojto 107:4f6c30876dfa 302 #endif /* HAL_SMBUS_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 303
Kojto 107:4f6c30876dfa 304 #ifdef HAL_SPI_MODULE_ENABLED
Kojto 107:4f6c30876dfa 305 #include "stm32l4xx_hal_spi.h"
Kojto 107:4f6c30876dfa 306 #endif /* HAL_SPI_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 307
Kojto 107:4f6c30876dfa 308 #ifdef HAL_SWPMI_MODULE_ENABLED
Kojto 107:4f6c30876dfa 309 #include "stm32l4xx_hal_swpmi.h"
Kojto 107:4f6c30876dfa 310 #endif /* HAL_SWPMI_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 311
Kojto 107:4f6c30876dfa 312 #ifdef HAL_TIM_MODULE_ENABLED
Kojto 107:4f6c30876dfa 313 #include "stm32l4xx_hal_tim.h"
Kojto 107:4f6c30876dfa 314 #endif /* HAL_TIM_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 315
Kojto 107:4f6c30876dfa 316 #ifdef HAL_TSC_MODULE_ENABLED
Kojto 107:4f6c30876dfa 317 #include "stm32l4xx_hal_tsc.h"
Kojto 107:4f6c30876dfa 318 #endif /* HAL_TSC_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 319
Kojto 107:4f6c30876dfa 320 #ifdef HAL_UART_MODULE_ENABLED
Kojto 107:4f6c30876dfa 321 #include "stm32l4xx_hal_uart.h"
Kojto 107:4f6c30876dfa 322 #endif /* HAL_UART_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 323
Kojto 107:4f6c30876dfa 324 #ifdef HAL_USART_MODULE_ENABLED
Kojto 107:4f6c30876dfa 325 #include "stm32l4xx_hal_usart.h"
Kojto 107:4f6c30876dfa 326 #endif /* HAL_USART_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 327
Kojto 107:4f6c30876dfa 328 #ifdef HAL_IRDA_MODULE_ENABLED
Kojto 107:4f6c30876dfa 329 #include "stm32l4xx_hal_irda.h"
Kojto 107:4f6c30876dfa 330 #endif /* HAL_IRDA_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 331
Kojto 107:4f6c30876dfa 332 #ifdef HAL_SMARTCARD_MODULE_ENABLED
Kojto 107:4f6c30876dfa 333 #include "stm32l4xx_hal_smartcard.h"
Kojto 107:4f6c30876dfa 334 #endif /* HAL_SMARTCARD_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 335
Kojto 107:4f6c30876dfa 336 #ifdef HAL_WWDG_MODULE_ENABLED
Kojto 107:4f6c30876dfa 337 #include "stm32l4xx_hal_wwdg.h"
Kojto 107:4f6c30876dfa 338 #endif /* HAL_WWDG_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 339
Kojto 107:4f6c30876dfa 340 #ifdef HAL_PCD_MODULE_ENABLED
Kojto 107:4f6c30876dfa 341 #include "stm32l4xx_hal_pcd.h"
Kojto 107:4f6c30876dfa 342 #endif /* HAL_PCD_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 343
Kojto 107:4f6c30876dfa 344 #ifdef HAL_HCD_MODULE_ENABLED
Kojto 107:4f6c30876dfa 345 #include "stm32l4xx_hal_hcd.h"
Kojto 107:4f6c30876dfa 346 #endif /* HAL_HCD_MODULE_ENABLED */
Kojto 107:4f6c30876dfa 347
Kojto 107:4f6c30876dfa 348 /* Exported macro ------------------------------------------------------------*/
Kojto 107:4f6c30876dfa 349 #ifdef USE_FULL_ASSERT
Kojto 107:4f6c30876dfa 350 /**
Kojto 107:4f6c30876dfa 351 * @brief The assert_param macro is used for function's parameters check.
Kojto 107:4f6c30876dfa 352 * @param expr: If expr is false, it calls assert_failed function
Kojto 107:4f6c30876dfa 353 * which reports the name of the source file and the source
Kojto 107:4f6c30876dfa 354 * line number of the call that failed.
Kojto 107:4f6c30876dfa 355 * If expr is true, it returns no value.
Kojto 107:4f6c30876dfa 356 * @retval None
Kojto 107:4f6c30876dfa 357 */
Kojto 107:4f6c30876dfa 358 #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
Kojto 107:4f6c30876dfa 359 /* Exported functions ------------------------------------------------------- */
Kojto 107:4f6c30876dfa 360 void assert_failed(uint8_t* file, uint32_t line);
Kojto 107:4f6c30876dfa 361 #else
Kojto 107:4f6c30876dfa 362 #define assert_param(expr) ((void)0)
Kojto 107:4f6c30876dfa 363 #endif /* USE_FULL_ASSERT */
Kojto 107:4f6c30876dfa 364
Kojto 107:4f6c30876dfa 365 #ifdef __cplusplus
Kojto 107:4f6c30876dfa 366 }
Kojto 107:4f6c30876dfa 367 #endif
Kojto 107:4f6c30876dfa 368
Kojto 107:4f6c30876dfa 369 #endif /* __STM32L4xx_HAL_CONF_H */
Kojto 107:4f6c30876dfa 370
Kojto 107:4f6c30876dfa 371
Kojto 107:4f6c30876dfa 372 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/