[ion/device] Stop APB1

Change-Id: Icf84297e4c1539628c45804a8abf69e16117c294
This commit is contained in:
Romain Goyet
2017-03-15 17:18:20 +01:00
parent 4fde3a5304
commit 311a6f985d
2 changed files with 2 additions and 2 deletions

View File

@@ -204,7 +204,7 @@ void initClocks() {
void shutdownClocks() {
// Reset values, everything off
RCC.APB2ENR()->set(0x00008000);
RCC.APB1ENR()->set(0x00000400);
// AHB1 bus
RCC.AHB1ENR()->set(0);
}

View File

@@ -71,7 +71,7 @@ public:
REGS_BOOL_FIELD(QSPIEN, 0);
};
class APB1ENR : Register32 {
class APB1ENR : public Register32 {
public:
REGS_BOOL_FIELD(TIM3EN, 1);
REGS_BOOL_FIELD(SPI3EN, 15);