summaryrefslogtreecommitdiff
path: root/rcc/flash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rcc/flash.cpp')
-rw-r--r--rcc/flash.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/rcc/flash.cpp b/rcc/flash.cpp
index e17b6a1..988764f 100644
--- a/rcc/flash.cpp
+++ b/rcc/flash.cpp
@@ -7,23 +7,23 @@ void flash_init() {
#if defined(STM32F1) || defined(STM32F3)
// Set flash latency.
- FLASH.ACR = 0x12;
+ FLASH->ACR = 0x12;
#elif defined(STM32F4)
// Set flash latency.
- FLASH.ACR = 0x107;
+ FLASH->ACR = 0x107;
- while(FLASH.ACR != 0x107);
+ while(FLASH->ACR != 0x107);
#elif defined(STM32F0) || defined(STM32L0)
// SET flash latency.
- FLASH.ACR = 1 << 0;
+ FLASH->ACR = 1 << 0;
#elif defined(STM32WB)
// Prefetch and both caches, plus 3WS for 64MHz
- FLASH.ACR = 0x700 | 3;
+ FLASH->ACR = 0x700 | 3;
#endif
}