aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32F7xx/hal_lld.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-05-28 13:11:05 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-05-28 13:11:05 +0000
commite9c2b923593c2823ab61152fd4a2d23f7583aa1b (patch)
tree41e4b3c2a7bed230b94b6c3db2d0481b5563f38b /os/hal/ports/STM32/STM32F7xx/hal_lld.c
parent5b9c975a2d5253ecdea8e1341336d83d58ba7e75 (diff)
downloadChibiOS-e9c2b923593c2823ab61152fd4a2d23f7583aa1b.tar.gz
ChibiOS-e9c2b923593c2823ab61152fd4a2d23f7583aa1b.tar.bz2
ChibiOS-e9c2b923593c2823ab61152fd4a2d23f7583aa1b.zip
Fixed bug #835.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10209 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32F7xx/hal_lld.c')
-rw-r--r--os/hal/ports/STM32/STM32F7xx/hal_lld.c5
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 bf2366bd0..8dbf62a0d 100644
--- a/os/hal/ports/STM32/STM32F7xx/hal_lld.c
+++ b/os/hal/ports/STM32/STM32F7xx/hal_lld.c
@@ -262,16 +262,13 @@ 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;
}