stm32g0: add flash.

here, it's a bit of a mess.. G0 flash controller does not really
match exsting feature split. IE it has instruction cache only ..
so, no flash_idcache.c as it. flash_common_f could be used, but
flash_unlock would not take care of option byte ?

prefetch, icache and lock is ok. I had no look at flash programming
or erase yet..
This commit is contained in:
Guillaume Revaillot
2019-01-10 18:41:56 +01:00
committed by Karl Palsson
parent f13a9eee5b
commit cbe5425090
4 changed files with 281 additions and 1 deletions

View File

@@ -36,7 +36,8 @@ TGT_CFLAGS += $(STANDARD_FLAGS)
ARFLAGS = rcs
OBJS = gpio_common_all.o gpio_common_f0234.o
OBJS += flash.o flash_common_all.o
OBJS += gpio_common_all.o gpio_common_f0234.o
OBJS += pwr.o
VPATH +=../:../../cm3:../common