diff options
author | jaseg <git@jaseg.net> | 2018-12-23 12:57:40 +0900 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2018-12-23 12:57:40 +0900 |
commit | 62389e00fed49b7b89f465c9cd6bb586502331be (patch) | |
tree | e38348acaef07b595459057422ee6d92f8cea9c8 /driver_fw/Makefile | |
parent | 468fe59d9747078830dd489668b8c8ee8520b4a5 (diff) | |
download | 8seg-62389e00fed49b7b89f465c9cd6bb586502331be.tar.gz 8seg-62389e00fed49b7b89f465c9cd6bb586502331be.tar.bz2 8seg-62389e00fed49b7b89f465c9cd6bb586502331be.zip |
ADC working
Diffstat (limited to 'driver_fw/Makefile')
-rw-r--r-- | driver_fw/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/driver_fw/Makefile b/driver_fw/Makefile index de129d2..2d74acd 100644 --- a/driver_fw/Makefile +++ b/driver_fw/Makefile @@ -9,7 +9,7 @@ OBJCOPY := arm-none-eabi-objcopy OBJDUMP := arm-none-eabi-objdump SIZE := arm-none-eabi-size -CFLAGS = -g -Wall -std=gnu11 -O1 -fdump-rtl-expand +CFLAGS = -g -Wall -std=gnu11 -O1 -fdump-rtl-expand -Wno-discarded-qualifiers CFLAGS += -mlittle-endian -mcpu=cortex-m3 -mthumb #CFLAGS += -ffunction-sections -fdata-sections LDFLAGS = -nostartfiles @@ -22,7 +22,7 @@ LIBS = -lgcc CFLAGS += -DSTM32F103xB -DHSE_VALUE=8000000 LDFLAGS += -Tstm32_flash.ld -CFLAGS += -I$(CMSIS_DEV_PATH)/Include -I$(CMSIS_PATH)/Include -I$(HAL_PATH)/Inc -Iconfig +CFLAGS += -I$(CMSIS_DEV_PATH)/Include -I$(CMSIS_PATH)/Include -I$(HAL_PATH)/Inc -Iconfig -I../common #LDFLAGS += -L$(CMSIS_PATH)/Lib/GCC -larm_cortexM0l_math ################################################### @@ -45,7 +45,7 @@ cmsis_exports.c: $(CMSIS_DEV_PATH)/Include/stm32f103xb.h $(CMSIS_PATH)/Include/c %.dot: %.elf r2 -a arm -qc 'aa;agC' $< 2>/dev/null >$@ -main.elf: main.o startup_stm32f103xb.o system_stm32f1xx.o $(HAL_PATH)/Src/stm32f1xx_ll_utils.o cmsis_exports.o +main.elf: main.o startup_stm32f103xb.o system_stm32f1xx.o $(HAL_PATH)/Src/stm32f1xx_ll_utils.o cmsis_exports.o ../common/8b10b.o $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(OBJCOPY) -O ihex $@ $(@:.elf=.hex) $(OBJCOPY) -O binary $@ $(@:.elf=.bin) |