demo: SPI Flash interface working

This commit is contained in:
jaseg 2020-02-26 13:40:37 +01:00
parent 2964bda23c
commit fcbdab4ab2
4 changed files with 95 additions and 60 deletions

View file

@ -24,7 +24,7 @@ GDB := $(PREFIX)gdb
CFLAGS += -I$(OPENCM3_DIR)/include -Imspdebug/util -Imspdebug/drivers
CFLAGS += -Os -std=c11 -g -DSTM32F4
CFLAGS += -Os -std=gnu11 -g -DSTM32F4
# Note: libopencm3 requires some standard libc definitions from stdint.h and stdbool.h, so we don't pass -nostdinc here.
CFLAGS += -nostdlib -ffreestanding
CFLAGS += -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -g