diff options
| -rw-r--r-- | keyboard/hhkb/Makefile | 2 | ||||
| -rw-r--r-- | protocol/lufa.mk | 10 | ||||
| -rw-r--r-- | protocol/lufa/descriptor.c | 4 |
3 files changed, 10 insertions, 6 deletions
diff --git a/keyboard/hhkb/Makefile b/keyboard/hhkb/Makefile index 89d05ba15..0a256874b 100644 --- a/keyboard/hhkb/Makefile +++ b/keyboard/hhkb/Makefile | |||
| @@ -102,7 +102,7 @@ ARCH = AVR8 | |||
| 102 | F_USB = $(F_CPU) | 102 | F_USB = $(F_CPU) |
| 103 | 103 | ||
| 104 | # Interrupt driven control endpoint task | 104 | # Interrupt driven control endpoint task |
| 105 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | 105 | #OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT |
| 106 | 106 | ||
| 107 | 107 | ||
| 108 | # Boot Section Size in *bytes* | 108 | # Boot Section Size in *bytes* |
diff --git a/protocol/lufa.mk b/protocol/lufa.mk index 3489f19c2..10a922f90 100644 --- a/protocol/lufa.mk +++ b/protocol/lufa.mk | |||
| @@ -2,6 +2,7 @@ LUFA_DIR = protocol/lufa | |||
| 2 | 2 | ||
| 3 | # Path to the LUFA library | 3 | # Path to the LUFA library |
| 4 | LUFA_PATH ?= protocol/lufa/LUFA-120730 | 4 | LUFA_PATH ?= protocol/lufa/LUFA-120730 |
| 5 | #LUFA_PATH ?= protocol/lufa/LUFA-130901 | ||
| 5 | 6 | ||
| 6 | # Create the LUFA source path variables by including the LUFA makefile | 7 | # Create the LUFA source path variables by including the LUFA makefile |
| 7 | ifneq (, $(wildcard $(TOP_DIR)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk)) | 8 | ifneq (, $(wildcard $(TOP_DIR)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk)) |
| @@ -30,9 +31,12 @@ VPATH += $(TOP_DIR)/$(LUFA_PATH) | |||
| 30 | #endif | 31 | #endif |
| 31 | 32 | ||
| 32 | # LUFA library compile-time options and predefined tokens | 33 | # LUFA library compile-time options and predefined tokens |
| 33 | LUFA_OPTS = -D USB_DEVICE_ONLY | 34 | LUFA_OPTS = -DUSB_DEVICE_ONLY |
| 34 | LUFA_OPTS += -D USE_FLASH_DESCRIPTORS | 35 | LUFA_OPTS += -DUSE_FLASH_DESCRIPTORS |
| 35 | LUFA_OPTS += -D USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" | 36 | LUFA_OPTS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" |
| 37 | #LUFA_OPTS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 38 | LUFA_OPTS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 | ||
| 39 | LUFA_OPTS += -DFIXED_NUM_CONFIGURATIONS=1 | ||
| 36 | 40 | ||
| 37 | OPT_DEFS += -DF_USB=$(F_USB)UL | 41 | OPT_DEFS += -DF_USB=$(F_USB)UL |
| 38 | OPT_DEFS += -DARCH=ARCH_$(ARCH) | 42 | OPT_DEFS += -DARCH=ARCH_$(ARCH) |
diff --git a/protocol/lufa/descriptor.c b/protocol/lufa/descriptor.c index d97f5d86a..d88b59654 100644 --- a/protocol/lufa/descriptor.c +++ b/protocol/lufa/descriptor.c | |||
| @@ -235,7 +235,7 @@ const USB_Descriptor_Device_t PROGMEM DeviceDescriptor = | |||
| 235 | .SubClass = USB_CSCP_NoDeviceSubclass, | 235 | .SubClass = USB_CSCP_NoDeviceSubclass, |
| 236 | .Protocol = USB_CSCP_NoDeviceProtocol, | 236 | .Protocol = USB_CSCP_NoDeviceProtocol, |
| 237 | 237 | ||
| 238 | .Endpoint0Size = 8, | 238 | .Endpoint0Size = FIXED_CONTROL_ENDPOINT_SIZE, |
| 239 | 239 | ||
| 240 | /* specified in config.h */ | 240 | /* specified in config.h */ |
| 241 | .VendorID = VENDOR_ID, | 241 | .VendorID = VENDOR_ID, |
| @@ -246,7 +246,7 @@ const USB_Descriptor_Device_t PROGMEM DeviceDescriptor = | |||
| 246 | .ProductStrIndex = 0x02, | 246 | .ProductStrIndex = 0x02, |
| 247 | .SerialNumStrIndex = NO_DESCRIPTOR, | 247 | .SerialNumStrIndex = NO_DESCRIPTOR, |
| 248 | 248 | ||
| 249 | .NumberOfConfigurations = 1 | 249 | .NumberOfConfigurations = FIXED_NUM_CONFIGURATIONS |
| 250 | }; | 250 | }; |
| 251 | 251 | ||
| 252 | /******************************************************************************* | 252 | /******************************************************************************* |
