diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-11-16 13:51:55 -0500 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-04-11 16:56:51 -0400 |
commit | fa7a177a0cb6c1201912d9fcdfe6d86edffb9d79 (patch) | |
tree | dfab78b0830c83c8353db151247160cd6691ce5d /libmaple/stm32f1/rules.mk | |
parent | b6290890b64d5188f75527b979c5c7912547be9b (diff) | |
download | librambutan-fa7a177a0cb6c1201912d9fcdfe6d86edffb9d79.tar.gz librambutan-fa7a177a0cb6c1201912d9fcdfe6d86edffb9d79.zip |
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 <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/stm32f1/rules.mk')
-rw-r--r-- | libmaple/stm32f1/rules.mk | 2 |
1 files changed, 2 insertions, 0 deletions
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)/%) |