Skip to content

Commit 3cc33fa

Browse files
committed
system(WL) update STM32WLxx HAL Drivers to v1.3.0
Included in STM32CubeWL FW v1.3.0 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 42dfb63 commit 3cc33fa

File tree

158 files changed

+7194
-5068
lines changed

Some content is hidden

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

158 files changed

+7194
-5068
lines changed

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

Lines changed: 219 additions & 23 deletions
Large diffs are not rendered by default.

system/Drivers/STM32WLxx_HAL_Driver/Inc/stm32_assert_template.h

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
******************************************************************************
99
* @attention
1010
*
11-
* <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
12-
* All rights reserved.</center></h2>
11+
* Copyright (c) 2020 STMicroelectronics.
12+
* All rights reserved.
1313
*
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
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.
1817
*
1918
******************************************************************************
2019
*/
@@ -52,6 +51,3 @@
5251
#endif
5352

5453
#endif /* __STM32_ASSERT_H */
55-
56-
57-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

system/Drivers/STM32WLxx_HAL_Driver/Inc/stm32wlxx_hal.h

Lines changed: 137 additions & 73 deletions
Large diffs are not rendered by default.

system/Drivers/STM32WLxx_HAL_Driver/Inc/stm32wlxx_hal_adc.h

Lines changed: 438 additions & 248 deletions
Large diffs are not rendered by default.

system/Drivers/STM32WLxx_HAL_Driver/Inc/stm32wlxx_hal_adc_ex.h

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
* <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2020 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
*/
@@ -184,6 +183,3 @@ HAL_StatusTypeDef HAL_ADCEx_DisableVoltageRegulator(ADC_HandleTypeDef *had
184183
#endif
185184

186185
#endif /* STM32WLxx_HAL_ADC_EX_H */
187-
188-
189-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

system/Drivers/STM32WLxx_HAL_Driver/Inc/stm32wlxx_hal_comp.h

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
* <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2020 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 */
@@ -287,7 +286,7 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
287286
} while(0)
288287
#else
289288
#define __HAL_COMP_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_COMP_STATE_RESET)
290-
#endif
289+
#endif /* USE_HAL_COMP_REGISTER_CALLBACKS */
291290

292291
/**
293292
* @brief Clear COMP error code (set it to no error code "HAL_COMP_ERROR_NONE").
@@ -386,7 +385,7 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
386385
#define __HAL_COMP_COMP1_EXTI_ENABLE_IT() LL_C2_EXTI_EnableIT_0_31(COMP_EXTI_LINE_COMP1)
387386
#else
388387
#define __HAL_COMP_COMP1_EXTI_ENABLE_IT() LL_EXTI_EnableIT_0_31(COMP_EXTI_LINE_COMP1)
389-
#endif
388+
#endif /* CORE_CM0PLUS */
390389

391390
/**
392391
* @brief Disable the COMP1 EXTI line in interrupt mode.
@@ -396,7 +395,7 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
396395
#define __HAL_COMP_COMP1_EXTI_DISABLE_IT() LL_C2_EXTI_DisableIT_0_31(COMP_EXTI_LINE_COMP1)
397396
#else
398397
#define __HAL_COMP_COMP1_EXTI_DISABLE_IT() LL_EXTI_DisableIT_0_31(COMP_EXTI_LINE_COMP1)
399-
#endif
398+
#endif /* CORE_CM0PLUS */
400399

401400
/**
402401
* @brief Generate a software interrupt on the COMP1 EXTI line.
@@ -412,7 +411,7 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
412411
#define __HAL_COMP_COMP1_EXTI_ENABLE_EVENT() LL_C2_EXTI_EnableEvent_0_31(COMP_EXTI_LINE_COMP1)
413412
#else
414413
#define __HAL_COMP_COMP1_EXTI_ENABLE_EVENT() LL_EXTI_EnableEvent_0_31(COMP_EXTI_LINE_COMP1)
415-
#endif
414+
#endif /* CORE_CM0PLUS */
416415

417416
/**
418417
* @brief Disable the COMP1 EXTI line in event mode.
@@ -422,7 +421,7 @@ typedef void (*pCOMP_CallbackTypeDef)(COMP_HandleTypeDef *hcomp); /*!< pointer
422421
#define __HAL_COMP_COMP1_EXTI_DISABLE_EVENT() LL_C2_EXTI_DisableEvent_0_31(COMP_EXTI_LINE_COMP1)
423422
#else
424423
#define __HAL_COMP_COMP1_EXTI_DISABLE_EVENT() LL_EXTI_DisableEvent_0_31(COMP_EXTI_LINE_COMP1)
425-
#endif
424+
#endif /* CORE_CM0PLUS */
426425

427426
/**
428427
* @brief Check whether the COMP1 EXTI line flag is set.
@@ -692,7 +691,7 @@ void HAL_COMP_IRQHandler(COMP_HandleTypeDef *hcomp);
692691
* @{
693692
*/
694693
HAL_StatusTypeDef HAL_COMP_Lock(COMP_HandleTypeDef *hcomp);
695-
uint32_t HAL_COMP_GetOutputLevel(COMP_HandleTypeDef *hcomp);
694+
uint32_t HAL_COMP_GetOutputLevel(const COMP_HandleTypeDef *hcomp);
696695
/* Callback in interrupt mode */
697696
void HAL_COMP_TriggerCallback(COMP_HandleTypeDef *hcomp);
698697
/**
@@ -703,8 +702,8 @@ void HAL_COMP_TriggerCallback(COMP_HandleTypeDef *hcomp);
703702
/** @addtogroup COMP_Exported_Functions_Group4
704703
* @{
705704
*/
706-
HAL_COMP_StateTypeDef HAL_COMP_GetState(COMP_HandleTypeDef *hcomp);
707-
uint32_t HAL_COMP_GetError(COMP_HandleTypeDef *hcomp);
705+
HAL_COMP_StateTypeDef HAL_COMP_GetState(const COMP_HandleTypeDef *hcomp);
706+
uint32_t HAL_COMP_GetError(const COMP_HandleTypeDef *hcomp);
708707
/**
709708
* @}
710709
*/
@@ -726,5 +725,3 @@ uint32_t HAL_COMP_GetError(COMP_HandleTypeDef *hcomp);
726725
#endif
727726

728727
#endif /* STM32WLxx_HAL_COMP_H */
729-
730-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

system/Drivers/STM32WLxx_HAL_Driver/Inc/stm32wlxx_hal_conf_template.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
* <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2020 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
*/
@@ -336,5 +335,3 @@
336335
#endif
337336

338337
#endif /* STM32WLxx_HAL_CONF_H */
339-
340-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

system/Drivers/STM32WLxx_HAL_Driver/Inc/stm32wlxx_hal_cortex.h

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
* <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2020 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
*/
@@ -179,7 +178,7 @@ typedef struct
179178
#define MPU_TEX_LEVEL0 ((uint8_t)0x00)
180179
#define MPU_TEX_LEVEL1 ((uint8_t)0x01)
181180
#define MPU_TEX_LEVEL2 ((uint8_t)0x02)
182-
#define MPU_TEX_LEVEL4 ((uint8_t)0x04)
181+
183182
/**
184183
* @}
185184
*/
@@ -363,8 +362,7 @@ void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init);
363362

364363
#define IS_MPU_TEX_LEVEL(TYPE) (((TYPE) == MPU_TEX_LEVEL0) || \
365364
((TYPE) == MPU_TEX_LEVEL1) || \
366-
((TYPE) == MPU_TEX_LEVEL2) || \
367-
((TYPE) == MPU_TEX_LEVEL4))
365+
((TYPE) == MPU_TEX_LEVEL2))
368366

369367
#define IS_MPU_REGION_PERMISSION_ATTRIBUTE(TYPE) (((TYPE) == MPU_REGION_NO_ACCESS) || \
370368
((TYPE) == MPU_REGION_PRIV_RW) || \
@@ -460,6 +458,3 @@ void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init);
460458
#endif
461459

462460
#endif /* __STM32WLxx_HAL_CORTEX_H */
463-
464-
465-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

system/Drivers/STM32WLxx_HAL_Driver/Inc/stm32wlxx_hal_crc.h

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
* <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2020 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
*/
@@ -267,7 +268,6 @@ typedef struct
267268
#define IS_DEFAULT_POLYNOMIAL(DEFAULT) (((DEFAULT) == DEFAULT_POLYNOMIAL_ENABLE) || \
268269
((DEFAULT) == DEFAULT_POLYNOMIAL_DISABLE))
269270

270-
271271
#define IS_DEFAULT_INIT_VALUE(VALUE) (((VALUE) == DEFAULT_INIT_VALUE_ENABLE) || \
272272
((VALUE) == DEFAULT_INIT_VALUE_DISABLE))
273273

@@ -340,5 +340,3 @@ HAL_CRC_StateTypeDef HAL_CRC_GetState(CRC_HandleTypeDef *hcrc);
340340
#endif
341341

342342
#endif /* STM32WLxx_HAL_CRC_H */
343-
344-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

system/Drivers/STM32WLxx_HAL_Driver/Inc/stm32wlxx_hal_crc_ex.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
* <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2020 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 /* STM32WLxx_HAL_CRC_EX_H */
152-
153-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 commit comments

Comments
 (0)