]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - tmk_core/protocol/lufa.mk
xt_usb: Fix XT soft reset
[max/tmk_keyboard.git] / tmk_core / protocol / lufa.mk
index 6e2d559feed9c6f02664c2e9418affe0c25a6379..7afedd7365790b7273c42b5e0af833d2c9982827 100644 (file)
@@ -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