File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 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)
8686 /* Enable BKPSRAM CLK for backup SRAM */
8787 __HAL_RCC_BKPSRAM_CLK_ENABLE ();
8888#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
8993}
9094
9195static inline void disableBackupDomain (void )
@@ -102,6 +106,10 @@ static inline void disableBackupDomain(void)
102106 /* Disable BKP CLK for backup registers */
103107 __HAL_RCC_BKP_CLK_DISABLE ();
104108#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
105113}
106114
107115static inline void setBackupRegister (uint32_t index , uint32_t value )
You can’t perform that action at this time.
0 commit comments