summaryrefslogtreecommitdiff
path: root/rcc/flash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rcc/flash.cpp')
-rw-r--r--rcc/flash.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/rcc/flash.cpp b/rcc/flash.cpp
index 528ba57..6469b1c 100644
--- a/rcc/flash.cpp
+++ b/rcc/flash.cpp
@@ -13,5 +13,10 @@ void flash_init() {
while(FLASH.ACR != 0x105);
+ #elif defined(STM32L0)
+
+ // SET flash latency.
+ FLASH.ACR = 1 << 0;
+
#endif
}