From 869ed39e4c28ebb9813a8b28192d4ca92f72bf22 Mon Sep 17 00:00:00 2001 From: Perry Hung Date: Tue, 30 Mar 2010 22:50:18 -0400 Subject: Removed STM32 flash code, replaced with barebones hacks for now. At this point, there shouldn't be any STM code being compiled and linked against. There are still a bunch of STM header includes, though. --- libmaple/flash.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libmaple/flash.h (limited to 'libmaple/flash.h') diff --git a/libmaple/flash.h b/libmaple/flash.h new file mode 100644 index 0000000..741a444 --- /dev/null +++ b/libmaple/flash.h @@ -0,0 +1,16 @@ +/** + * @brief + */ + +#ifndef _FLASH_H_ +#define _FLASH_H_ + +#define FLASH_BASE 0x40022000 +#define FLASH_ACR FLASH_BASE + +void flash_enable_prefetch(void); +void flash_set_latency(void); + +#endif + + -- cgit v1.2.3