From b7d64dc4f723fd8532e488ca75bc5823453dd493 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Wed, 9 Aug 2023 12:34:37 -0700 Subject: [PATCH] extract mk --- firmware/Makefile | 5 +++-- firmware/wideband.mk | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 firmware/wideband.mk diff --git a/firmware/Makefile b/firmware/Makefile index 25de167..5a0f8d8 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -126,6 +126,8 @@ include $(CHIBIOS)/os/hal/lib/complex/mfs/hal_mfs.mk # include board.mk that sets per-board options include $(BOARDDIR)/board.mk +include wideband.mk + # Define linker script file here LDSCRIPT=app.ld @@ -139,6 +141,7 @@ CPPSRC = $(ALLCPPSRC) \ $(BOARDDIR)/port.cpp \ $(BOARDDIR)/port_shared.cpp \ $(RUSEFI_LIB_CPP) \ + $(WIDEBANDSRC) \ shared/flash.cpp \ can.cpp \ can_helper.cpp \ @@ -147,8 +150,6 @@ CPPSRC = $(ALLCPPSRC) \ pwm.cpp \ dac.cpp \ pump_dac.cpp \ - sampling.cpp \ - heater_control.cpp \ pid.cpp \ pump_control.cpp \ max3185x.cpp \ diff --git a/firmware/wideband.mk b/firmware/wideband.mk new file mode 100644 index 0000000..7d64611 --- /dev/null +++ b/firmware/wideband.mk @@ -0,0 +1,3 @@ +WIDEBANDSRC = \ + sampling.cpp \ + heater_control.cpp \