From fa7a177a0cb6c1201912d9fcdfe6d86edffb9d79 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Wed, 16 Nov 2011 13:51:55 -0500 Subject: Move Flash support for STM32F1 to libmaple/stm32f1/. This is a backwards-compatible change. The Flash registers on the STM32F2 line are different than on STM32F1. Therefore, move the register map and bit definitions to new libmaple/stm32f1/include/family/flash.h. Move flash_enable_prefetch() from libmaple/flash.c to new libmaple/stm32f1/flash.c. The remaining pieces of libmaple/flash.c use a common subset of the Flash registers, so they're's portable to F2, and that's all we're currently interested in. Signed-off-by: Marti Bolivar --- libmaple/flash.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'libmaple/flash.c') diff --git a/libmaple/flash.c b/libmaple/flash.c index d0e23d0..0ade4cb 100644 --- a/libmaple/flash.c +++ b/libmaple/flash.c @@ -25,20 +25,12 @@ *****************************************************************************/ /** - * @file flash.c + * @file libmaple/flash.c * @brief Flash management functions */ -#include +#include #include -#include - -/** - * @brief Turn on the hardware prefetcher. - */ -void flash_enable_prefetch(void) { - *bb_perip(&FLASH_BASE->ACR, FLASH_ACR_PRFTBE_BIT) = 1; -} /** * @brief Set flash wait states -- cgit v1.2.3