git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10051 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2017-01-16 09:46:30 +00:00
parent 5d210be76f
commit 84812a7534
1 changed files with 1 additions and 4 deletions

View File

@ -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;