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:
parent
2cbee868c9
commit
bff0553eb4
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue