mirror of https://github.com/rusefi/ChibiOS.git
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10051 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
5d210be76f
commit
84812a7534
|
@ -160,10 +160,7 @@ void stm32_clock_init(void) {
|
|||
|
||||
#if !STM32_NO_INIT
|
||||
/* PWR clock enabled.*/
|
||||
#if defined(HAL_USE_RTC) && \
|
||||
(defined(STM32F765xx) || defined(STM32F767xx) || \
|
||||
defined(STM32F769xx) || defined(STM32F777xx) || \
|
||||
defined (STM32F779xx))
|
||||
#if defined(HAL_USE_RTC) && defined(RCC_APB1ENR_RTCEN)
|
||||
RCC->APB1ENR = RCC_APB1ENR_PWREN | RCC_APB1ENR_RTCEN;
|
||||
#else
|
||||
RCC->APB1ENR = RCC_APB1ENR_PWREN;
|
||||
|
|
Loading…
Reference in New Issue