Skip to content

Commit 8e28029

Browse files
committed
Use Semaphore in this variant to control M0/M4
Especially the CFG_HW_RCC_SEMID (3) when enabling the BLE Signed-off-by: Francois Ramu <[email protected]>
1 parent 0a0b2b9 commit 8e28029

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libraries/SrcWrapper/src/stm32/hw_config.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include "hw_config.h"
4040
#include "usbd_if.h"
4141
#include "dwt.h"
42+
#include "stm32wbxx_ll_hsem.h"
4243

4344
#ifdef __cplusplus
4445
extern "C" {
@@ -66,7 +67,7 @@ void hw_config_init(void)
6667
USBD_CDC_init();
6768
#endif
6869

69-
#if defined (STM32MP1xx)
70+
#if defined (STM32MP1xx) || defined (STM32WBxx)
7071
__HAL_RCC_HSEM_CLK_ENABLE();
7172
#endif
7273

variants/PNUCLEO_WB55RG/variant.h

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ extern "C" {
121121
#define FLASH_PAGE_NUMBER 127
122122

123123
#define HAL_IPCC_MODULE_ENABLED
124+
#define HAL_HSEM_MODULE_ENABLED
124125

125126
#ifdef __cplusplus
126127
} // extern "C"

0 commit comments

Comments
 (0)