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