Skip to content

Commit 5569bb6

Browse files
committed
[RTC] Able to build without HAL module
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 2a4b8b9 commit 5569bb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/arduino/stm32/stm32yyxx_hal_conf.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
#undef HAL_I2C_MODULE_ENABLED
2727
#endif
2828

29+
#if !defined(HAL_RTC_MODULE_DISABLED)
2930
#define HAL_RTC_MODULE_ENABLED
31+
#else
32+
#undef HAL_RTC_MODULE_ENABLED
33+
#endif
3034

3135
#if !defined(HAL_SPI_MODULE_DISABLED)
3236
#define HAL_SPI_MODULE_ENABLED

0 commit comments

Comments
 (0)