]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Merge branch 'interrupt_control_endpoint_fix'
authortmk <hasu@tmk-kbd.com>
Fri, 8 May 2020 13:47:29 +0000 (22:47 +0900)
committertmk <hasu@tmk-kbd.com>
Fri, 8 May 2020 13:47:29 +0000 (22:47 +0900)
18 files changed:
converter/adb_usb/Makefile
converter/ibm4704_usb/Makefile
converter/ibmpc_usb/Makefile
converter/m0110_usb/Makefile
converter/news_usb/Makefile
converter/next_usb/Makefile
converter/pana_m8/Makefile
converter/pc88_usb/Makefile
converter/pc88_usb/Makefile.unimap
converter/pc98_usb/Makefile
converter/ps2_usb/Makefile
converter/sun_usb/Makefile
converter/terminal_usb/Makefile
converter/usb_usb/Makefile
converter/usb_usb/usb_usb.cpp
converter/x68k_usb/Makefile
converter/xt_usb/Makefile
tmk_core/protocol/lufa.mk

index fe94d9f7b8463cad9b5e9b762d3a2744d6ddc1e5..ba87b07e7e0ae5e1a80a32113511a2fddb1b5565 100644 (file)
@@ -53,9 +53,6 @@ ARCH ?= AVR8
 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
 F_USB ?= $(F_CPU)
 
-# Interrupt driven control endpoint task(+60)
-OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
-
 
 # Boot Section Size in *bytes*
 #   Teensy halfKay   512
index f930cb5981077ab2df3af400886b09a823767616..007e0e01337a1a756d40c96812485633cd0a87df 100644 (file)
@@ -70,7 +70,8 @@ ARCH ?= AVR8
 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
 F_USB ?= $(F_CPU)
 
-# Interrupt driven control endpoint task(+60)
+# TODO: This can prevent converter ISR from handling signal instantly, better remove it.
+# Without this option debug prints from enable_break() won't be displayed comopletely.
 OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
 
 
index 2b272a591e4f7a349350c894a4b7108e29214fdb..30ce9248288cccc347834e2bbdf8dd34b2d71ead 100644 (file)
@@ -50,9 +50,6 @@ ARCH ?= AVR8
 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
 F_USB ?= $(F_CPU)
 
-# Interrupt driven control endpoint task. Do not enable this.
-# This blocks long for capslock and etc. and can prevent signal handling.
-#OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
 
 # This improves response of keyboard when wakeup
 OPT_DEFS += -DSUSPEND_MODE_STANDBY
index 71d675ac7f43b6f67814c1f962ddca8a03f29f4d..d54fe596a9600413962718434f121f50a34cbdee 100644 (file)
@@ -65,9 +65,6 @@ ARCH ?= AVR8
 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
 F_USB ?= $(F_CPU)
 
-# Interrupt driven control endpoint task
-OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
-
 
 # Boot Section Size in bytes
 #   Teensy halfKay   512
index e94a4f61a55bb716c09d9fe5d695645943322d9a..77a61e938f28d6a92f28944dd20f93a409b2b78f 100644 (file)
@@ -58,9 +58,6 @@ ARCH = AVR8
 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
 F_USB = $(F_CPU)
 
-# Interrupt driven control endpoint task(+60)
-OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
-
 
 # Boot Section Size in *bytes*
 #   Teensy halfKay   512
index f3143c25c40b8224602fa3a586cfa9677dc781ef..7e6e7230b5fd18e625881a3abebaaa6e2011b96b 100644 (file)
@@ -68,9 +68,6 @@ ARCH ?= AVR8
 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
 F_USB ?= $(F_CPU)
 
-# Interrupt driven control endpoint task(+60)
-#OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
-
 
 # Boot Section Size in *bytes*
 #   Teensy halfKay   512
index 93f3c462ee51c778ee6162df662e47a6114d3c80..39a5885e58863a532e428e1a64ad6b591a6d52bf 100644 (file)
@@ -10,7 +10,6 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
 # LUFA specific
 ARCH ?= AVR8
 F_USB ?= $(F_CPU)
-OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
 
 
 # Build Options
index c6af973542143637941df9e62d4af4dc98709790..05be2234a78576adaeb3483a3dabbd23ba0459ea 100644 (file)
@@ -49,9 +49,6 @@ ARCH ?= AVR8
 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
 F_USB ?= $(F_CPU)
 
-# Interrupt driven control endpoint task
-OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
-
 
 # Build Options
 #   *Comment out* to disable the options.
index da526033a5ffc29c70e9141dc7da75cc64eb81b4..4e71d822f19679a8157fbde6afa4cd35c6b3d49d 100644 (file)
@@ -49,9 +49,6 @@ ARCH ?= AVR8
 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
 F_USB ?= $(F_CPU)
 
-# Interrupt driven control endpoint task
-OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
-
 
 # Build Options
 #   *Comment out* to disable the options.
index 0f284a1b339fd0b28aa2c5c284a9e150f984bc6b..5f7a06868ca1cbb798bad1ff77c010e30d55ee1f 100644 (file)
@@ -49,9 +49,6 @@ ARCH ?= AVR8
 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
 F_USB ?= $(F_CPU)
 
-# Interrupt driven control endpoint task
-#OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
-
 
 # Build Options
 #   *Comment out* to disable the options.
index 5f9c4042c8cd5ae5dc5a88cb84a7ff34f389bcea..f8c470d0aa431a6d6bb48cecd3e6268b094b4b06 100644 (file)
@@ -68,9 +68,6 @@ ARCH ?= AVR8
 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
 F_USB ?= $(F_CPU)
 
-# Interrupt driven control endpoint task
-# Not work with suart debug
-#OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
 
 # This improves response of keyboard when wakeup
 OPT_DEFS += -DSUSPEND_MODE_STANDBY
index 20addfc9de8a1e230260fcf1f704ae3a7b341d70..366bac70ce5cce73f82ccaa3ee3699975f7a6757 100644 (file)
@@ -52,9 +52,6 @@ ARCH ?= AVR8
 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
 F_USB ?= $(F_CPU)
 
-# Interrupt driven control endpoint task
-OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
-
 
 # Build Options
 #   *Comment out* to disable the options.
index fc07155f69a732590277b517f8ea7386b3d2b7b6..766e92fed0638a2b12a64230d8d883f37b369f15 100644 (file)
@@ -50,9 +50,6 @@ ARCH = AVR8
 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
 F_USB = $(F_CPU)
 
-# Interrupt driven control endpoint task
-OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
-
 
 # Boot Section Size in bytes
 #   Teensy halfKay   512
index 65b6d949511ca0cd8c894464fa8e6aef02e6b44f..4b88b6510ab6ae7f839ec7a4748f4b30bfbf16e1 100644 (file)
@@ -82,9 +82,6 @@ ARCH ?= AVR8
 #     If no clock division is performed on the input clock inside the AVR (via the
 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
 F_USB ?= $(F_CPU)
-# Interrupt driven control endpoint task
-OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
-
 
 
 # Build Options
index 3d08b118004b2e35c4e2ce150596dcc15be16d0a..625a3b827993b3beb6431f264e1dee0c628eb1f8 100644 (file)
@@ -226,13 +226,6 @@ void led_set(uint8_t usb_led)
     if (kbd4.isReady()) kbd4.SetReport(0, 0, 2, 0, 1, &usb_led);
 }
 
-// We need to keep doing UHS2 USB::Task() to initialize keyboard
-// even before USB is not configured.
-void hook_usb_startup_wait_loop(void)
-{
-    matrix_scan();
-}
-
 // We need to keep doing UHS2 USB::Task() to initialize keyboard
 // even during USB bus is suspended and remote wakeup is not enabled yet on LUFA side.
 // This situation can happen just after pluging converter into USB port.
index 41e32b18e003e80f73b813033dce8ccb3d1b362b..ae5f3c8e93d3e4aa632ac1b122ff1be0bf5f94bd 100644 (file)
@@ -54,9 +54,6 @@ ARCH ?= AVR8
 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
 F_USB ?= $(F_CPU)
 
-# Interrupt driven control endpoint task(+60)
-OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
-
 
 # Boot Section Size in *bytes*
 #   Teensy halfKay   512
index 081d2a2a46e4b43a1faf619403313f609be3b4de..f9946a9a8e6fb7370655e471511421d7dc419ac5 100644 (file)
@@ -69,9 +69,6 @@ ARCH ?= AVR8
 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
 F_USB ?= $(F_CPU)
 
-# Interrupt driven control endpoint task(+60)
-OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
-
 
 # Boot Section Size in *bytes*
 #   Teensy halfKay   512
index 0b4b7847956cfad1b0cc4b0041722af921a469c3..7afedd7365790b7273c42b5e0af833d2c9982827 100644 (file)
@@ -41,7 +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 this for converters in particular, it blocks other tasks long.
+# 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