File tree 4 files changed +5
-8
lines changed
libraries/SrcWrapper/src/stm32
4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 11
11
#define HAL_GPIO_MODULE_ENABLED
12
12
#define HAL_PWR_MODULE_ENABLED
13
13
#define HAL_RCC_MODULE_ENABLED
14
+ #define HAL_HSEM_MODULE_ENABLED
14
15
15
16
/*
16
17
* Optional HAL modules, can be enabled/disabled using
133
134
HAL_HASH_MODULE_ENABLED
134
135
HAL_HCD_MODULE_ENABLED
135
136
HAL_HRTIM_MODULE_ENABLED
136
- HAL_HSEM_MODULE_ENABLED
137
137
HAL_ICACHE_MODULE_ENABLED
138
138
HAL_IPCC_MODULE_ENABLED
139
139
HAL_IRDA_MODULE_ENABLED
Original file line number Diff line number Diff line change @@ -59,17 +59,16 @@ void hw_config_init(void)
59
59
/* Initialize the HAL */
60
60
HAL_Init ();
61
61
62
+ #ifdef HSEM_BASE
63
+ __HAL_RCC_HSEM_CLK_ENABLE ();
64
+ #endif
65
+
62
66
/* Configure the system clock */
63
67
SystemClock_Config ();
64
68
65
69
#if defined (USBCON ) && defined(USBD_USE_CDC )
66
70
USBD_CDC_init ();
67
71
#endif
68
-
69
- #if defined (STM32MP1xx )
70
- __HAL_RCC_HSEM_CLK_ENABLE ();
71
- #endif
72
-
73
72
}
74
73
#ifdef __cplusplus
75
74
}
Original file line number Diff line number Diff line change 40
40
#define HAL_RTC_MODULE_DISABLED /* RTC MODULE on Cortex-M side is not supported.
41
41
Linux on Cortex-A will handle this. */
42
42
#define HAL_ETH_MODULE_DISABLED /* ETH module is also not intended to be used */
43
- #define HAL_HSEM_MODULE_ENABLED
44
43
#define HAL_MDMA_MODULE_ENABLED /* Some other modules (e.g. USART) require this */
45
44
46
45
#if defined(ARDUINO_STM32MP157A_DK1 ) || defined(ARDUINO_STM32MP157C_DK2 )
Original file line number Diff line number Diff line change @@ -95,7 +95,6 @@ extern "C" {
95
95
#define PIN_SERIAL_TX PB6
96
96
97
97
/* Extra HAL configuration */
98
- #define HAL_HSEM_MODULE_ENABLED
99
98
#define PREFETCH_ENABLE 1U
100
99
101
100
// Only 512k provided for cpu1, so defined the FLASH_PAGE_NUMBER
You can’t perform that action at this time.
0 commit comments