From e9c2b923593c2823ab61152fd4a2d23f7583aa1b Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 28 May 2017 13:11:05 +0000 Subject: Fixed bug #835. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10209 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/STM32F7xx/hal_lld.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'os/hal/ports/STM32/STM32F7xx/hal_lld.c') diff --git a/os/hal/ports/STM32/STM32F7xx/hal_lld.c b/os/hal/ports/STM32/STM32F7xx/hal_lld.c index bf2366bd0..8dbf62a0d 100644 --- a/os/hal/ports/STM32/STM32F7xx/hal_lld.c +++ b/os/hal/ports/STM32/STM32F7xx/hal_lld.c @@ -262,15 +262,12 @@ void stm32_clock_init(void) { /* DCKCFGR1 register initialization, note, must take care of the _OFF pseudo settings.*/ { - uint32_t dckcfgr1 = 0; + uint32_t dckcfgr1 = STM32_PLLI2SDIVQ | STM32_PLLSAIDIVQ | STM32_PLLSAIDIVR; #if STM32_SAI2SEL != STM32_SAI2SEL_OFF dckcfgr1 |= STM32_SAI2SEL; #endif #if STM32_SAI1SEL != STM32_SAI1SEL_OFF dckcfgr1 |= STM32_SAI1SEL; -#endif -#if STM32_PLLSAIDIVR != STM32_PLLSAIDIVR_OFF - dckcfgr1 |= STM32_PLLSAIDIVR; #endif RCC->DCKCFGR1 = dckcfgr1; } -- cgit v1.2.3