diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2017-01-16 09:46:30 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2017-01-16 09:46:30 +0000 |
commit | 84812a7534511b27636bb54aa1dee23ba0c275a4 (patch) | |
tree | 96ac5069d099369fdeea72ede1d175c394d0fd5b /os/hal/ports/STM32/STM32F7xx | |
parent | 5d210be76f879bcc11f441b7cc4eb9a3f49b28db (diff) | |
download | ChibiOS-84812a7534511b27636bb54aa1dee23ba0c275a4.tar.gz ChibiOS-84812a7534511b27636bb54aa1dee23ba0c275a4.tar.bz2 ChibiOS-84812a7534511b27636bb54aa1dee23ba0c275a4.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10051 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32F7xx')
-rw-r--r-- | os/hal/ports/STM32/STM32F7xx/hal_lld.c | 5 |
1 files changed, 1 insertions, 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;
|