aboutsummaryrefslogtreecommitdiff
path: root/center_fw/Makefile
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-05-25 22:23:09 +0200
committerjaseg <git@jaseg.de>2023-05-25 22:23:09 +0200
commitfec02919c34a00e8829fed788fea33debaae6884 (patch)
tree326328a2a3b66309561e87f26ec2850170f68987 /center_fw/Makefile
parentf74d787c99ddbe9e4c879be761f87deba3af0ef2 (diff)
download8seg-fec02919c34a00e8829fed788fea33debaae6884.tar.gz
8seg-fec02919c34a00e8829fed788fea33debaae6884.tar.bz2
8seg-fec02919c34a00e8829fed788fea33debaae6884.zip
Driver Filter WIP
Diffstat (limited to 'center_fw/Makefile')
-rw-r--r--center_fw/Makefile13
1 files changed, 2 insertions, 11 deletions
diff --git a/center_fw/Makefile b/center_fw/Makefile
index 5987b9f..98c0f5b 100644
--- a/center_fw/Makefile
+++ b/center_fw/Makefile
@@ -14,7 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-CUBE_PATH ?= $(wildcard ~)/ref/stm32cube/STM32CubeF0
+CUBE_PATH ?= $(wildcard ~)/ref/STM32CubeF0
CMSIS_PATH ?= $(CUBE_PATH)/Drivers/CMSIS
CMSIS_DEV_PATH ?= $(CMSIS_PATH)/Device/ST/STM32F0xx
HAL_PATH ?= $(CUBE_PATH)/Drivers/STM32F0xx_HAL_Driver
@@ -79,7 +79,7 @@ sources.tar.xz.zip: sources.tar.xz
sources.c: sources.tar.xz.zip
xxd -i $< | head -n -1 | sed 's/=/__attribute__((section(".source_tarball"))) =/' > $@
-main.elf: main.c startup_stm32f030x6.s system_stm32f0xx.c $(HAL_PATH)/Src/stm32f0xx_ll_utils.c base.c cmsis_exports.c ../common/8b10b.c adc.c protocol.c 8seg_protocol.c transmit.c
+main.elf: main.c startup_stm32f030x6.s system_stm32f0xx.c base.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
$(OBJCOPY) -O ihex $@ $(@:.elf=.hex)
$(OBJCOPY) -O binary $@ $(@:.elf=.bin)
@@ -89,15 +89,6 @@ main.elf: main.c startup_stm32f030x6.s system_stm32f0xx.c $(HAL_PATH)/Src/stm32f
program: main.elf openocd.cfg
openocd -f openocd.cfg -c "program $< verify reset exit"
-8b10b_test_encode: 8b10b_test_encode.c 8b10b.c
- gcc -o $@ $^
-
-8b10b_test_decode: 8b10b_test_decode.c 8b10b.c
- gcc -o $@ $^
-
-protocol_test: protocol.c protocol_test.c
- gcc -o $@ -O0 -Wall -Wextra -g -I../common $^
-
clean:
rm -f **.o
rm -f main.elf main.hex main.bin main.map main.lst