diff --git a/Makefile b/Makefile index 3decf4b..f71453c 100644 --- a/Makefile +++ b/Makefile @@ -5,14 +5,15 @@ BMP_PORT ?= /dev/ttyBmpGdb COMFLAGS=-g -Os -pedantic -Wall -LIBNAME = opencm3_stm32f4 -FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ARCH_FLAGS = -mthumb -mcpu=cortex-m4 $(FP_FLAGS) -DEVDEFS = -DSTM32F4 -DSTM32F4CCM -DSTM32F405RG -D_ROM=1008K -D_RAM=128K -D_CCM=64K -D_CCM_OFF=0x10000000 -D_ROM_OFF=0x08004000 -D_RAM_OFF=0x20000000 +#LIBNAME = opencm3_stm32f4 +#FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 +#ARCH_FLAGS = -mthumb -mcpu=cortex-m4 $(FP_FLAGS) +#DEVDEFS = -DSTM32F4 -DSTM32F4CCM -DSTM32F405RG -D_ROM=1008K -D_RAM=128K -D_CCM=64K -D_CCM_OFF=0x10000000 -D_ROM_OFF=0x08004000 -D_RAM_OFF=0x20000000 -DBOOTLOADER +#LDSCRIPT = linker.ld +DEVICE = STM32F405RG CFLAGS=$(COMFLAGS) $(DEVDEFS) -std=c99 -D_POSIX_C_SOURCE=200809L CXXFLAGS=$(COMFLAGS) -std=c++17 -LDSCRIPT = linker.ld OBJS = usb.o adc.o ringbuffer.o uart.o buttons.o printf.o encoder.o BINARY ?= main