Skip to content

Commit

Permalink
update lufa implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Jul 7, 2017
1 parent 39ece81 commit 4b37030
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions tmk_core/protocol/lufa.mk
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
LUFA_DIR = protocol/lufa

# Path to the LUFA library
LUFA_PATH ?= $(LUFA_DIR)/LUFA-git
LUFA_PATH = $(LIB_PATH)/lufa


# Create the LUFA source path variables by including the LUFA makefile
ifneq (, $(wildcard $(TMK_PATH)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk))
ifneq (, $(wildcard $(LUFA_PATH)/LUFA/Build/lufa_sources.mk))
# New build system from 20120730
LUFA_ROOT_PATH = $(LUFA_PATH)/LUFA
include $(TMK_PATH)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk
DMBS_LUFA_PATH = $(LUFA_PATH)/LUFA/Build/LUFA
include $(LUFA_PATH)/LUFA/Build/lufa_sources.mk
else
include $(TMK_PATH)/$(LUFA_PATH)/LUFA/makefile
include $(LUFA_PATH)/LUFA/makefile
endif

LUFA_SRC = lufa.c \
Expand Down Expand Up @@ -49,7 +50,7 @@ SRC += $(LUFA_SRC)

# Search Path
VPATH += $(TMK_PATH)/$(LUFA_DIR)
VPATH += $(TMK_PATH)/$(LUFA_PATH)
VPATH += $(LUFA_PATH)

# Option modules
#ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE)
Expand Down
2 changes: 1 addition & 1 deletion tmk_core/protocol/lufa/descriptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ const USB_Descriptor_String_t PROGMEM ProductString =
* USB host.
*/
uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
const uint8_t wIndex,
const uint16_t wIndex,
const void** const DescriptorAddress)
{
const uint8_t DescriptorType = (wValue >> 8);
Expand Down
2 changes: 1 addition & 1 deletion tmk_core/protocol/lufa/descriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ typedef struct


uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
const uint8_t wIndex,
const uint16_t wIndex,
const void** const DescriptorAddress)
ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3);

Expand Down

0 comments on commit 4b37030

Please sign in to comment.