summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-01-23 13:36:16 +0100
committerxengineering <me@xengineering.eu>2022-01-23 13:36:16 +0100
commit06108658053efd7cc0743ee5caa913b7bdfa0260 (patch)
treeba9a756ebd881f795115530feeb446af94cdb70a
parent3a2244d1c094b7722fa286eb24effb0b631d81aa (diff)
downloadledcontrol-06108658053efd7cc0743ee5caa913b7bdfa0260.tar
ledcontrol-06108658053efd7cc0743ee5caa913b7bdfa0260.tar.zst
ledcontrol-06108658053efd7cc0743ee5caa913b7bdfa0260.zip
Simplify structure of firmware directory
-rw-r--r--firmware/Makefile4
-rw-r--r--firmware/main.c (renamed from firmware/src/main.c)0
-rw-r--r--firmware/stm32f103c8t6.ld (renamed from firmware/ld/stm32f103c8t6.ld)0
3 files changed, 2 insertions, 2 deletions
diff --git a/firmware/Makefile b/firmware/Makefile
index 4698df5..14069f6 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -7,8 +7,8 @@ OBJCOPY = $(PREFIX)-objcopy
all: libopencm3/lib/libopencm3_stm32f1.a
mkdir -p build
- $(CC) -O0 -c -g -DSTM32F1 -Ilibopencm3/include -mcpu=cortex-m3 -mthumb -o build/main.o src/main.c
- $(LD) --static -nostartfiles -mcpu=cortex-m3 -mthumb -msoft-float -Tld/stm32f103c8t6.ld -Llibopencm3/lib build/main.o -lopencm3_stm32f1 -o build/ledcontrol.elf
+ $(CC) -O0 -c -g -DSTM32F1 -Ilibopencm3/include -mcpu=cortex-m3 -mthumb -o build/main.o main.c
+ $(LD) --static -nostartfiles -mcpu=cortex-m3 -mthumb -msoft-float -Tstm32f103c8t6.ld -Llibopencm3/lib build/main.o -lopencm3_stm32f1 -o build/ledcontrol.elf
$(OBJCOPY) -O binary build/ledcontrol.elf build/ledcontrol.bin
libopencm3/lib/libopencm3_stm32f1.a:
diff --git a/firmware/src/main.c b/firmware/main.c
index 8e39278..8e39278 100644
--- a/firmware/src/main.c
+++ b/firmware/main.c
diff --git a/firmware/ld/stm32f103c8t6.ld b/firmware/stm32f103c8t6.ld
index db01550..db01550 100644
--- a/firmware/ld/stm32f103c8t6.ld
+++ b/firmware/stm32f103c8t6.ld