From d413fd0816c654218ccf94dbda95decfc965c3c6 Mon Sep 17 00:00:00 2001 From: Ruben Dashyan Date: Thu, 10 Jan 2019 10:14:55 +0100 Subject: [PATCH] [ion/f730] Fix RCC resst values --- ion/src/f730/device.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ion/src/f730/device.cpp b/ion/src/f730/device.cpp index 009883032..d53097d9f 100644 --- a/ion/src/f730/device.cpp +++ b/ion/src/f730/device.cpp @@ -297,7 +297,7 @@ void initClocks() { // AHB1 bus // Our peripherals are using GPIO A, B, C, D and E. // We're not using the CRC nor DMA engines. - class RCC::AHB1ENR ahb1enr(0); // Reset value + class RCC::AHB1ENR ahb1enr(0x00100000); // Reset value ahb1enr.setGPIOAEN(true); ahb1enr.setGPIOBEN(true); ahb1enr.setGPIOCEN(true); @@ -329,12 +329,12 @@ void initClocks() { void shutdownClocks(bool keepLEDAwake) { // APB2 bus - RCC.APB2ENR()->set(0x00008000); // Reset value + RCC.APB2ENR()->set(0); // Reset value // APB1 - class RCC::APB1ENR apb1enr(0x00000400); // Reset value + class RCC::APB1ENR apb1enr(0); // Reset value // AHB1 bus - class RCC::AHB1ENR ahb1enr(0); // Reset value + class RCC::AHB1ENR ahb1enr(0x00100000); // Reset value if (keepLEDAwake) { apb1enr.setTIM3EN(true); ahb1enr.setGPIOBEN(true);