summaryrefslogtreecommitdiff
path: root/hal/flash.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2012-08-07 16:54:36 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2012-08-07 16:54:36 +0200
commit09e89c867c8dc14adee298176a0a4c72d8f32245 (patch)
tree8d125de0b4a1c9d608ddae6ff927fc3624663bd0 /hal/flash.cpp
parent2fc77d271db27ecb140191c2dfafdba835962ffb (diff)
Split out reusable parts into the laks project.
Diffstat (limited to 'hal/flash.cpp')
-rw-r--r--hal/flash.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/hal/flash.cpp b/hal/flash.cpp
deleted file mode 100644
index 2b0fb69..0000000
--- a/hal/flash.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-#include "flash.h"
-
-void flash_init() {
- #if defined(STM32F1)
-
- // Set flash latency.
- FLASH.ACR = 0x12;
-
- #elif defined(STM32F4)
-
- // Set flash latency.
- FLASH.ACR = 0x105;
-
- while(FLASH.ACR != 0x105);
-
- #endif
-}