diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2017-07-07 12:06:59 -0400 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2017-07-07 12:06:59 -0400 |
| commit | 4b37030ad0ddde12a12b8407d577fa07e0cb18f5 (patch) | |
| tree | 791c8f86ee24e3ee738c948562a650c84d5f2ab8 /tmk_core | |
| parent | 39ece819791eed7f57e0a0492c1aa774be5c4b24 (diff) | |
| download | qmk_firmware-4b37030ad0ddde12a12b8407d577fa07e0cb18f5.tar.gz qmk_firmware-4b37030ad0ddde12a12b8407d577fa07e0cb18f5.zip | |
update lufa implementation
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/protocol/lufa.mk | 11 | ||||
| -rw-r--r-- | tmk_core/protocol/lufa/descriptor.c | 2 | ||||
| -rw-r--r-- | tmk_core/protocol/lufa/descriptor.h | 2 |
3 files changed, 8 insertions, 7 deletions
diff --git a/tmk_core/protocol/lufa.mk b/tmk_core/protocol/lufa.mk index 7ce727dab..4d005debc 100644 --- a/tmk_core/protocol/lufa.mk +++ b/tmk_core/protocol/lufa.mk | |||
| @@ -1,16 +1,17 @@ | |||
| 1 | LUFA_DIR = protocol/lufa | 1 | LUFA_DIR = protocol/lufa |
| 2 | 2 | ||
| 3 | # Path to the LUFA library | 3 | # Path to the LUFA library |
| 4 | LUFA_PATH ?= $(LUFA_DIR)/LUFA-git | 4 | LUFA_PATH = $(LIB_PATH)/lufa |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | # Create the LUFA source path variables by including the LUFA makefile | 7 | # Create the LUFA source path variables by including the LUFA makefile |
| 8 | ifneq (, $(wildcard $(TMK_PATH)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk)) | 8 | ifneq (, $(wildcard $(LUFA_PATH)/LUFA/Build/lufa_sources.mk)) |
| 9 | # New build system from 20120730 | 9 | # New build system from 20120730 |
| 10 | LUFA_ROOT_PATH = $(LUFA_PATH)/LUFA | 10 | LUFA_ROOT_PATH = $(LUFA_PATH)/LUFA |
| 11 | include $(TMK_PATH)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk | 11 | DMBS_LUFA_PATH = $(LUFA_PATH)/LUFA/Build/LUFA |
| 12 | include $(LUFA_PATH)/LUFA/Build/lufa_sources.mk | ||
| 12 | else | 13 | else |
| 13 | include $(TMK_PATH)/$(LUFA_PATH)/LUFA/makefile | 14 | include $(LUFA_PATH)/LUFA/makefile |
| 14 | endif | 15 | endif |
| 15 | 16 | ||
| 16 | LUFA_SRC = lufa.c \ | 17 | LUFA_SRC = lufa.c \ |
| @@ -49,7 +50,7 @@ SRC += $(LUFA_SRC) | |||
| 49 | 50 | ||
| 50 | # Search Path | 51 | # Search Path |
| 51 | VPATH += $(TMK_PATH)/$(LUFA_DIR) | 52 | VPATH += $(TMK_PATH)/$(LUFA_DIR) |
| 52 | VPATH += $(TMK_PATH)/$(LUFA_PATH) | 53 | VPATH += $(LUFA_PATH) |
| 53 | 54 | ||
| 54 | # Option modules | 55 | # Option modules |
| 55 | #ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE) | 56 | #ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE) |
diff --git a/tmk_core/protocol/lufa/descriptor.c b/tmk_core/protocol/lufa/descriptor.c index feeea76df..357954368 100644 --- a/tmk_core/protocol/lufa/descriptor.c +++ b/tmk_core/protocol/lufa/descriptor.c | |||
| @@ -868,7 +868,7 @@ const USB_Descriptor_String_t PROGMEM ProductString = | |||
| 868 | * USB host. | 868 | * USB host. |
| 869 | */ | 869 | */ |
| 870 | uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, | 870 | uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, |
| 871 | const uint8_t wIndex, | 871 | const uint16_t wIndex, |
| 872 | const void** const DescriptorAddress) | 872 | const void** const DescriptorAddress) |
| 873 | { | 873 | { |
| 874 | const uint8_t DescriptorType = (wValue >> 8); | 874 | const uint8_t DescriptorType = (wValue >> 8); |
diff --git a/tmk_core/protocol/lufa/descriptor.h b/tmk_core/protocol/lufa/descriptor.h index 24ce420e6..cde44abc9 100644 --- a/tmk_core/protocol/lufa/descriptor.h +++ b/tmk_core/protocol/lufa/descriptor.h | |||
| @@ -254,7 +254,7 @@ typedef struct | |||
| 254 | 254 | ||
| 255 | 255 | ||
| 256 | uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, | 256 | uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, |
| 257 | const uint8_t wIndex, | 257 | const uint16_t wIndex, |
| 258 | const void** const DescriptorAddress) | 258 | const void** const DescriptorAddress) |
| 259 | ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3); | 259 | ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3); |
| 260 | 260 | ||
