From b8425e8b58db204e700589e6f37d647515d33034 Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Sun, 23 Aug 2015 15:31:51 -0400 Subject: [PATCH] makefile stuff --- protocol/lufa.mk | 4 +++- protocol/lufa/lufa.c | 2 ++ protocol/lufa/lufa.h | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/protocol/lufa.mk b/protocol/lufa.mk index 74a8bef3c..561c505c2 100644 --- a/protocol/lufa.mk +++ b/protocol/lufa.mk @@ -24,7 +24,9 @@ LUFA_SRC = $(LUFA_DIR)/lufa.c \ $(LUFA_DIR)/midi/midi_device.c \ $(LUFA_DIR)/midi/bytequeue/bytequeue.c \ $(LUFA_DIR)/midi/bytequeue/interrupt_setting.c \ - $(LUFA_DIR)/LUFA-git/LUFA/Drivers/USB/Class/Device/MIDIClassDevice.c + $(LUFA_SRC_USB) \ + $(LUFA_SRC_USBCLASS) + SRC += $(LUFA_SRC) diff --git a/protocol/lufa/lufa.c b/protocol/lufa/lufa.c index 03b13f404..78ed6cfe2 100644 --- a/protocol/lufa/lufa.c +++ b/protocol/lufa/lufa.c @@ -52,6 +52,8 @@ #include "descriptor.h" #include "lufa.h" +// #include +// #include uint8_t keyboard_idle = 0; uint8_t keyboard_protocol = 1; diff --git a/protocol/lufa/lufa.h b/protocol/lufa/lufa.h index 505cb3279..554d82ae5 100644 --- a/protocol/lufa/lufa.h +++ b/protocol/lufa/lufa.h @@ -48,8 +48,9 @@ #include #include #include "host.h" +#ifdef MIDI_ENABLE #include "midi/midi.h" - +#endif #ifdef __cplusplus extern "C" { #endif @@ -66,7 +67,9 @@ typedef struct { uint16_t usage; } __attribute__ ((packed)) report_extra_t; +#ifdef MIDI_ENABLE MidiDevice midi_device; +#endif #if LUFA_VERSION_INTEGER < 0x120730 /* old API 120219 */