]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blobdiff - halcogen/tms570_hydctr/Makefile
Update/add files for automatic conversion of HalCoGen output to RPP structure
[pes-rpp/rpp-lib.git] / halcogen / tms570_hydctr / Makefile
diff --git a/halcogen/tms570_hydctr/Makefile b/halcogen/tms570_hydctr/Makefile
new file mode 100644 (file)
index 0000000..ad3930c
--- /dev/null
@@ -0,0 +1,15 @@
+SRC=$(wildcard include/* source/*)
+
+all: pinmux
+
+.cleanup.stamp: $(SRC) ../halcogen-cleanup.sh
+       ../halcogen-cleanup.sh --output rpp/ $(SRC)
+       touch $@
+
+
+
+.PHONY: pinmux
+pinmux:        .cleanup.stamp
+       cp rpp/include/sys/sys_pinmux.h ../../rpp/include/sys/_$(notdir $(CURDIR))
+       cp rpp/include/sys/reg_pinmux.h ../../rpp/include/sys/_$(notdir $(CURDIR))
+       cp rpp/src/sys/sys_pinmux.c ../../rpp/src/sys/_$(notdir $(CURDIR))