Skip to content

Commit 6fb1229

Browse files
etienne-lmserwango
authored andcommitted
stm32cube: update stm32wl to cube version V1.4.0
Update Cube version for STM32WLxx series on https://github.com/STMicroelectronics from version v1.3.1 to version v1.4.0 Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
1 parent ca7735c commit 6fb1229

File tree

133 files changed

+5166
-4078
lines changed

Some content is hidden

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

133 files changed

+5166
-4078
lines changed

stm32cube/stm32wlxx/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Origin:
66
http://www.st.com/en/embedded-software/stm32cubewb.html
77

88
Status:
9-
version v1.3.1
9+
version v1.4.0
1010

1111
Purpose:
1212
ST Microelectronics official MCU package for STM32WL series.
@@ -23,7 +23,7 @@ URL:
2323
https://github.com/STMicroelectronics/STM32CubeWL
2424

2525
Commit:
26-
9d77b66f25362a849ef48fd2369060e3718fc99d
26+
cbbd003c2013d6847e08d6189926d12108533566
2727

2828
Maintained-by:
2929
External

stm32cube/stm32wlxx/drivers/include/Legacy/stm32_hal_legacy.h

Lines changed: 479 additions & 69 deletions
Large diffs are not rendered by default.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/**
2+
******************************************************************************
3+
* @file stm32_assert.h
4+
* @author MCD Application Team
5+
* @brief STM32 assert template file.
6+
* This file should be copied to the application folder and renamed
7+
* to stm32_assert.h.
8+
******************************************************************************
9+
* @attention
10+
*
11+
* Copyright (c) 2020 STMicroelectronics.
12+
* All rights reserved.
13+
*
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.
17+
*
18+
******************************************************************************
19+
*/
20+
21+
/* Define to prevent recursive inclusion -------------------------------------*/
22+
#ifndef __STM32_ASSERT_H
23+
#define __STM32_ASSERT_H
24+
25+
#ifdef __cplusplus
26+
extern "C" {
27+
#endif
28+
29+
/* Exported types ------------------------------------------------------------*/
30+
/* Exported constants --------------------------------------------------------*/
31+
/* Includes ------------------------------------------------------------------*/
32+
/* Exported macro ------------------------------------------------------------*/
33+
#ifdef USE_FULL_ASSERT
34+
/**
35+
* @brief The assert_param macro is used for function's parameters check.
36+
* @param expr If expr is false, it calls assert_failed function
37+
* which reports the name of the source file and the source
38+
* line number of the call that failed.
39+
* If expr is true, it returns no value.
40+
* @retval None
41+
*/
42+
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
43+
/* Exported functions ------------------------------------------------------- */
44+
void assert_failed(uint8_t *file, uint32_t line);
45+
#else
46+
#define assert_param(expr) ((void)0U)
47+
#endif /* USE_FULL_ASSERT */
48+
49+
#ifdef __cplusplus
50+
}
51+
#endif
52+
53+
#endif /* __STM32_ASSERT_H */

stm32cube/stm32wlxx/drivers/include/stm32wlxx_hal.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,9 @@ typedef enum
537537
*/
538538
/* Legacy define */
539539
#define __HAL_SYSCFG_SRAM2_WRP_1_31_ENABLE __HAL_SYSCFG_SRAM2_WRP_0_31_ENABLE
540-
#define __HAL_SYSCFG_SRAM2_WRP_0_31_ENABLE(__SRAM2WRP__) do {assert_param(IS_SYSCFG_SRAM2WRP_PAGE((__SRAM2WRP__)));\
541-
LL_SYSCFG_EnableSRAM2PageWRP_0_31(__SRAM2WRP__);\
542-
}while(0)
540+
#define __HAL_SYSCFG_SRAM2_WRP_0_31_ENABLE(__SRAM2WRP__) do { assert_param(IS_SYSCFG_SRAM2WRP_PAGE((__SRAM2WRP__)));\
541+
LL_SYSCFG_EnableSRAM2PageWRP_0_31(__SRAM2WRP__); \
542+
} while(0)
543543

544544
/** @brief SRAM2 page write protection unlock prior to erase
545545
* @note Writing a wrong key reactivates the write protection
@@ -593,13 +593,13 @@ typedef enum
593593
/** @brief Fast mode Plus driving capability enable/disable macros
594594
* @param __FASTMODEPLUS__ This parameter can be a value of @ref SYSCFG_FastModePlus_GPIO
595595
*/
596-
#define __HAL_SYSCFG_FASTMODEPLUS_ENABLE(__FASTMODEPLUS__) do {assert_param(IS_SYSCFG_FASTMODEPLUS((__FASTMODEPLUS__))); \
597-
LL_SYSCFG_EnableFastModePlus(__FASTMODEPLUS__); \
598-
}while(0)
596+
#define __HAL_SYSCFG_FASTMODEPLUS_ENABLE(__FASTMODEPLUS__) do { assert_param(IS_SYSCFG_FASTMODEPLUS((__FASTMODEPLUS__))); \
597+
LL_SYSCFG_EnableFastModePlus(__FASTMODEPLUS__); \
598+
} while(0)
599599

600-
#define __HAL_SYSCFG_FASTMODEPLUS_DISABLE(__FASTMODEPLUS__) do {assert_param(IS_SYSCFG_FASTMODEPLUS((__FASTMODEPLUS__))); \
601-
LL_SYSCFG_DisableFastModePlus(__FASTMODEPLUS__); \
602-
}while(0)
600+
#define __HAL_SYSCFG_FASTMODEPLUS_DISABLE(__FASTMODEPLUS__) do { assert_param(IS_SYSCFG_FASTMODEPLUS((__FASTMODEPLUS__))); \
601+
LL_SYSCFG_DisableFastModePlus(__FASTMODEPLUS__); \
602+
} while(0)
603603

604604
/**
605605
* @}
@@ -816,8 +816,8 @@ void HAL_SYSCFG_EnableIOAnalogSwitchBooster(void);
816816
void HAL_SYSCFG_DisableIOAnalogSwitchBooster(void);
817817

818818
#if defined(DUAL_CORE)
819-
void HAL_SYSCFG_EnableIT(SYSCFG_InterruptTypeDef *Interrupt);
820-
void HAL_SYSCFG_DisableIT(SYSCFG_InterruptTypeDef *Interrupt);
819+
void HAL_SYSCFG_EnableIT(const SYSCFG_InterruptTypeDef *Interrupt);
820+
void HAL_SYSCFG_DisableIT(const SYSCFG_InterruptTypeDef *Interrupt);
821821
#endif
822822
/**
823823
* @}

0 commit comments

Comments
 (0)