diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2016-08-18 23:31:49 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2016-08-18 23:31:49 +0200 |
commit | fec817033faed408dbd84dac19c51c0ef6b5301a (patch) | |
tree | 150ce9abab230cfb879866175fccbc936174f4c8 /rcc/flash.cpp | |
parent | 9c5c5c9243975b20b097dfb65409a3bae31f9d97 (diff) |
Add STM32L0 to rcc_init().
Diffstat (limited to 'rcc/flash.cpp')
-rw-r--r-- | rcc/flash.cpp | 5 |
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 } |