Merge branch 'interrupt_control_endpoint_fix'
This commit is contained in:
commit
93e9ee22ce
18 changed files with 4 additions and 52 deletions
|
|
@ -53,9 +53,6 @@ ARCH ?= AVR8
|
||||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
F_USB ?= $(F_CPU)
|
F_USB ?= $(F_CPU)
|
||||||
|
|
||||||
# Interrupt driven control endpoint task(+60)
|
|
||||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
|
||||||
|
|
||||||
|
|
||||||
# Boot Section Size in *bytes*
|
# Boot Section Size in *bytes*
|
||||||
# Teensy halfKay 512
|
# Teensy halfKay 512
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,8 @@ ARCH ?= AVR8
|
||||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
F_USB ?= $(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
|
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,9 +50,6 @@ ARCH ?= AVR8
|
||||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
F_USB ?= $(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
|
# This improves response of keyboard when wakeup
|
||||||
OPT_DEFS += -DSUSPEND_MODE_STANDBY
|
OPT_DEFS += -DSUSPEND_MODE_STANDBY
|
||||||
|
|
|
||||||
|
|
@ -65,9 +65,6 @@ ARCH ?= AVR8
|
||||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
F_USB ?= $(F_CPU)
|
F_USB ?= $(F_CPU)
|
||||||
|
|
||||||
# Interrupt driven control endpoint task
|
|
||||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
|
||||||
|
|
||||||
|
|
||||||
# Boot Section Size in bytes
|
# Boot Section Size in bytes
|
||||||
# Teensy halfKay 512
|
# Teensy halfKay 512
|
||||||
|
|
|
||||||
|
|
@ -58,9 +58,6 @@ ARCH = AVR8
|
||||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
F_USB = $(F_CPU)
|
F_USB = $(F_CPU)
|
||||||
|
|
||||||
# Interrupt driven control endpoint task(+60)
|
|
||||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
|
||||||
|
|
||||||
|
|
||||||
# Boot Section Size in *bytes*
|
# Boot Section Size in *bytes*
|
||||||
# Teensy halfKay 512
|
# Teensy halfKay 512
|
||||||
|
|
|
||||||
|
|
@ -68,9 +68,6 @@ ARCH ?= AVR8
|
||||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
F_USB ?= $(F_CPU)
|
F_USB ?= $(F_CPU)
|
||||||
|
|
||||||
# Interrupt driven control endpoint task(+60)
|
|
||||||
#OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
|
||||||
|
|
||||||
|
|
||||||
# Boot Section Size in *bytes*
|
# Boot Section Size in *bytes*
|
||||||
# Teensy halfKay 512
|
# Teensy halfKay 512
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
|
||||||
# LUFA specific
|
# LUFA specific
|
||||||
ARCH ?= AVR8
|
ARCH ?= AVR8
|
||||||
F_USB ?= $(F_CPU)
|
F_USB ?= $(F_CPU)
|
||||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
|
||||||
|
|
||||||
|
|
||||||
# Build Options
|
# Build Options
|
||||||
|
|
|
||||||
|
|
@ -49,9 +49,6 @@ ARCH ?= AVR8
|
||||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
F_USB ?= $(F_CPU)
|
F_USB ?= $(F_CPU)
|
||||||
|
|
||||||
# Interrupt driven control endpoint task
|
|
||||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
|
||||||
|
|
||||||
|
|
||||||
# Build Options
|
# Build Options
|
||||||
# *Comment out* to disable the options.
|
# *Comment out* to disable the options.
|
||||||
|
|
|
||||||
|
|
@ -49,9 +49,6 @@ ARCH ?= AVR8
|
||||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
F_USB ?= $(F_CPU)
|
F_USB ?= $(F_CPU)
|
||||||
|
|
||||||
# Interrupt driven control endpoint task
|
|
||||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
|
||||||
|
|
||||||
|
|
||||||
# Build Options
|
# Build Options
|
||||||
# *Comment out* to disable the options.
|
# *Comment out* to disable the options.
|
||||||
|
|
|
||||||
|
|
@ -49,9 +49,6 @@ ARCH ?= AVR8
|
||||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
F_USB ?= $(F_CPU)
|
F_USB ?= $(F_CPU)
|
||||||
|
|
||||||
# Interrupt driven control endpoint task
|
|
||||||
#OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
|
||||||
|
|
||||||
|
|
||||||
# Build Options
|
# Build Options
|
||||||
# *Comment out* to disable the options.
|
# *Comment out* to disable the options.
|
||||||
|
|
|
||||||
|
|
@ -68,9 +68,6 @@ ARCH ?= AVR8
|
||||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
F_USB ?= $(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
|
# This improves response of keyboard when wakeup
|
||||||
OPT_DEFS += -DSUSPEND_MODE_STANDBY
|
OPT_DEFS += -DSUSPEND_MODE_STANDBY
|
||||||
|
|
|
||||||
|
|
@ -52,9 +52,6 @@ ARCH ?= AVR8
|
||||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
F_USB ?= $(F_CPU)
|
F_USB ?= $(F_CPU)
|
||||||
|
|
||||||
# Interrupt driven control endpoint task
|
|
||||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
|
||||||
|
|
||||||
|
|
||||||
# Build Options
|
# Build Options
|
||||||
# *Comment out* to disable the options.
|
# *Comment out* to disable the options.
|
||||||
|
|
|
||||||
|
|
@ -50,9 +50,6 @@ ARCH = AVR8
|
||||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
F_USB = $(F_CPU)
|
F_USB = $(F_CPU)
|
||||||
|
|
||||||
# Interrupt driven control endpoint task
|
|
||||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
|
||||||
|
|
||||||
|
|
||||||
# Boot Section Size in bytes
|
# Boot Section Size in bytes
|
||||||
# Teensy halfKay 512
|
# Teensy halfKay 512
|
||||||
|
|
|
||||||
|
|
@ -82,9 +82,6 @@ ARCH ?= AVR8
|
||||||
# If no clock division is performed on the input clock inside the AVR (via the
|
# 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.
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
F_USB ?= $(F_CPU)
|
F_USB ?= $(F_CPU)
|
||||||
# Interrupt driven control endpoint task
|
|
||||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Build Options
|
# Build Options
|
||||||
|
|
|
||||||
|
|
@ -226,13 +226,6 @@ void led_set(uint8_t usb_led)
|
||||||
if (kbd4.isReady()) kbd4.SetReport(0, 0, 2, 0, 1, &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
|
// 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.
|
// 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.
|
// This situation can happen just after pluging converter into USB port.
|
||||||
|
|
|
||||||
|
|
@ -54,9 +54,6 @@ ARCH ?= AVR8
|
||||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
F_USB ?= $(F_CPU)
|
F_USB ?= $(F_CPU)
|
||||||
|
|
||||||
# Interrupt driven control endpoint task(+60)
|
|
||||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
|
||||||
|
|
||||||
|
|
||||||
# Boot Section Size in *bytes*
|
# Boot Section Size in *bytes*
|
||||||
# Teensy halfKay 512
|
# Teensy halfKay 512
|
||||||
|
|
|
||||||
|
|
@ -69,9 +69,6 @@ ARCH ?= AVR8
|
||||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||||
F_USB ?= $(F_CPU)
|
F_USB ?= $(F_CPU)
|
||||||
|
|
||||||
# Interrupt driven control endpoint task(+60)
|
|
||||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
|
||||||
|
|
||||||
|
|
||||||
# Boot Section Size in *bytes*
|
# Boot Section Size in *bytes*
|
||||||
# Teensy halfKay 512
|
# Teensy halfKay 512
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,8 @@ VPATH += $(TMK_DIR)/$(TMK_LUFA_PATH)
|
||||||
TMK_LUFA_OPTS = -DUSB_DEVICE_ONLY
|
TMK_LUFA_OPTS = -DUSB_DEVICE_ONLY
|
||||||
TMK_LUFA_OPTS += -DUSE_FLASH_DESCRIPTORS
|
TMK_LUFA_OPTS += -DUSE_FLASH_DESCRIPTORS
|
||||||
TMK_LUFA_OPTS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)"
|
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 += -DINTERRUPT_CONTROL_ENDPOINT
|
||||||
TMK_LUFA_OPTS += -DFIXED_CONTROL_ENDPOINT_SIZE=8
|
TMK_LUFA_OPTS += -DFIXED_CONTROL_ENDPOINT_SIZE=8
|
||||||
TMK_LUFA_OPTS += -DFIXED_NUM_CONFIGURATIONS=1
|
TMK_LUFA_OPTS += -DFIXED_NUM_CONFIGURATIONS=1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue