summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2017-03-23 20:06:18 +0000
committerTomasz Kramkowski <tk@the-tk.com>2017-03-23 20:06:18 +0000
commitf45edd4bb3ee0d81a8faae98933566231b1566f4 (patch)
tree06ef59cc0cbd25ad9a91951f73cd9d68324c251f /Makefile
parent1ec844ea39052ebe2d805a3c8a613373c527f68a (diff)
downloadfmk-f45edd4bb3ee0d81a8faae98933566231b1566f4.tar.gz
fmk-f45edd4bb3ee0d81a8faae98933566231b1566f4.tar.xz
fmk-f45edd4bb3ee0d81a8faae98933566231b1566f4.zip
move register definitions to separate repository
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 187d516..d663578 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
CPU = cortex-m4
MCU = MK20DX256
+MK20DX256 = ../mk20dx256
+# Change this to suit
TARGET_ARCH = -mcpu=$(CPU) -mthumb
AS = arm-none-eabi-as
@@ -17,6 +19,9 @@ ASFLAGS = $(TARGET_ARCH)
OBJ := crt0.o vectors.o flashconf.o setup.o fmk.o lib/le.o usb/usb.o usb/endpt0.o usb/endpt1.o
+include $(MK20DX256)/mk20dx256.mk
+CPPFLAGS += $(mk20dx256_CPPFLAGS)
+
%.bin: %
$(OBJCOPY) -O binary $< $@