aboutsummaryrefslogtreecommitdiff
path: root/fw/Makefile
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2017-08-24 00:52:18 +0200
committerjaseg <git@jaseg.net>2017-08-24 00:52:18 +0200
commita832816d61aea37bea349dcd50098511712bc315 (patch)
tree3110a8827be71dc0ae09aad7cd3da5000e1686d3 /fw/Makefile
parent570f527a3a4c4bd74bbbb174681a7c0e64e4b5b8 (diff)
download7seg-a832816d61aea37bea349dcd50098511712bc315.tar.gz
7seg-a832816d61aea37bea349dcd50098511712bc315.tar.bz2
7seg-a832816d61aea37bea349dcd50098511712bc315.zip
Serial protocol now working including CRC
Diffstat (limited to 'fw/Makefile')
-rw-r--r--fw/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/fw/Makefile b/fw/Makefile
index 8296708..b873ab5 100644
--- a/fw/Makefile
+++ b/fw/Makefile
@@ -32,7 +32,7 @@ LDFLAGS += -L$(CMSIS_PATH)/Lib/GCC -larm_cortexM0l_math
.PHONY: program clean
-all: main.elf main.pdf
+all: main.elf
cmsis_exports.c: $(CMSIS_DEV_PATH)/Include/stm32f030x6.h $(CMSIS_PATH)/Include/core_cm0.h
python3 gen_cmsis_exports.py $^ > $@
@@ -48,7 +48,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 base.o semihosting.o cmsis_exports.o transpose.o
+main.elf: main.o startup_stm32f030x6.o system_stm32f0xx.o $(HAL_PATH)/Src/stm32f0xx_ll_utils.o base.o cmsis_exports.o transpose.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
$(OBJCOPY) -O ihex $@ $(@:.elf=.hex)
$(OBJCOPY) -O binary $@ $(@:.elf=.bin)
@@ -65,8 +65,13 @@ transpose.elf: transpose.c transpose_main.c
transpose_test: transpose.elf
./transpose.elf
+_crc.so: crc.c
+ gcc -o $@ -shared -fPIC -g $^
+
clean:
rm -f **.o
rm -f main.elf main.hex main.bin main.map main.lst
rm -f **.expand
+ rm -f transpose.elf
+ rm -f crc.so