summaryrefslogtreecommitdiff
path: root/software/hhd70dongle/Makefile
diff options
context:
space:
mode:
authorBernhard Tittelbach <xro@realraum.at>2012-05-17 06:14:29 +0000
committerBernhard Tittelbach <xro@realraum.at>2012-05-17 06:14:29 +0000
commit3ce320b1618b5c1a2232a6887c5fef780872171c (patch)
treee43bc1a76ea617225cd26c026696578aa7440b8b /software/hhd70dongle/Makefile
parentspi and c1101 code shuffling (diff)
debugging test attempts
git-svn-id: https://svn.spreadspace.org/mur.sat@418 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/hhd70dongle/Makefile')
-rw-r--r--software/hhd70dongle/Makefile64
1 files changed, 36 insertions, 28 deletions
diff --git a/software/hhd70dongle/Makefile b/software/hhd70dongle/Makefile
index 80c92b8..c12e4c6 100644
--- a/software/hhd70dongle/Makefile
+++ b/software/hhd70dongle/Makefile
@@ -1,28 +1,36 @@
-##
-## spreadspace teensy utils
-##
-##
-## Copyright (C) 2011 Christian Pointner <equinox@spreadspace.org>
-##
-## This file is part of spreadspace teensy utils.
-##
-## spreadspace teensy utils is free software: you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation, either version 3 of the License, or
-## any later version.
-##
-## spreadspace teensy utils is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with spreadspace teensy utils. If not, see <http://www.gnu.org/licenses/>.
-##
-
-NAME := hhd70dongle
-OBJ := hhd70dongle.o led.o spi.o usb_rawhid.o c1101lib.o
-BOARD_TYPE := teensy2
-
-include ../teensy.include.mk
-CFLAGS += -std=gnu99
+##
+## spreadspace teensy utils
+##
+##
+## Copyright (C) 2011 Christian Pointner <equinox@spreadspace.org>
+##
+## This file is part of spreadspace teensy utils.
+##
+## spreadspace teensy utils is free software: you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation, either version 3 of the License, or
+## any later version.
+##
+## spreadspace teensy utils is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with spreadspace teensy utils. If not, see <http://www.gnu.org/licenses/>.
+##
+
+NAME := hhd70dongle
+OBJ := hhd70dongle.o led.o spi.o usb_rawhid.o c1101lib.o util.o
+BOARD_TYPE := teensy2
+
+include ../teensy.include.mk
+CFLAGS += -std=gnu99
+
+DFU_PRO_TARGET := atmega32u4
+
+.phony: flash
+flash: $(NAME).hex
+ sudo dfu-programmer $(DFU_PRO_TARGET) erase
+ sudo dfu-programmer $(DFU_PRO_TARGET) flash $<
+ sudo dfu-programmer $(DFU_PRO_TARGET) start