Skip to content

Commit 64b7d90

Browse files
committed
Enable HSEM HAL module by default
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent d2a731a commit 64b7d90

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

cores/arduino/stm32/stm32yyxx_hal_conf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#define HAL_GPIO_MODULE_ENABLED
1212
#define HAL_PWR_MODULE_ENABLED
1313
#define HAL_RCC_MODULE_ENABLED
14+
#define HAL_HSEM_MODULE_ENABLED
1415

1516
/*
1617
* Optional HAL modules, can be enabled/disabled using
@@ -133,7 +134,6 @@
133134
HAL_HASH_MODULE_ENABLED
134135
HAL_HCD_MODULE_ENABLED
135136
HAL_HRTIM_MODULE_ENABLED
136-
HAL_HSEM_MODULE_ENABLED
137137
HAL_ICACHE_MODULE_ENABLED
138138
HAL_IPCC_MODULE_ENABLED
139139
HAL_IRDA_MODULE_ENABLED

libraries/SrcWrapper/src/stm32/hw_config.c

+4-5
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,16 @@ void hw_config_init(void)
5959
/* Initialize the HAL */
6060
HAL_Init();
6161

62+
#ifdef HSEM_BASE
63+
__HAL_RCC_HSEM_CLK_ENABLE();
64+
#endif
65+
6266
/* Configure the system clock */
6367
SystemClock_Config();
6468

6569
#if defined (USBCON) && defined(USBD_USE_CDC)
6670
USBD_CDC_init();
6771
#endif
68-
69-
#if defined (STM32MP1xx)
70-
__HAL_RCC_HSEM_CLK_ENABLE();
71-
#endif
72-
7372
}
7473
#ifdef __cplusplus
7574
}

system/STM32MP1xx/stm32mp1xx_hal_conf_default.h

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
#define HAL_RTC_MODULE_DISABLED /* RTC MODULE on Cortex-M side is not supported.
4141
Linux on Cortex-A will handle this. */
4242
#define HAL_ETH_MODULE_DISABLED /* ETH module is also not intended to be used */
43-
#define HAL_HSEM_MODULE_ENABLED
4443
#define HAL_MDMA_MODULE_ENABLED /* Some other modules (e.g. USART) require this */
4544

4645
#if defined(ARDUINO_STM32MP157A_DK1) || defined(ARDUINO_STM32MP157C_DK2)

variants/MKR_SHARKY/variant.h

-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ extern "C" {
9595
#define PIN_SERIAL_TX PB6
9696

9797
/* Extra HAL configuration */
98-
#define HAL_HSEM_MODULE_ENABLED
9998
#define PREFETCH_ENABLE 1U
10099

101100
// Only 512k provided for cpu1, so defined the FLASH_PAGE_NUMBER

0 commit comments

Comments
 (0)