Skip to content

Commit 677b7ec

Browse files
committed
system(L5) update STM32L5xx HAL Drivers to v1.0.5
Included in STM32CubeL5 FW v1.5.0 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 9adabec commit 677b7ec

File tree

207 files changed

+13252
-9107
lines changed

Some content is hidden

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

207 files changed

+13252
-9107
lines changed

Diff for: system/Drivers/STM32L5xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h

+300-27
Large diffs are not rendered by default.

Diff for: system/Drivers/STM32L5xx_HAL_Driver/Inc/stm32_assert_template.h

+6-7
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
* @brief STM32 assert template file.
66
* This file should be copied to the application folder and renamed
77
* to stm32_assert.h.
8+
*
89
******************************************************************************
910
* @attention
1011
*
11-
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
12-
* All rights reserved.</center></h2>
12+
* Copyright (c) 2019 STMicroelectronics.
13+
* All rights reserved.
1314
*
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
15+
* This software is licensed under terms that can be found in the LICENSE file
16+
* in the root directory of this software component.
17+
* If no LICENSE file comes with this software, it is provided AS-IS.
1818
*
1919
******************************************************************************
2020
*/
@@ -54,4 +54,3 @@ void assert_failed(uint8_t *file, uint32_t line);
5454
#endif /* STM32_ASSERT_H */
5555

5656

57-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

Diff for: system/Drivers/STM32L5xx_HAL_Driver/Inc/stm32l5xx_hal.h

+6-7
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
* @author MCD Application Team
55
* @brief This file contains all the functions prototypes for the HAL
66
* module driver.
7+
*
78
******************************************************************************
89
* @attention
910
*
10-
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
11-
* All rights reserved.</center></h2>
11+
* Copyright (c) 2019 STMicroelectronics.
12+
* All rights reserved.
1213
*
13-
* This software component is licensed by ST under BSD 3-Clause license,
14-
* the "License"; You may not use this file except in compliance with the
15-
* License. You may obtain a copy of the License at:
16-
* opensource.org/licenses/BSD-3-Clause
14+
* This software is licensed under terms that can be found in the LICENSE file
15+
* in the root directory of this software component.
16+
* If no LICENSE file comes with this software, it is provided AS-IS.
1717
*
1818
******************************************************************************
1919
*/
@@ -700,4 +700,3 @@ HAL_StatusTypeDef HAL_SYSCFG_GetConfigAttributes(uint32_t Item, uint32_t *pAttri
700700

701701
#endif /* STM32L5xx_HAL_H */
702702

703-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

Diff for: system/Drivers/STM32L5xx_HAL_Driver/Inc/stm32l5xx_hal_adc.h

+431-247
Large diffs are not rendered by default.

Diff for: system/Drivers/STM32L5xx_HAL_Driver/Inc/stm32l5xx_hal_adc_ex.h

+292-161
Large diffs are not rendered by default.

Diff for: system/Drivers/STM32L5xx_HAL_Driver/Inc/stm32l5xx_hal_comp.h

+10-13
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2019 STMicroelectronics.
10+
* All rights reserved.
1111
*
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
12+
* This software is licensed under terms that can be found in the LICENSE file
13+
* in the root directory of this software component.
14+
* If no LICENSE file comes with this software, it is provided AS-IS.
1615
*
1716
******************************************************************************
1817
*/
@@ -100,7 +99,7 @@ typedef enum
10099
typedef struct __COMP_HandleTypeDef
101100
#else
102101
typedef struct
103-
#endif
102+
#endif /* USE_HAL_COMP_REGISTER_CALLBACKS */
104103
{
105104
COMP_TypeDef *Instance; /*!< Register base address */
106105
COMP_InitTypeDef Init; /*!< COMP required parameters */
@@ -289,7 +288,7 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
289288
} while(0)
290289
#else
291290
#define __HAL_COMP_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_COMP_STATE_RESET)
292-
#endif
291+
#endif /* USE_HAL_COMP_REGISTER_CALLBACKS */
293292

294293
/**
295294
* @brief Clear COMP error code (set it to no error code "HAL_COMP_ERROR_NONE").
@@ -713,7 +712,7 @@ void HAL_COMP_IRQHandler(COMP_HandleTypeDef *hcomp);
713712
* @{
714713
*/
715714
HAL_StatusTypeDef HAL_COMP_Lock(COMP_HandleTypeDef *hcomp);
716-
uint32_t HAL_COMP_GetOutputLevel(COMP_HandleTypeDef *hcomp);
715+
uint32_t HAL_COMP_GetOutputLevel(const COMP_HandleTypeDef *hcomp);
717716
/* Callback in interrupt mode */
718717
void HAL_COMP_TriggerCallback(COMP_HandleTypeDef *hcomp);
719718
/**
@@ -724,8 +723,8 @@ void HAL_COMP_TriggerCallback(COMP_HandleTypeDef *hcomp);
724723
/** @addtogroup COMP_Exported_Functions_Group4
725724
* @{
726725
*/
727-
HAL_COMP_StateTypeDef HAL_COMP_GetState(COMP_HandleTypeDef *hcomp);
728-
uint32_t HAL_COMP_GetError(COMP_HandleTypeDef *hcomp);
726+
HAL_COMP_StateTypeDef HAL_COMP_GetState(const COMP_HandleTypeDef *hcomp);
727+
uint32_t HAL_COMP_GetError(const COMP_HandleTypeDef *hcomp);
729728
/**
730729
* @}
731730
*/
@@ -747,5 +746,3 @@ uint32_t HAL_COMP_GetError(COMP_HandleTypeDef *hcomp);
747746
#endif
748747

749748
#endif /* STM32L5xx_HAL_COMP_H */
750-
751-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

Diff for: system/Drivers/STM32L5xx_HAL_Driver/Inc/stm32l5xx_hal_conf_template.h

+6-7
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
* @brief HAL configuration template file.
66
* This file should be copied to the application folder and renamed
77
* to stm32l5xx_hal_conf.h.
8+
*
89
******************************************************************************
910
* @attention
1011
*
11-
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
12-
* All rights reserved.</center></h2>
12+
* Copyright (c) 2019 STMicroelectronics.
13+
* All rights reserved.
1314
*
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
15+
* This software is licensed under terms that can be found in the LICENSE file
16+
* in the root directory of this software component.
17+
* If no LICENSE file comes with this software, it is provided AS-IS.
1818
*
1919
******************************************************************************
2020
*/
@@ -436,4 +436,3 @@ void assert_failed(uint8_t *file, uint32_t line);
436436
#endif /* STM32L5xx_HAL_CONF_H */
437437

438438

439-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

Diff for: system/Drivers/STM32L5xx_HAL_Driver/Inc/stm32l5xx_hal_cortex.h

+6-8
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2019 STMicroelectronics.
10+
* All rights reserved.
1111
*
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
12+
* This software is licensed under terms that can be found in the LICENSE file in
13+
* the root directory of this software component.
14+
* If no LICENSE file comes with this software, it is provided AS-IS.
1615
*
1716
******************************************************************************
1817
*/
@@ -152,7 +151,7 @@ typedef struct
152151
* @{
153152
*/
154153
#define MPU_ACCESS_NOT_SHAREABLE 0U
155-
#define MPU_ACCESS_OUTER_SHAREABLE 1U
154+
#define MPU_ACCESS_OUTER_SHAREABLE 2U
156155
#define MPU_ACCESS_INNER_SHAREABLE 3U
157156
/**
158157
* @}
@@ -373,4 +372,3 @@ void HAL_MPU_ConfigMemoryAttributes_NS(MPU_Attributes_InitTypeDef *MPU_Attribute
373372
#endif /* STM32L5xx_HAL_CORTEX_H */
374373

375374

376-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

Diff for: system/Drivers/STM32L5xx_HAL_Driver/Inc/stm32l5xx_hal_crc.h

+33-34
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2019 STMicroelectronics.
10+
* All rights reserved.
1111
*
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
12+
* This software is licensed under terms that can be found in the LICENSE file
13+
* in the root directory of this software component.
14+
* If no LICENSE file comes with this software, it is provided AS-IS.
1615
*
1716
******************************************************************************
1817
*/
@@ -60,19 +59,22 @@ typedef struct
6059
{
6160
uint8_t DefaultPolynomialUse; /*!< This parameter is a value of @ref CRC_Default_Polynomial and indicates if default polynomial is used.
6261
If set to DEFAULT_POLYNOMIAL_ENABLE, resort to default
63-
X^32 + X^26 + X^23 + X^22 + X^16 + X^12 + X^11 + X^10 +X^8 + X^7 + X^5 + X^4 + X^2+ X +1.
62+
X^32 + X^26 + X^23 + X^22 + X^16 + X^12 + X^11 + X^10 +X^8 + X^7 + X^5 +
63+
X^4 + X^2+ X +1.
6464
In that case, there is no need to set GeneratingPolynomial field.
65-
If otherwise set to DEFAULT_POLYNOMIAL_DISABLE, GeneratingPolynomial and CRCLength fields must be set. */
65+
If otherwise set to DEFAULT_POLYNOMIAL_DISABLE, GeneratingPolynomial and
66+
CRCLength fields must be set. */
6667

6768
uint8_t DefaultInitValueUse; /*!< This parameter is a value of @ref CRC_Default_InitValue_Use and indicates if default init value is used.
6869
If set to DEFAULT_INIT_VALUE_ENABLE, resort to default
69-
0xFFFFFFFF value. In that case, there is no need to set InitValue field.
70-
If otherwise set to DEFAULT_INIT_VALUE_DISABLE, InitValue field must be set. */
70+
0xFFFFFFFF value. In that case, there is no need to set InitValue field. If
71+
otherwise set to DEFAULT_INIT_VALUE_DISABLE, InitValue field must be set. */
7172

7273
uint32_t GeneratingPolynomial; /*!< Set CRC generating polynomial as a 7, 8, 16 or 32-bit long value for a polynomial degree
73-
respectively equal to 7, 8, 16 or 32. This field is written in normal representation,
74-
e.g., for a polynomial of degree 7, X^7 + X^6 + X^5 + X^2 + 1 is written 0x65.
75-
No need to specify it if DefaultPolynomialUse is set to DEFAULT_POLYNOMIAL_ENABLE. */
74+
respectively equal to 7, 8, 16 or 32. This field is written in normal,
75+
representation e.g., for a polynomial of degree 7, X^7 + X^6 + X^5 + X^2 + 1
76+
is written 0x65. No need to specify it if DefaultPolynomialUse is set to
77+
DEFAULT_POLYNOMIAL_ENABLE. */
7678

7779
uint32_t CRCLength; /*!< This parameter is a value of @ref CRC_Polynomial_Sizes and indicates CRC length.
7880
Value can be either one of
@@ -87,14 +89,18 @@ typedef struct
8789
uint32_t InputDataInversionMode; /*!< This parameter is a value of @ref CRCEx_Input_Data_Inversion and specifies input data inversion mode.
8890
Can be either one of the following values
8991
@arg @ref CRC_INPUTDATA_INVERSION_NONE no input data inversion
90-
@arg @ref CRC_INPUTDATA_INVERSION_BYTE byte-wise inversion, 0x1A2B3C4D becomes 0x58D43CB2
91-
@arg @ref CRC_INPUTDATA_INVERSION_HALFWORD halfword-wise inversion, 0x1A2B3C4D becomes 0xD458B23C
92-
@arg @ref CRC_INPUTDATA_INVERSION_WORD word-wise inversion, 0x1A2B3C4D becomes 0xB23CD458 */
92+
@arg @ref CRC_INPUTDATA_INVERSION_BYTE byte-wise inversion, 0x1A2B3C4D
93+
becomes 0x58D43CB2
94+
@arg @ref CRC_INPUTDATA_INVERSION_HALFWORD halfword-wise inversion,
95+
0x1A2B3C4D becomes 0xD458B23C
96+
@arg @ref CRC_INPUTDATA_INVERSION_WORD word-wise inversion, 0x1A2B3C4D
97+
becomes 0xB23CD458 */
9398

9499
uint32_t OutputDataInversionMode; /*!< This parameter is a value of @ref CRCEx_Output_Data_Inversion and specifies output data (i.e. CRC) inversion mode.
95100
Can be either
96101
@arg @ref CRC_OUTPUTDATA_INVERSION_DISABLE no CRC inversion,
97-
@arg @ref CRC_OUTPUTDATA_INVERSION_ENABLE CRC 0x11223344 is converted into 0x22CC4488 */
102+
@arg @ref CRC_OUTPUTDATA_INVERSION_ENABLE CRC 0x11223344 is converted
103+
into 0x22CC4488 */
98104
} CRC_InitTypeDef;
99105

100106
/**
@@ -112,12 +118,16 @@ typedef struct
112118

113119
uint32_t InputDataFormat; /*!< This parameter is a value of @ref CRC_Input_Buffer_Format and specifies input data format.
114120
Can be either
115-
@arg @ref CRC_INPUTDATA_FORMAT_BYTES input data is a stream of bytes (8-bit data)
116-
@arg @ref CRC_INPUTDATA_FORMAT_HALFWORDS input data is a stream of half-words (16-bit data)
117-
@arg @ref CRC_INPUTDATA_FORMAT_WORDS input data is a stream of words (32-bit data)
118-
119-
Note that constant CRC_INPUT_FORMAT_UNDEFINED is defined but an initialization error
120-
must occur if InputBufferFormat is not one of the three values listed above */
121+
@arg @ref CRC_INPUTDATA_FORMAT_BYTES input data is a stream of bytes
122+
(8-bit data)
123+
@arg @ref CRC_INPUTDATA_FORMAT_HALFWORDS input data is a stream of
124+
half-words (16-bit data)
125+
@arg @ref CRC_INPUTDATA_FORMAT_WORDS input data is a stream of words
126+
(32-bit data)
127+
128+
Note that constant CRC_INPUT_FORMAT_UNDEFINED is defined but an initialization
129+
error must occur if InputBufferFormat is not one of the three values listed
130+
above */
121131
} CRC_HandleTypeDef;
122132
/**
123133
* @}
@@ -199,15 +209,6 @@ typedef struct
199209
* @}
200210
*/
201211

202-
/** @defgroup CRC_Aliases CRC API aliases
203-
* @{
204-
*/
205-
#define HAL_CRC_Input_Data_Reverse HAL_CRCEx_Input_Data_Reverse /*!< Aliased to HAL_CRCEx_Input_Data_Reverse for inter STM32 series compatibility */
206-
#define HAL_CRC_Output_Data_Reverse HAL_CRCEx_Output_Data_Reverse /*!< Aliased to HAL_CRCEx_Output_Data_Reverse for inter STM32 series compatibility */
207-
/**
208-
* @}
209-
*/
210-
211212
/**
212213
* @}
213214
*/
@@ -339,5 +340,3 @@ HAL_CRC_StateTypeDef HAL_CRC_GetState(CRC_HandleTypeDef *hcrc);
339340
#endif
340341

341342
#endif /* STM32L5xx_HAL_CRC_H */
342-
343-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

Diff for: system/Drivers/STM32L5xx_HAL_Driver/Inc/stm32l5xx_hal_crc_ex.h

+5-8
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2019 STMicroelectronics.
10+
* All rights reserved.
1111
*
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
12+
* This software is licensed under terms that can be found in the LICENSE file
13+
* in the root directory of this software component.
14+
* If no LICENSE file comes with this software, it is provided AS-IS.
1615
*
1716
******************************************************************************
1817
*/
@@ -149,5 +148,3 @@ HAL_StatusTypeDef HAL_CRCEx_Output_Data_Reverse(CRC_HandleTypeDef *hcrc, uint32_
149148
#endif
150149

151150
#endif /* STM32L5xx_HAL_CRC_EX_H */
152-
153-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

Diff for: system/Drivers/STM32L5xx_HAL_Driver/Inc/stm32l5xx_hal_cryp.h

+6-9
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2019 STMicroelectronics.
10+
* All rights reserved.
1111
*
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
12+
* This software is licensed under terms that can be found in the LICENSE file
13+
* in the root directory of this software component.
14+
* If no LICENSE file comes with this software, it is provided AS-IS.
1615
*
1716
******************************************************************************
1817
*/
@@ -107,7 +106,7 @@ typedef enum
107106
typedef struct __CRYP_HandleTypeDef
108107
#else
109108
typedef struct
110-
#endif
109+
#endif /* USE_HAL_CRYP_REGISTER_CALLBACKS */
111110
{
112111
AES_TypeDef *Instance; /*!< AES Register base address */
113112

@@ -644,5 +643,3 @@ uint32_t HAL_CRYP_GetError(CRYP_HandleTypeDef *hcryp);
644643
#endif
645644

646645
#endif /* STM32L5xx_HAL_CRYP_H */
647-
648-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

Diff for: system/Drivers/STM32L5xx_HAL_Driver/Inc/stm32l5xx_hal_cryp_ex.h

+5-8
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2019 STMicroelectronics.
10+
* All rights reserved.
1111
*
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
12+
* This software is licensed under terms that can be found in the LICENSE file
13+
* in the root directory of this software component.
14+
* If no LICENSE file comes with this software, it is provided AS-IS.
1615
*
1716
******************************************************************************
1817
*/
@@ -129,5 +128,3 @@ void HAL_CRYPEx_DisableAutoKeyDerivation(CRYP_HandleTypeDef *hcryp);
129128
#endif
130129

131130
#endif /* STM32L5xx_HAL_CRYP_EX_H */
132-
133-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 commit comments

Comments
 (0)