summaryrefslogtreecommitdiff
path: root/rcc/flash.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2016-08-18 23:31:49 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2016-08-18 23:31:49 +0200
commitfec817033faed408dbd84dac19c51c0ef6b5301a (patch)
tree150ce9abab230cfb879866175fccbc936174f4c8 /rcc/flash.cpp
parent9c5c5c9243975b20b097dfb65409a3bae31f9d97 (diff)
Add STM32L0 to rcc_init().
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
}