Tentative fix for RTC access.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14576 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-06-27 09:07:53 +00:00
parent 2cbee868c9
commit bff0553eb4
1 changed files with 8 additions and 0 deletions

View File

@ -642,6 +642,10 @@ void stm32_clock_init(void) {
among multiple drivers.*/
rccEnableAPBR2(RCC_APBENR2_SYSCFGEN, false);
#if defined(HAL_USE_RTC) && defined(RCC_APBENR1_RTCAPBEN)
rccEnableAPBR1(RCC_APBENR1_RTCAPBEN, false);
#endif
/* Static PWR configurations.*/
hal_lld_set_static_pwr();
@ -681,6 +685,10 @@ void stm32_clock_init(void) {
among multiple drivers.*/
rccEnableAPBR2(RCC_APBENR2_SYSCFGEN, false);
#if defined(HAL_USE_RTC) && defined(RCC_APBENR1_RTCAPBEN)
rccEnableAPBR1(RCC_APBENR1_RTCAPBEN, false);
#endif
/* Static PWR configurations.*/
hal_lld_set_static_pwr();