Skip to content

Commit 1bbc34a

Browse files
committed
[L4] Update STM32L4xx HAL Drivers to v1.11.1
Included in STM32CubeL4 FW v1.15.1 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 394704d commit 1bbc34a

15 files changed

+563
-405
lines changed

Diff for: system/Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_cortex.h

+6-22
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,13 @@
66
******************************************************************************
77
* @attention
88
*
9-
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
9+
* <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
10+
* All rights reserved.</center></h2>
1011
*
11-
* Redistribution and use in source and binary forms, with or without modification,
12-
* are permitted provided that the following conditions are met:
13-
* 1. Redistributions of source code must retain the above copyright notice,
14-
* this list of conditions and the following disclaimer.
15-
* 2. Redistributions in binary form must reproduce the above copyright notice,
16-
* this list of conditions and the following disclaimer in the documentation
17-
* and/or other materials provided with the distribution.
18-
* 3. Neither the name of STMicroelectronics nor the names of its contributors
19-
* may be used to endorse or promote products derived from this software
20-
* without specific prior written permission.
21-
*
22-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
26-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12+
* This software component is licensed by ST under BSD 3-Clause license,
13+
* the "License"; You may not use this file except in compliance with the
14+
* License. You may obtain a copy of the License at:
15+
* opensource.org/licenses/BSD-3-Clause
3216
*
3317
******************************************************************************
3418
*/

Diff for: system/Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_rtc_ex.h

-1
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,6 @@ uint32_t HAL_RTCEx_BKUPRead(RTC_HandleTypeDef *hrtc, uint32_t BackupReg
15941594
/** @defgroup RTCEx_Private_Constants RTCEx Private Constants
15951595
* @{
15961596
*/
1597-
//#define RTC_EXTI_LINE_ALARM_EVENT EXTI_IMR1_IM18 /*!< External interrupt line 18 Connected to the RTC Alarm event */
15981597
#if defined (STM32L4P5xx) || defined (STM32L4Q5xx)
15991598
#define RTC_EXTI_LINE_SSRU_EVENT EXTI_IMR1_IM18 /*!< External interrupt line 18 Connected to the RTC SSR Underflow event */
16001599
#endif

Diff for: system/Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_smbus.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,11 @@ typedef struct
132132
* @brief SMBUS handle Structure definition
133133
* @{
134134
*/
135+
#if (USE_HAL_SMBUS_REGISTER_CALLBACKS == 1)
135136
typedef struct __SMBUS_HandleTypeDef
137+
#else
138+
typedef struct
139+
#endif /* USE_HAL_SMBUS_REGISTER_CALLBACKS */
136140
{
137141
I2C_TypeDef *Instance; /*!< SMBUS registers base address */
138142

@@ -326,6 +330,7 @@ typedef void (*pSMBUS_AddrCallbackTypeDef)(SMBUS_HandleTypeDef *hsmbus, uint8_t
326330
#define SMBUS_NEXT_FRAME ((uint32_t)(SMBUS_RELOAD_MODE | SMBUS_SOFTEND_MODE))
327331
#define SMBUS_FIRST_AND_LAST_FRAME_NO_PEC SMBUS_AUTOEND_MODE
328332
#define SMBUS_LAST_FRAME_NO_PEC SMBUS_AUTOEND_MODE
333+
#define SMBUS_FIRST_FRAME_WITH_PEC ((uint32_t)(SMBUS_SOFTEND_MODE | SMBUS_SENDPEC_MODE))
329334
#define SMBUS_FIRST_AND_LAST_FRAME_WITH_PEC ((uint32_t)(SMBUS_AUTOEND_MODE | SMBUS_SENDPEC_MODE))
330335
#define SMBUS_LAST_FRAME_WITH_PEC ((uint32_t)(SMBUS_AUTOEND_MODE | SMBUS_SENDPEC_MODE))
331336

@@ -582,11 +587,12 @@ typedef void (*pSMBUS_AddrCallbackTypeDef)(SMBUS_HandleTypeDef *hsmbus, uint8_t
582587
((REQUEST) == SMBUS_NO_STARTSTOP))
583588

584589

585-
#define IS_SMBUS_TRANSFER_OPTIONS_REQUEST(REQUEST) (IS_SMBUS_TRANSFER_OTHER_OPTIONS_REQUEST(REQUEST) || \
590+
#define IS_SMBUS_TRANSFER_OPTIONS_REQUEST(REQUEST) (IS_SMBUS_TRANSFER_OTHER_OPTIONS_REQUEST(REQUEST) || \
586591
((REQUEST) == SMBUS_FIRST_FRAME) || \
587592
((REQUEST) == SMBUS_NEXT_FRAME) || \
588593
((REQUEST) == SMBUS_FIRST_AND_LAST_FRAME_NO_PEC) || \
589594
((REQUEST) == SMBUS_LAST_FRAME_NO_PEC) || \
595+
((REQUEST) == SMBUS_FIRST_FRAME_WITH_PEC) || \
590596
((REQUEST) == SMBUS_FIRST_AND_LAST_FRAME_WITH_PEC) || \
591597
((REQUEST) == SMBUS_LAST_FRAME_WITH_PEC))
592598

Diff for: system/Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_ll_cortex.h

+6-22
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,13 @@
2121
******************************************************************************
2222
* @attention
2323
*
24-
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
24+
* <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
25+
* All rights reserved.</center></h2>
2526
*
26-
* Redistribution and use in source and binary forms, with or without modification,
27-
* are permitted provided that the following conditions are met:
28-
* 1. Redistributions of source code must retain the above copyright notice,
29-
* this list of conditions and the following disclaimer.
30-
* 2. Redistributions in binary form must reproduce the above copyright notice,
31-
* this list of conditions and the following disclaimer in the documentation
32-
* and/or other materials provided with the distribution.
33-
* 3. Neither the name of STMicroelectronics nor the names of its contributors
34-
* may be used to endorse or promote products derived from this software
35-
* without specific prior written permission.
36-
*
37-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
38-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
39-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
40-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
41-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
42-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
43-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
44-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
45-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
46-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27+
* This software component is licensed by ST under BSD 3-Clause license,
28+
* the "License"; You may not use this file except in compliance with the
29+
* License. You may obtain a copy of the License at:
30+
* opensource.org/licenses/BSD-3-Clause
4731
*
4832
******************************************************************************
4933
*/

Diff for: system/Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_ll_utils.h

+1
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ void LL_mDelay(uint32_t Delay);
297297
*/
298298

299299
void LL_SetSystemCoreClock(uint32_t HCLKFrequency);
300+
ErrorStatus LL_SetFlashLatency(uint32_t HCLKFrequency);
300301
ErrorStatus LL_PLL_ConfigSystemClock_MSI(LL_UTILS_PLLInitTypeDef *UTILS_PLLInitStruct,
301302
LL_UTILS_ClkInitTypeDef *UTILS_ClkInitStruct);
302303
ErrorStatus LL_PLL_ConfigSystemClock_HSI(LL_UTILS_PLLInitTypeDef *UTILS_PLLInitStruct,

0 commit comments

Comments
 (0)