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:
parent
83b5d65d57
commit
4682e10e2a
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue