summaryrefslogtreecommitdiff
path: root/software/hhd70dongle/Makefile
diff options
context:
space:
mode:
authorBernhard Tittelbach <xro@realraum.at>2012-06-22 00:25:03 +0000
committerBernhard Tittelbach <xro@realraum.at>2012-06-22 00:25:03 +0000
commitfb7380a3ee5d4a7325f3c7e8e485231957547426 (patch)
tree9d2fd878d36dc5bf025283af062516de83a8bab2 /software/hhd70dongle/Makefile
parenttiming changed @ idm-test spi end (diff)
ttyACM instead of usb_hid
git-svn-id: https://svn.spreadspace.org/mur.sat@544 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/hhd70dongle/Makefile')
-rw-r--r--software/hhd70dongle/Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/software/hhd70dongle/Makefile b/software/hhd70dongle/Makefile
index dc10371..b481287 100644
--- a/software/hhd70dongle/Makefile
+++ b/software/hhd70dongle/Makefile
@@ -22,8 +22,23 @@
NAME := hhd70dongle
BOARD_TYPE := hhd70dongle
-OBJ := $(NAME).o hhd70.o usb_rawhid.o c1101lib.o util.o
-LIBS := led
+OBJ := $(NAME).o hhd70.o c1101lib.o util.o
+LIBS := led lufa-descriptor-usbserial
RESET_FUNC := ../../tools/atmega324u_usbhid/reset
+EXTERNAL_LIBS := lufa
+
+LUFA_PATH := ../../contrib/LUFA-120219
+LUFA_OPTS = -D USB_DEVICE_ONLY
+LUFA_OPTS += -D DEVICE_STATE_AS_GPIOR=0
+LUFA_OPTS += -D ORDERED_EP_CONFIG
+LUFA_OPTS += -D FIXED_CONTROL_ENDPOINT_SIZE=8
+LUFA_OPTS += -D FIXED_NUM_CONFIGURATIONS=1
+LUFA_OPTS += -D USE_FLASH_DESCRIPTORS
+LUFA_OPTS += -D USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)"
+LUFA_OPTS += -D INTERRUPT_CONTROL_ENDPOINT
+
+LUFA_OPTS += -D USB_MANUFACTURER="L\"mur.sat\""
+LUFA_OPTS += -D USB_PRODUCT="L\"$(NAME)\""
+
include ../avr.include.mk