Skip to content

Commit 60fc300

Browse files
gautierg-stcarlescufi
authored andcommitted
drivers: counter: Do not keep RTC value between resets on STM32
This commit changes the ability to keep the RTC value between resets, and turns it off by default. Though this feature makes sense for an RTC counting the time and date, here it is used as a counter. As such the registers used for coutning should be reset after each MCU reset. This change puts back in place the previous behavior before the Kconfig CONFIG_COUNTER_RTC_STM32_BACKUP_DOMAIN_RESET was removed. Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
1 parent fdbfdc9 commit 60fc300

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/counter/Kconfig.stm32_rtc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ endchoice #COUNTER_RTC_STM32_CLOCK_SRC
4040

4141
config COUNTER_RTC_STM32_SAVE_VALUE_BETWEEN_RESETS
4242
bool "Save rtc time value between resets"
43-
default y
43+
default n
4444
help
45-
Do not reset the rtc time and date after each reset.
45+
Keep the counter value after each reset.
4646

4747
endif # COUNTER_RTC_STM32

0 commit comments

Comments
 (0)