drivers: rtc: stm32: subsecond not supported by F2x

subsecond counting is not supported by STM32F2x SoC series.

Signed-off-by: Abderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>
This commit is contained in:
Abderrahmane Jarmouni 2024-05-07 11:16:12 +02:00 committed by Carles Cufí
commit 4682e10e2a

View file

@ -39,8 +39,9 @@
LOG_MODULE_REGISTER(rtc_stm32, CONFIG_RTC_LOG_LEVEL); LOG_MODULE_REGISTER(rtc_stm32, CONFIG_RTC_LOG_LEVEL);
#if defined(CONFIG_SOC_SERIES_STM32L1X) && !defined(RTC_SUBSECOND_SUPPORT) #if (defined(CONFIG_SOC_SERIES_STM32L1X) && !defined(RTC_SUBSECOND_SUPPORT)) \
/* subsecond counting is not supported by some STM32L1x MCUs */ || defined(CONFIG_SOC_SERIES_STM32F2X)
/* subsecond counting is not supported by some STM32L1x MCUs (Cat.1) & by STM32F2x SoC series */
#define HW_SUBSECOND_SUPPORT (0) #define HW_SUBSECOND_SUPPORT (0)
#else #else
#define HW_SUBSECOND_SUPPORT (1) #define HW_SUBSECOND_SUPPORT (1)