diff options
author | jaseg <git@jaseg.net> | 2019-04-15 12:28:22 +0900 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2019-04-15 12:28:22 +0900 |
commit | a8448faccabdcf5ca1fe05760bbbfb78a1c5e917 (patch) | |
tree | 465e8f9159bec0086300f2ededbe726ad3c95826 /driver_fw/Makefile | |
parent | a860bd27a0950e4dd8ae530f9095a91ced7436a3 (diff) | |
download | 8seg-a8448faccabdcf5ca1fe05760bbbfb78a1c5e917.tar.gz 8seg-a8448faccabdcf5ca1fe05760bbbfb78a1c5e917.tar.bz2 8seg-a8448faccabdcf5ca1fe05760bbbfb78a1c5e917.zip |
driver/fw: current sensor works
Diffstat (limited to 'driver_fw/Makefile')
-rw-r--r-- | driver_fw/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/driver_fw/Makefile b/driver_fw/Makefile index 1fb1865..482e265 100644 --- a/driver_fw/Makefile +++ b/driver_fw/Makefile @@ -30,6 +30,9 @@ LDFLAGS += -Tstm32_flash.ld 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 +SOURCES = main.c startup_stm32f030x6.s system_stm32f0xx.c base.c $(HAL_PATH)/Src/stm32f0xx_ll_utils.c cmsis_exports.c \ + ../common/8b10b.c serial.c mac.c i2c.c lcd1602.c mcp9801.c ina226.c + ################################################### .PHONY: program clean @@ -50,7 +53,7 @@ cmsis_exports.c: $(CMSIS_DEV_PATH)/Include/stm32f030x6.h $(CMSIS_PATH)/Include/c %.dot: %.elf r2 -a arm -qc 'aa;agC' $< 2>/dev/null >$@ -main.elf: main.o startup_stm32f030x6.o system_stm32f0xx.o $(HAL_PATH)/Src/stm32f0xx_ll_utils.o cmsis_exports.o ../common/8b10b.o serial.o mac.o i2c.o lcd1602.o mcp9801.o base.o +main.elf: $(SOURCES) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(OBJCOPY) -O ihex $@ $(@:.elf=.hex) $(OBJCOPY) -O binary $@ $(@:.elf=.bin) |