Skip to content

Commit f74c1cc

Browse files
committed
[L1] Update stm32l1xx_hal_conf.h in variant
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 03f0692 commit f74c1cc

File tree

2 files changed

+102
-50
lines changed

2 files changed

+102
-50
lines changed

variants/NUCLEO_L152RE/stm32l1xx_hal_conf.h

Lines changed: 51 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,19 @@
22
******************************************************************************
33
* @file stm32l1xx_hal_conf.h
44
* @author MCD Application Team
5-
* @version 21-April-2017
6-
* @date V1.3.0
75
* @brief HAL configuration template file.
86
* This file should be copied to the application folder and renamed
97
* to stm32l1xx_hal_conf.h.
108
******************************************************************************
119
* @attention
1210
*
13-
* <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
11+
* <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
12+
* All rights reserved.</center></h2>
1413
*
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
3618
*
3719
******************************************************************************
3820
*/
@@ -112,6 +94,15 @@ extern "C" {
11294
#define HSI_VALUE (16000000U) /*!< Value of the Internal oscillator in Hz*/
11395
#endif /* HSI_VALUE */
11496

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+
115106
/**
116107
* @brief External Low Speed oscillator (LSE) value.
117108
*/
@@ -148,6 +139,41 @@ extern "C" {
148139
*/
149140
/*#define USE_FULL_ASSERT 1U*/
150141

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
151177
/* Includes ------------------------------------------------------------------*/
152178
/**
153179
* @brief Include module's header file
@@ -269,7 +295,7 @@ extern "C" {
269295
#ifdef USE_FULL_ASSERT
270296
/**
271297
* @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
273299
* which reports the name of the source file and the source
274300
* line number of the call that failed.
275301
* If expr is true, it returns no value.

variants/RAK811_TRACKER/stm32l1xx_hal_conf.h

Lines changed: 51 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,19 @@
22
******************************************************************************
33
* @file stm32l1xx_hal_conf.h
44
* @author MCD Application Team
5-
* @version 21-April-2017
6-
* @date V1.3.0
75
* @brief HAL configuration template file.
86
* This file should be copied to the application folder and renamed
97
* to stm32l1xx_hal_conf.h.
108
******************************************************************************
119
* @attention
1210
*
13-
* <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
11+
* <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
12+
* All rights reserved.</center></h2>
1413
*
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
3618
*
3719
******************************************************************************
3820
*/
@@ -112,6 +94,15 @@ extern "C" {
11294
#define HSI_VALUE (16000000U) /*!< Value of the Internal oscillator in Hz*/
11395
#endif /* HSI_VALUE */
11496

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+
115106
/**
116107
* @brief External Low Speed oscillator (LSE) value.
117108
*/
@@ -148,6 +139,41 @@ extern "C" {
148139
*/
149140
/*#define USE_FULL_ASSERT 1U*/
150141

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
151177
/* Includes ------------------------------------------------------------------*/
152178
/**
153179
* @brief Include module's header file
@@ -269,7 +295,7 @@ extern "C" {
269295
#ifdef USE_FULL_ASSERT
270296
/**
271297
* @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
273299
* which reports the name of the source file and the source
274300
* line number of the call that failed.
275301
* If expr is true, it returns no value.

0 commit comments

Comments
 (0)