summaryrefslogtreecommitdiff
path: root/hal/flash.cpp
diff options
context:
space:
mode:
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
-}