From 84812a7534511b27636bb54aa1dee23ba0c275a4 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 16 Jan 2017 09:46:30 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10051 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/STM32F7xx/hal_lld.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/os/hal/ports/STM32/STM32F7xx/hal_lld.c b/os/hal/ports/STM32/STM32F7xx/hal_lld.c index 0e076a22d..2b2bf1d2c 100644 --- a/os/hal/ports/STM32/STM32F7xx/hal_lld.c +++ b/os/hal/ports/STM32/STM32F7xx/hal_lld.c @@ -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; -- cgit v1.2.3