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/stm32f1/rules.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmaple/stm32f1/rules.mk') diff --git a/libmaple/stm32f1/rules.mk b/libmaple/stm32f1/rules.mk index 3c87920..2bdc423 100644 --- a/libmaple/stm32f1/rules.mk +++ b/libmaple/stm32f1/rules.mk @@ -10,7 +10,9 @@ CFLAGS_$(d) = -I$(d) $(LIBMAPLE_INCLUDES) -Wall -Werror # Local rules and targets sSRCS_$(d) := isrs_performance.S \ vector_table_performance.S + cSRCS_$(d) := rcc.c +cSRCS_$(d) += flash.c sFILES_$(d) := $(sSRCS_$(d):%=$(d)/%) cFILES_$(d) := $(cSRCS_$(d):%=$(d)/%) -- cgit v1.2.3