Skip to content

Commit c9af87d

Browse files
committed
STM32WB : TARGET_STM32WB_V1.11.1
1 parent e48963b commit c9af87d

File tree

173 files changed

+43520
-3656
lines changed

Some content is hidden

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

173 files changed

+43520
-3656
lines changed

targets/TARGET_STM/TARGET_STM32WB/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
# Copyright (c) 2020 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
add_subdirectory(TARGET_STM32WB10xC EXCLUDE_FROM_ALL)
5+
add_subdirectory(TARGET_STM32WB15xC EXCLUDE_FROM_ALL)
6+
add_subdirectory(TARGET_STM32WB30xE EXCLUDE_FROM_ALL)
7+
add_subdirectory(TARGET_STM32WB35xC EXCLUDE_FROM_ALL)
8+
add_subdirectory(TARGET_STM32WB35xE EXCLUDE_FROM_ALL)
49
add_subdirectory(TARGET_STM32WB50xG EXCLUDE_FROM_ALL)
10+
add_subdirectory(TARGET_STM32WB55xC EXCLUDE_FROM_ALL)
11+
add_subdirectory(TARGET_STM32WB55xE EXCLUDE_FROM_ALL)
512
add_subdirectory(TARGET_STM32WB55xG EXCLUDE_FROM_ALL)
13+
add_subdirectory(TARGET_STM32WB55xY EXCLUDE_FROM_ALL)
614
add_subdirectory(TARGET_STM32WB5MxG EXCLUDE_FROM_ALL)
7-
815
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
916

1017
add_library(mbed-stm32wb INTERFACE)

targets/TARGET_STM/TARGET_STM32WB/STM32Cube_FW/CMSIS/stm32wb10xx.h

Lines changed: 10856 additions & 0 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32WB/STM32Cube_FW/CMSIS/stm32wb15xx.h

Lines changed: 10986 additions & 0 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32WB/STM32Cube_FW/CMSIS/stm32wb30xx.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
1818
* All rights reserved.</center></h2>
1919
*
20-
* This software component is licensed by ST under BSD 3-Clause license,
20+
* This software component is licensed by ST under Apache License, Version 2.0,
2121
* the "License"; You may not use this file except in compliance with the
2222
* License. You may obtain a copy of the License at:
23-
* opensource.org/licenses/BSD-3-Clause
23+
* opensource.org/licenses/Apache-2.0
2424
*
2525
******************************************************************************
2626
*/
@@ -51,7 +51,7 @@
5151
#define __VTOR_PRESENT 1U /*!< Vector Table Register supported */
5252
#define __NVIC_PRIO_BITS 4U /*!< STM32WBxx uses 4 Bits for the Priority Levels */
5353
#define __Vendor_SysTickConfig 0U /*!< Set to 1 if different SysTick Config is used */
54-
#define __FPU_PRESENT 1U /*!< FPU present */
54+
#define __FPU_PRESENT 1 /*!< FPU present */
5555
/**
5656
* @}
5757
*/

targets/TARGET_STM/TARGET_STM32WB/STM32Cube_FW/CMSIS/stm32wb35xx.h

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
1818
* All rights reserved.</center></h2>
1919
*
20-
* This software component is licensed by ST under BSD 3-Clause license,
20+
* This software component is licensed by ST under Apache License, Version 2.0,
2121
* the "License"; You may not use this file except in compliance with the
2222
* License. You may obtain a copy of the License at:
23-
* opensource.org/licenses/BSD-3-Clause
23+
* opensource.org/licenses/Apache-2.0
2424
*
2525
******************************************************************************
2626
*/
@@ -51,7 +51,7 @@
5151
#define __VTOR_PRESENT 1U /*!< Vector Table Register supported */
5252
#define __NVIC_PRIO_BITS 4U /*!< STM32WBxx uses 4 Bits for the Priority Levels */
5353
#define __Vendor_SysTickConfig 0U /*!< Set to 1 if different SysTick Config is used */
54-
#define __FPU_PRESENT 1U /*!< FPU present */
54+
#define __FPU_PRESENT 1 /*!< FPU present */
5555
/**
5656
* @}
5757
*/
@@ -3469,9 +3469,6 @@ typedef struct
34693469
#define EXTI_IMR2_IM42_Pos (10U)
34703470
#define EXTI_IMR2_IM42_Msk (0x1UL << EXTI_IMR2_IM42_Pos) /*!< 0x00000400 */
34713471
#define EXTI_IMR2_IM42 EXTI_IMR2_IM42_Msk /*!< CPU1 Interrupt Mask on line 42 */
3472-
#define EXTI_IMR2_IM43_Pos (11U)
3473-
#define EXTI_IMR2_IM43_Msk (0x1UL << EXTI_IMR2_IM43_Pos) /*!< 0x00000800 */
3474-
#define EXTI_IMR2_IM43 EXTI_IMR2_IM43_Msk /*!< CPU1 Interrupt Mask on line 43 */
34753472
#define EXTI_IMR2_IM44_Pos (12U)
34763473
#define EXTI_IMR2_IM44_Msk (0x1UL << EXTI_IMR2_IM44_Pos) /*!< 0x00001000 */
34773474
#define EXTI_IMR2_IM44 EXTI_IMR2_IM44_Msk /*!< CPU1 Interrupt Mask on line 44 */
@@ -3687,9 +3684,6 @@ typedef struct
36873684
#define EXTI_C2IMR2_IM42_Pos (10U)
36883685
#define EXTI_C2IMR2_IM42_Msk (0x1UL << EXTI_C2IMR2_IM42_Pos) /*!< 0x00000400 */
36893686
#define EXTI_C2IMR2_IM42 EXTI_C2IMR2_IM42_Msk /*!< CPU2 Interrupt Mask on line 42 */
3690-
#define EXTI_C2IMR2_IM43_Pos (11U)
3691-
#define EXTI_C2IMR2_IM43_Msk (0x1UL << EXTI_C2IMR2_IM43_Pos) /*!< 0x00000800 */
3692-
#define EXTI_C2IMR2_IM43 EXTI_C2IMR2_IM43_Msk /*!< CPU2 Interrupt Mask on line 43 */
36933687
#define EXTI_C2IMR2_IM44_Pos (12U)
36943688
#define EXTI_C2IMR2_IM44_Msk (0x1UL << EXTI_C2IMR2_IM44_Pos) /*!< 0x00001000 */
36953689
#define EXTI_C2IMR2_IM44 EXTI_C2IMR2_IM44_Msk /*!< CPU2 Interrupt Mask on line 44 */

targets/TARGET_STM/TARGET_STM32WB/STM32Cube_FW/CMSIS/stm32wb50xx.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
1818
* All rights reserved.</center></h2>
1919
*
20-
* This software component is licensed by ST under BSD 3-Clause license,
20+
* This software component is licensed by ST under Apache License, Version 2.0,
2121
* the "License"; You may not use this file except in compliance with the
2222
* License. You may obtain a copy of the License at:
23-
* opensource.org/licenses/BSD-3-Clause
23+
* opensource.org/licenses/Apache-2.0
2424
*
2525
******************************************************************************
2626
*/
@@ -51,7 +51,7 @@
5151
#define __VTOR_PRESENT 1U /*!< Vector Table Register supported */
5252
#define __NVIC_PRIO_BITS 4U /*!< STM32WBxx uses 4 Bits for the Priority Levels */
5353
#define __Vendor_SysTickConfig 0U /*!< Set to 1 if different SysTick Config is used */
54-
#define __FPU_PRESENT 1U /*!< FPU present */
54+
#define __FPU_PRESENT 1 /*!< FPU present */
5555
/**
5656
* @}
5757
*/
@@ -6347,9 +6347,6 @@ typedef struct
63476347
#define RCC_CR_HSERDY_Pos (17U)
63486348
#define RCC_CR_HSERDY_Msk (0x1UL << RCC_CR_HSERDY_Pos) /*!< 0x00020000 */
63496349
#define RCC_CR_HSERDY RCC_CR_HSERDY_Msk /*!< External High Speed oscillator (HSE) clock ready */
6350-
#define RCC_CR_HSEBYP_Pos (18U)
6351-
#define RCC_CR_HSEBYP_Msk (0x1UL << RCC_CR_HSEBYP_Pos) /*!< 0x00040000 */
6352-
#define RCC_CR_HSEBYP RCC_CR_HSEBYP_Msk /*!< External High Speed oscillator (HSE) clock bypass */
63536350
#define RCC_CR_CSSON_Pos (19U)
63546351
#define RCC_CR_CSSON_Msk (0x1UL << RCC_CR_CSSON_Pos) /*!< 0x00080000 */
63556352
#define RCC_CR_CSSON RCC_CR_CSSON_Msk /*!< HSE Clock Security System enable */

targets/TARGET_STM/TARGET_STM32WB/STM32Cube_FW/CMSIS/stm32wb55xx.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
1818
* All rights reserved.</center></h2>
1919
*
20-
* This software component is licensed by ST under BSD 3-Clause license,
20+
* This software component is licensed by ST under Apache License, Version 2.0,
2121
* the "License"; You may not use this file except in compliance with the
2222
* License. You may obtain a copy of the License at:
23-
* opensource.org/licenses/BSD-3-Clause
23+
* opensource.org/licenses/Apache-2.0
2424
*
2525
******************************************************************************
2626
*/
@@ -51,7 +51,7 @@
5151
#define __VTOR_PRESENT 1U /*!< Vector Table Register supported */
5252
#define __NVIC_PRIO_BITS 4U /*!< STM32WBxx uses 4 Bits for the Priority Levels */
5353
#define __Vendor_SysTickConfig 0U /*!< Set to 1 if different SysTick Config is used */
54-
#define __FPU_PRESENT 1 /*!< FPU present */ // MBED
54+
#define __FPU_PRESENT 1 /*!< FPU present */
5555
/**
5656
* @}
5757
*/
@@ -7325,9 +7325,6 @@ typedef struct
73257325
#define RCC_CR_HSERDY_Pos (17U)
73267326
#define RCC_CR_HSERDY_Msk (0x1UL << RCC_CR_HSERDY_Pos) /*!< 0x00020000 */
73277327
#define RCC_CR_HSERDY RCC_CR_HSERDY_Msk /*!< External High Speed oscillator (HSE) clock ready */
7328-
#define RCC_CR_HSEBYP_Pos (18U)
7329-
#define RCC_CR_HSEBYP_Msk (0x1UL << RCC_CR_HSEBYP_Pos) /*!< 0x00040000 */
7330-
#define RCC_CR_HSEBYP RCC_CR_HSEBYP_Msk /*!< External High Speed oscillator (HSE) clock bypass */
73317328
#define RCC_CR_CSSON_Pos (19U)
73327329
#define RCC_CR_CSSON_Msk (0x1UL << RCC_CR_CSSON_Pos) /*!< 0x00080000 */
73337330
#define RCC_CR_CSSON RCC_CR_CSSON_Msk /*!< HSE Clock Security System enable */

targets/TARGET_STM/TARGET_STM32WB/STM32Cube_FW/CMSIS/stm32wb5mxx.h

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
1818
* All rights reserved.</center></h2>
1919
*
20-
* This software component is licensed by ST under BSD 3-Clause license,
20+
* This software component is licensed by ST under Apache License, Version 2.0,
2121
* the "License"; You may not use this file except in compliance with the
2222
* License. You may obtain a copy of the License at:
23-
* opensource.org/licenses/BSD-3-Clause
23+
* opensource.org/licenses/Apache-2.0
2424
*
2525
******************************************************************************
2626
*/
@@ -51,9 +51,7 @@
5151
#define __VTOR_PRESENT 1U /*!< Vector Table Register supported */
5252
#define __NVIC_PRIO_BITS 4U /*!< STM32WBxx uses 4 Bits for the Priority Levels */
5353
#define __Vendor_SysTickConfig 0U /*!< Set to 1 if different SysTick Config is used */
54-
#ifndef __FPU_PRESENT
55-
#define __FPU_PRESENT 1U /*!< FPU present */
56-
#endif
54+
#define __FPU_PRESENT 1 /*!< FPU present */
5755
/**
5856
* @}
5957
*/
@@ -7327,9 +7325,6 @@ typedef struct
73277325
#define RCC_CR_HSERDY_Pos (17U)
73287326
#define RCC_CR_HSERDY_Msk (0x1UL << RCC_CR_HSERDY_Pos) /*!< 0x00020000 */
73297327
#define RCC_CR_HSERDY RCC_CR_HSERDY_Msk /*!< External High Speed oscillator (HSE) clock ready */
7330-
#define RCC_CR_HSEBYP_Pos (18U)
7331-
#define RCC_CR_HSEBYP_Msk (0x1UL << RCC_CR_HSEBYP_Pos) /*!< 0x00040000 */
7332-
#define RCC_CR_HSEBYP RCC_CR_HSEBYP_Msk /*!< External High Speed oscillator (HSE) clock bypass */
73337328
#define RCC_CR_CSSON_Pos (19U)
73347329
#define RCC_CR_CSSON_Msk (0x1UL << RCC_CR_CSSON_Pos) /*!< 0x00080000 */
73357330
#define RCC_CR_CSSON RCC_CR_CSSON_Msk /*!< HSE Clock Security System enable */

targets/TARGET_STM/TARGET_STM32WB/STM32Cube_FW/CMSIS/stm32wbxx.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
2020
* All rights reserved.</center></h2>
2121
*
22-
* This software component is licensed by ST under BSD 3-Clause license,
22+
* This software component is licensed by ST under Apache License, Version 2.0,
2323
* the "License"; You may not use this file except in compliance with the
2424
* License. You may obtain a copy of the License at:
25-
* opensource.org/licenses/BSD-3-Clause
25+
* opensource.org/licenses/Apache-2.0
2626
*
2727
******************************************************************************
2828
*/
@@ -69,7 +69,7 @@
6969
* @brief CMSIS Device version number
7070
*/
7171
#define __STM32WBxx_CMSIS_VERSION_MAIN (0x01U) /*!< [31:24] main version */
72-
#define __STM32WBxx_CMSIS_VERSION_SUB1 (0x06U) /*!< [23:16] sub1 version */
72+
#define __STM32WBxx_CMSIS_VERSION_SUB1 (0x08U) /*!< [23:16] sub1 version */
7373
#define __STM32WBxx_CMSIS_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
7474
#define __STM32WBxx_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */
7575
#define __STM32WBxx_CMSIS_DEVICE_VERSION ((__STM32WBxx_CMSIS_VERSION_MAIN << 24)\
@@ -95,6 +95,10 @@
9595
#include "stm32wb35xx.h"
9696
#elif defined(STM32WB30xx)
9797
#include "stm32wb30xx.h"
98+
#elif defined(STM32WB15xx)
99+
#include "stm32wb15xx.h"
100+
#elif defined(STM32WB10xx)
101+
#include "stm32wb10xx.h"
98102
#else
99103
#error "Please select first the target STM32WBxx device used in your application, for instance xxx (in stm32wbxx.h file)"
100104
#endif

targets/TARGET_STM/TARGET_STM32WB/STM32Cube_FW/CMSIS/system_stm32wbxx.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
1010
* All rights reserved.</center></h2>
1111
*
12-
* This software component is licensed by ST under BSD 3-Clause license,
12+
* This software component is licensed by ST under Apache License, Version 2.0,
1313
* the "License"; You may not use this file except in compliance with the
1414
* License. You may obtain a copy of the License at:
15-
* opensource.org/licenses/BSD-3-Clause
15+
* opensource.org/licenses/Apache-2.0
1616
*
1717
******************************************************************************
1818
*/
@@ -64,7 +64,7 @@ extern const uint32_t AHBPrescTable[16]; /*!< AHB prescalers table values */
6464
extern const uint32_t APBPrescTable[8]; /*!< APB prescalers table values */
6565
extern const uint32_t MSIRangeTable[16]; /*!< MSI ranges table values */
6666

67-
#if defined(STM32WB55xx) || defined(STM32WB5Mxx) || defined(STM32WB35xx)
67+
#if defined(STM32WB55xx) || defined(STM32WB5Mxx) || defined(STM32WB35xx) || defined (STM32WB15xx) || defined (STM32WB10xx)
6868
extern const uint32_t SmpsPrescalerTable[4][6]; /*!< SMPS factor ranges table values */
6969
#endif
7070
/**

0 commit comments

Comments
 (0)