Skip to content

Commit b2dc5be

Browse files
cparatafpistm
authored andcommitted
Add I2S and SAI support in the HAL conf
1 parent b963d89 commit b2dc5be

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

cores/arduino/stm32/stm32yyxx_hal_conf.h

+12-2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@
4949
#undef HAL_TIM_MODULE_ENABLED
5050
#endif
5151

52+
#if !defined(HAL_I2S_MODULE_DISABLED)
53+
#define HAL_I2S_MODULE_ENABLED
54+
#else
55+
#undef HAL_I2S_MODULE_ENABLED
56+
#endif
57+
58+
#if !defined(HAL_SAI_MODULE_DISABLED)
59+
#define HAL_SAI_MODULE_ENABLED
60+
#else
61+
#undef HAL_SAI_MODULE_ENABLED
62+
#endif
63+
5264
/*
5365
* Not defined by default
5466
*/
@@ -116,7 +128,6 @@
116128
HAL_HCD_MODULE_ENABLED
117129
HAL_HRTIM_MODULE_ENABLED
118130
HAL_HSEM_MODULE_ENABLED
119-
HAL_I2S_MODULE_ENABLED
120131
HAL_IPCC_MODULE_ENABLED
121132
HAL_IRDA_MODULE_ENABLED
122133
HAL_IWDG_MODULE_ENABLED // IWD built-in library uses LL
@@ -135,7 +146,6 @@
135146
HAL_PKA_MODULE_ENABLED
136147
HAL_RAMECC_MODULE_ENABLED
137148
HAL_RNG_MODULE_ENABLED
138-
HAL_SAI_MODULE_ENABLED
139149
HAL_SDADC_MODULE_ENABLED
140150
HAL_SDRAM_MODULE_ENABLED
141151
HAL_SMARTCARD_MODULE_ENABLED

0 commit comments

Comments
 (0)