X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=tmk_core%2Fprotocol%2Flufa.mk;h=7afedd7365790b7273c42b5e0af833d2c9982827;hb=43a46c8d280a93bbd4dc5a8c45e1a6bc68e0b38d;hp=6e2d559feed9c6f02664c2e9418affe0c25a6379;hpb=ea1d7ff24033b97de5a993138ffd5deab2b9bc84;p=max%2Ftmk_keyboard.git diff --git a/tmk_core/protocol/lufa.mk b/tmk_core/protocol/lufa.mk index 6e2d559f..7afedd73 100644 --- a/tmk_core/protocol/lufa.mk +++ b/tmk_core/protocol/lufa.mk @@ -41,6 +41,8 @@ VPATH += $(TMK_DIR)/$(TMK_LUFA_PATH) TMK_LUFA_OPTS = -DUSB_DEVICE_ONLY TMK_LUFA_OPTS += -DUSE_FLASH_DESCRIPTORS TMK_LUFA_OPTS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" +# Do not enable INTERRUPT_CONTROL_ENDPOINT for converters which requires ISR in particular, +# it can block other ISRs long like 500-1000us for HID keyboard LED report. #TMK_LUFA_OPTS += -DINTERRUPT_CONTROL_ENDPOINT TMK_LUFA_OPTS += -DFIXED_CONTROL_ENDPOINT_SIZE=8 TMK_LUFA_OPTS += -DFIXED_NUM_CONFIGURATIONS=1 @@ -49,20 +51,20 @@ ifeq ($(MCU),atmega32u2) TMK_LUFA_OPTS += -DNO_LIMITED_CONTROLLER_CONNECT endif -ifeq (yes,$(strip $(LUFA_DEBUG))) - TMK_LUFA_OPTS += -DLUFA_DEBUG +ifeq (yes,$(strip $(TMK_LUFA_DEBUG))) + TMK_LUFA_OPTS += -DTMK_LUFA_DEBUG endif -ifeq (yes,$(strip $(LUFA_DEBUG_SUART))) +ifeq (yes,$(strip $(TMK_LUFA_DEBUG_SUART))) SRC += common/avr/suart.S - TMK_LUFA_OPTS += -DLUFA_DEBUG_SUART + TMK_LUFA_OPTS += -DTMK_LUFA_DEBUG_SUART # Keep print/debug lines when disabling HID console. See common.mk. DEBUG_PRINT_AVAILABLE = yes endif -ifeq (yes,$(strip $(LUFA_DEBUG_UART))) +ifeq (yes,$(strip $(TMK_LUFA_DEBUG_UART))) SRC += common/avr/uart.c - TMK_LUFA_OPTS += -DLUFA_DEBUG_UART + TMK_LUFA_OPTS += -DTMK_LUFA_DEBUG_UART # Keep print/debug lines when disabling HID console. See common.mk. DEBUG_PRINT_AVAILABLE = yes endif