Skip to content

Commit 55d19a6

Browse files
committed
[L0] Update STM32L0xx HAL Drivers to v1.10.2
Included in STM32CubeL0 FW V1.11.2 Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 47ee451 commit 55d19a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2311
-2311
lines changed

system/Drivers/STM32L0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@
12491249

12501250
#define HAL_I2CFastModePlusConfig(SYSCFG_I2CFastModePlus, cmd) (((cmd)==ENABLE)? HAL_I2CEx_EnableFastModePlus(SYSCFG_I2CFastModePlus): HAL_I2CEx_DisableFastModePlus(SYSCFG_I2CFastModePlus))
12511251

1252-
#if defined(STM32H7) || defined(STM32G0)
1252+
#if defined(STM32H7) || defined(STM32G0) || defined(STM32L0)
12531253
#define HAL_I2C_Master_Sequential_Transmit_IT HAL_I2C_Master_Seq_Transmit_IT
12541254
#define HAL_I2C_Master_Sequential_Receive_IT HAL_I2C_Master_Seq_Receive_IT
12551255
#define HAL_I2C_Slave_Sequential_Transmit_IT HAL_I2C_Slave_Seq_Transmit_IT
@@ -1258,7 +1258,7 @@
12581258
#define HAL_I2C_Master_Sequential_Receive_DMA HAL_I2C_Master_Seq_Receive_DMA
12591259
#define HAL_I2C_Slave_Sequential_Transmit_DMA HAL_I2C_Slave_Seq_Transmit_DMA
12601260
#define HAL_I2C_Slave_Sequential_Receive_DMA HAL_I2C_Slave_Seq_Receive_DMA
1261-
#endif /* STM32H7 || STM32G0 */
1261+
#endif /* STM32H7 || STM32G0 || STM32L0 */
12621262
/**
12631263
* @}
12641264
*/
@@ -1338,14 +1338,14 @@
13381338
#define HAL_TIM_DMAError TIM_DMAError
13391339
#define HAL_TIM_DMACaptureCplt TIM_DMACaptureCplt
13401340
#define HAL_TIMEx_DMACommutationCplt TIMEx_DMACommutationCplt
1341-
#if defined(STM32H7) || defined(STM32G0) || defined(STM32F7) || defined(STM32F4)
1341+
#if defined(STM32H7) || defined(STM32G0) || defined(STM32F7) || defined(STM32F4) || defined(STM32L0)
13421342
#define HAL_TIM_SlaveConfigSynchronization HAL_TIM_SlaveConfigSynchro
13431343
#define HAL_TIM_SlaveConfigSynchronization_IT HAL_TIM_SlaveConfigSynchro_IT
13441344
#define HAL_TIMEx_CommutationCallback HAL_TIMEx_CommutCallback
13451345
#define HAL_TIMEx_ConfigCommutationEvent HAL_TIMEx_ConfigCommutEvent
13461346
#define HAL_TIMEx_ConfigCommutationEvent_IT HAL_TIMEx_ConfigCommutEvent_IT
13471347
#define HAL_TIMEx_ConfigCommutationEvent_DMA HAL_TIMEx_ConfigCommutEvent_DMA
1348-
#endif /* STM32H7 || STM32G0 || STM32F7 || STM32F4 */
1348+
#endif /* STM32H7 || STM32G0 || STM32F7 || STM32F4 || STM32L0 */
13491349
/**
13501350
* @}
13511351
*/

system/Drivers/STM32L0xx_HAL_Driver/Inc/stm32_assert_template.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
******************************************************************************
99
* @attention
1010
*
11-
* <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
11+
* <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
1212
* All rights reserved.</center></h2>
1313
*
1414
* 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
15+
* the "License"; You may not use this file except in compliance with the
1616
* License. You may obtain a copy of the License at:
1717
* opensource.org/licenses/BSD-3-Clause
1818
*

system/Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_adc.h

+35-35
Large diffs are not rendered by default.

system/Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_adc_ex.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
/** @addtogroup ADCEx
3636
* @{
37-
*/
37+
*/
3838

3939
/* Exported types ------------------------------------------------------------*/
4040
/* Exported constants --------------------------------------------------------*/
@@ -96,7 +96,7 @@
9696
/**
9797
* @}
9898
*/
99-
99+
100100
/**
101101
* @}
102102
*/
@@ -111,7 +111,7 @@
111111

112112
/** @defgroup ADCEx_calibration_factor_length_verification ADC Calibration Factor Length Verification
113113
* @{
114-
*/
114+
*/
115115
/**
116116
* @brief Calibration factor length verification (7 bits maximum)
117117
* @param _Calibration_Factor_: Calibration factor value
@@ -120,7 +120,7 @@
120120
#define IS_ADC_CALFACT(_Calibration_Factor_) ((_Calibration_Factor_) <= ((uint32_t)0x7FU))
121121
/**
122122
* @}
123-
*/
123+
*/
124124

125125
/** @defgroup ADC_External_trigger_Source ADC External Trigger Source
126126
* @{

system/Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_comp.h

+14-14
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* License. You may obtain a copy of the License at:
1515
* opensource.org/licenses/BSD-3-Clause
1616
*
17-
******************************************************************************
17+
******************************************************************************
1818
*/
1919

2020
/* Define to prevent recursive inclusion -------------------------------------*/
@@ -37,13 +37,13 @@
3737
* @{
3838
*/
3939

40-
/* Exported types ------------------------------------------------------------*/
40+
/* Exported types ------------------------------------------------------------*/
4141
/** @defgroup COMP_Exported_Types COMP Exported Types
4242
* @{
4343
*/
4444

45-
/**
46-
* @brief COMP Init structure definition
45+
/**
46+
* @brief COMP Init structure definition
4747
*/
4848
typedef struct
4949
{
@@ -89,7 +89,7 @@ typedef enum
8989
HAL_COMP_STATE_BUSY_LOCKED = (HAL_COMP_STATE_BUSY | COMP_STATE_BITFIELD_LOCK) /*!< COMP is running and configuration is locked */
9090
}HAL_COMP_StateTypeDef;
9191

92-
/**
92+
/**
9393
* @brief COMP Handle Structure definition
9494
*/
9595
typedef struct __COMP_HandleTypeDef
@@ -279,7 +279,7 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
279279
* @param __HANDLE__ COMP handle
280280
* @retval None
281281
*/
282-
#define COMP_CLEAR_ERRORCODE(__HANDLE__) ((__HANDLE__)->ErrorCode = HAL_COMP_ERROR_NONE)
282+
#define COMP_CLEAR_ERRORCODE(__HANDLE__) ((__HANDLE__)->ErrorCode = HAL_COMP_ERROR_NONE)
283283

284284
/**
285285
* @brief Enable the specified comparator.
@@ -357,7 +357,7 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
357357
/**
358358
* @brief Disable the COMP1 EXTI line rising & falling edge trigger.
359359
* @retval None
360-
*/
360+
*/
361361
#define __HAL_COMP_COMP1_EXTI_DISABLE_RISING_FALLING_EDGE() do { \
362362
__HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE(); \
363363
__HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE(); \
@@ -408,31 +408,31 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
408408
/**
409409
* @brief Enable the COMP2 EXTI line rising edge trigger.
410410
* @retval None
411-
*/
411+
*/
412412
#define __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE() SET_BIT(EXTI->RTSR, COMP_EXTI_LINE_COMP2)
413413

414414
/**
415415
* @brief Disable the COMP2 EXTI line rising edge trigger.
416416
* @retval None
417-
*/
417+
*/
418418
#define __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE() CLEAR_BIT(EXTI->RTSR, COMP_EXTI_LINE_COMP2)
419419

420420
/**
421421
* @brief Enable the COMP2 EXTI line falling edge trigger.
422422
* @retval None
423-
*/
423+
*/
424424
#define __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE() SET_BIT(EXTI->FTSR, COMP_EXTI_LINE_COMP2)
425425

426426
/**
427427
* @brief Disable the COMP2 EXTI line falling edge trigger.
428428
* @retval None
429-
*/
429+
*/
430430
#define __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE() CLEAR_BIT(EXTI->FTSR, COMP_EXTI_LINE_COMP2)
431431

432432
/**
433433
* @brief Enable the COMP2 EXTI line rising & falling edge trigger.
434434
* @retval None
435-
*/
435+
*/
436436
#define __HAL_COMP_COMP2_EXTI_ENABLE_RISING_FALLING_EDGE() do { \
437437
__HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE(); \
438438
__HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE(); \
@@ -441,7 +441,7 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
441441
/**
442442
* @brief Disable the COMP2 EXTI line rising & falling edge trigger.
443443
* @retval None
444-
*/
444+
*/
445445
#define __HAL_COMP_COMP2_EXTI_DISABLE_RISING_FALLING_EDGE() do { \
446446
__HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE(); \
447447
__HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE(); \
@@ -532,7 +532,7 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
532532
* @{
533533
*/
534534

535-
/** @defgroup COMP_GET_EXTI_LINE COMP private macros to get EXTI line associated with comparators
535+
/** @defgroup COMP_GET_EXTI_LINE COMP private macros to get EXTI line associated with comparators
536536
* @{
537537
*/
538538
/**

system/Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_comp_ex.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* opensource.org/licenses/BSD-3-Clause
1616
*
1717
******************************************************************************
18-
*/
18+
*/
1919

2020
/* Define to prevent recursive inclusion -------------------------------------*/
2121
#ifndef __STM32L0xx_HAL_COMP_EX_H
@@ -48,7 +48,7 @@
4848
/* COMP specific functions to manage VREFINT *************************************/
4949
void HAL_COMPEx_EnableVREFINT(void);
5050
void HAL_COMPEx_DisableVREFINT(void);
51-
51+
5252
/**
5353
* @}
5454
*/

system/Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_cortex.h

+11-11
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* opensource.org/licenses/BSD-3-Clause
1616
*
1717
******************************************************************************
18-
*/
18+
*/
1919

2020
/* Define to prevent recursive inclusion -------------------------------------*/
2121
#ifndef __STM32L0xx_HAL_CORTEX_H
@@ -34,7 +34,7 @@
3434

3535
/** @defgroup CORTEX CORTEX
3636
* @{
37-
*/
37+
*/
3838
/* Exported types ------------------------------------------------------------*/
3939

4040
/** @defgroup CORTEX_Exported_Types CORTEX Exported Types
@@ -227,14 +227,14 @@ typedef struct
227227

228228
/**
229229
* @}
230-
*/
230+
*/
231231

232232
/* Exported functions --------------------------------------------------------*/
233233
/** @defgroup CORTEX_Exported_Functions CORTEX Exported Functions
234234
* @{
235235
*/
236-
237-
/** @defgroup CORTEX_Exported_Functions_Group1 Initialization and Configuration functions
236+
237+
/** @defgroup CORTEX_Exported_Functions_Group1 Initialization and Configuration functions
238238
* @brief Initialization and Configuration functions
239239
* @{
240240
*/
@@ -246,12 +246,12 @@ uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb);
246246
/**
247247
* @}
248248
*/
249-
249+
250250
/** @defgroup CORTEX_Exported_Functions_Group2 Peripheral Control functions
251251
* @brief Cortex control functions
252252
* @{
253253
*/
254-
254+
255255
uint32_t HAL_NVIC_GetPriority(IRQn_Type IRQn);
256256
uint32_t HAL_NVIC_GetPendingIRQ(IRQn_Type IRQn);
257257
void HAL_NVIC_SetPendingIRQ(IRQn_Type IRQn);
@@ -267,7 +267,7 @@ void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init);
267267
/**
268268
* @}
269269
*/
270-
270+
271271
/**
272272
* @}
273273
*/
@@ -348,18 +348,18 @@ void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init);
348348

349349
/**
350350
* @}
351-
*/
351+
*/
352352

353353
/**
354354
* @}
355355
*/
356-
356+
357357
#ifdef __cplusplus
358358
}
359359
#endif
360360

361361
#endif /* __STM32L0xx_HAL_CORTEX_H */
362-
362+
363363

364364
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
365365

0 commit comments

Comments
 (0)