|
2 | 2 | ******************************************************************************
|
3 | 3 | * @file stm32l1xx_hal_conf.h
|
4 | 4 | * @author MCD Application Team
|
5 |
| - * @version 21-April-2017 |
6 |
| - * @date V1.3.0 |
7 | 5 | * @brief HAL configuration template file.
|
8 | 6 | * This file should be copied to the application folder and renamed
|
9 | 7 | * to stm32l1xx_hal_conf.h.
|
10 | 8 | ******************************************************************************
|
11 | 9 | * @attention
|
12 | 10 | *
|
13 |
| - * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> |
| 11 | + * <h2><center>© Copyright (c) 2017 STMicroelectronics. |
| 12 | + * All rights reserved.</center></h2> |
14 | 13 | *
|
15 |
| - * Redistribution and use in source and binary forms, with or without modification, |
16 |
| - * are permitted provided that the following conditions are met: |
17 |
| - * 1. Redistributions of source code must retain the above copyright notice, |
18 |
| - * this list of conditions and the following disclaimer. |
19 |
| - * 2. Redistributions in binary form must reproduce the above copyright notice, |
20 |
| - * this list of conditions and the following disclaimer in the documentation |
21 |
| - * and/or other materials provided with the distribution. |
22 |
| - * 3. Neither the name of STMicroelectronics nor the names of its contributors |
23 |
| - * may be used to endorse or promote products derived from this software |
24 |
| - * without specific prior written permission. |
25 |
| - * |
26 |
| - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
27 |
| - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
28 |
| - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
29 |
| - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
30 |
| - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
31 |
| - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
32 |
| - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
33 |
| - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
34 |
| - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
35 |
| - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 14 | + * This software component is licensed by ST under BSD 3-Clause license, |
| 15 | + * the "License"; You may not use this file except in compliance with the |
| 16 | + * License. You may obtain a copy of the License at: |
| 17 | + * opensource.org/licenses/BSD-3-Clause |
36 | 18 | *
|
37 | 19 | ******************************************************************************
|
38 | 20 | */
|
@@ -112,6 +94,15 @@ extern "C" {
|
112 | 94 | #define HSI_VALUE (16000000U) /*!< Value of the Internal oscillator in Hz*/
|
113 | 95 | #endif /* HSI_VALUE */
|
114 | 96 |
|
| 97 | +/** |
| 98 | + * @brief Internal Low Speed oscillator (LSI) value. |
| 99 | + */ |
| 100 | +#if !defined (LSI_VALUE) |
| 101 | +#define LSI_VALUE (37000U) /*!< LSI Typical Value in Hz*/ |
| 102 | +#endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz |
| 103 | +The real value may vary depending on the variations |
| 104 | +in voltage and temperature.*/ |
| 105 | + |
115 | 106 | /**
|
116 | 107 | * @brief External Low Speed oscillator (LSE) value.
|
117 | 108 | */
|
@@ -148,6 +139,41 @@ extern "C" {
|
148 | 139 | */
|
149 | 140 | /*#define USE_FULL_ASSERT 1U*/
|
150 | 141 |
|
| 142 | +/* ################## Register callback feature configuration ############### */ |
| 143 | +/** |
| 144 | + * @brief Set below the peripheral configuration to "1U" to add the support |
| 145 | + * of HAL callback registration/deregistration feature for the HAL |
| 146 | + * driver(s). This allows user application to provide specific callback |
| 147 | + * functions thanks to HAL_PPP_RegisterCallback() rather than overwriting |
| 148 | + * the default weak callback functions (see each stm32l0xx_hal_ppp.h file |
| 149 | + * for possible callback identifiers defined in HAL_PPP_CallbackIDTypeDef |
| 150 | + * for each PPP peripheral). |
| 151 | + */ |
| 152 | +#define USE_HAL_ADC_REGISTER_CALLBACKS 0U |
| 153 | +#define USE_HAL_COMP_REGISTER_CALLBACKS 0U |
| 154 | +#define USE_HAL_DAC_REGISTER_CALLBACKS 0U |
| 155 | +#define USE_HAL_I2C_REGISTER_CALLBACKS 0U |
| 156 | +#define USE_HAL_I2S_REGISTER_CALLBACKS 0U |
| 157 | +#define USE_HAL_IRDA_REGISTER_CALLBACKS 0U |
| 158 | +#define USE_HAL_OPAMP_REGISTER_CALLBACKS 0U |
| 159 | +#define USE_HAL_PCD_REGISTER_CALLBACKS 0U |
| 160 | +#define USE_HAL_RTC_REGISTER_CALLBACKS 0U |
| 161 | +#define USE_HAL_SDMMC_REGISTER_CALLBACKS 0U |
| 162 | +#define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U |
| 163 | +#define USE_HAL_SPI_REGISTER_CALLBACKS 0U |
| 164 | +#define USE_HAL_TIM_REGISTER_CALLBACKS 0U |
| 165 | +#define USE_HAL_UART_REGISTER_CALLBACKS 0U |
| 166 | +#define USE_HAL_USART_REGISTER_CALLBACKS 0U |
| 167 | +#define USE_HAL_WWDG_REGISTER_CALLBACKS 0U |
| 168 | + |
| 169 | +/* ################## SPI peripheral configuration ########################## */ |
| 170 | + |
| 171 | +/* CRC FEATURE: Use to activate CRC feature inside HAL SPI Driver |
| 172 | + * Activated: CRC code is present inside driver |
| 173 | + * Deactivated: CRC code cleaned from driver |
| 174 | + */ |
| 175 | + |
| 176 | +#define USE_SPI_CRC 1U |
151 | 177 | /* Includes ------------------------------------------------------------------*/
|
152 | 178 | /**
|
153 | 179 | * @brief Include module's header file
|
@@ -269,7 +295,7 @@ extern "C" {
|
269 | 295 | #ifdef USE_FULL_ASSERT
|
270 | 296 | /**
|
271 | 297 | * @brief The assert_param macro is used for function's parameters check.
|
272 |
| - * @param expr: If expr is false, it calls assert_failed function |
| 298 | + * @param expr If expr is false, it calls assert_failed function |
273 | 299 | * which reports the name of the source file and the source
|
274 | 300 | * line number of the call that failed.
|
275 | 301 | * If expr is true, it returns no value.
|
|
0 commit comments