File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,10 @@ static inline void enableBackupDomain(void)
86
86
/* Enable BKPSRAM CLK for backup SRAM */
87
87
__HAL_RCC_BKPSRAM_CLK_ENABLE ();
88
88
#endif
89
+ #if defined(TAMP_BKP0R ) && defined(__HAL_RCC_RTCAPB_CLK_ENABLE )
90
+ /* Enable RTC CLK for TAMP backup registers */
91
+ __HAL_RCC_RTCAPB_CLK_ENABLE ();
92
+ #endif
89
93
}
90
94
91
95
static inline void disableBackupDomain (void )
@@ -102,6 +106,10 @@ static inline void disableBackupDomain(void)
102
106
/* Disable BKP CLK for backup registers */
103
107
__HAL_RCC_BKP_CLK_DISABLE ();
104
108
#endif
109
+ #if defined(TAMP_BKP0R ) && defined(__HAL_RCC_RTCAPB_CLK_DISABLE )
110
+ /* Disable RTC CLK for TAMP backup registers */
111
+ __HAL_RCC_RTCAPB_CLK_DISABLE ();
112
+ #endif
105
113
}
106
114
107
115
static inline void setBackupRegister (uint32_t index , uint32_t value )
You can’t perform that action at this time.
0 commit comments