From fec817033faed408dbd84dac19c51c0ef6b5301a Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 18 Aug 2016 23:31:49 +0200 Subject: Add STM32L0 to rcc_init(). --- rcc/flash.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rcc/flash.cpp') 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 } -- cgit v1.2.3