You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qmk-fw/tmk_core/common
James Laird-Wah 39bd760faf Use a single endpoint for HID reports (#3951)
* Unify multiple HID interfaces into one

This reduces the number of USB endpoints required, which frees them up
for other things.

NKRO and EXTRAKEY always use the shared endpoint.

By default, MOUSEKEY also uses it. This means it won't work as a Boot
Procotol mouse in some BIOSes, etc. If you really think your
keyboard needs to work as a mouse in your BIOS, set
MOUSE_SHARED_EP = no in your rules.mk.

By default, the core keyboard does not use the shared endpoint, as not
all BIOSes are standards compliant and that's one place you don't want
to find out your keyboard doesn't work.. If you are really confident,
you can set KEYBOARD_SHARED_EP = yes to use the shared endpoint here
too.

* unify endpoints: ChibiOS protocol implementation

* fixup: missing #ifdef EXTRAKEY_ENABLEs

broke build on AVR with EXTRAKEY disabled

* endpoints: restore error when too many endpoints required

* lufa: wait up to 10ms to send keyboard input

This avoids packets being dropped when two reports are sent in quick
succession (eg. releasing a dual role key).

* endpoints: fix compile on ARM_ATSAM

* endpoint: ARM_ATSAM fixes

No longer use wrong or unexpected endpoint IDs

* endpoints: accommodate VUSB protocol

V-USB has its own, understandably simple ideas about the report formats.
It already blasts the mouse and extrakeys through one endpoint with
report IDs. We just stay out of its way.

* endpoints: document new endpoint configuration options

* endpoints: respect keyboard_report->mods in NKRO

The caller(s) of host_keyboard_send expect to be able to just drop
modifiers in the mods field and not worry about whether NKRO is in use.
This is a good thing. So we just shift it over if needs be.

* endpoints: report.c: update for new keyboard_report format
7 years ago
..
arm_atsam USB Suspend for arm_atsam protocol 7 years ago
avr Zeal60/Zeal65/M60-A implementation (#3879) 7 years ago
chibios stm32f1xx EEPROM emulation (#3914) 7 years ago
mbed Added User Print - A "light" console out option (#8) 9 years ago
test Add wait support for tests 8 years ago
action.c Add mousekey_send to (un)register_code 7 years ago
action.h Add tap_code function (#3784) 7 years ago
action_code.h Generate API docs from source code comments (#2491) 7 years ago
action_layer.c Add user level to default_layer_state_set 7 years ago
action_layer.h Add user level to default_layer_state_set 7 years ago
action_macro.c Generate API docs from source code comments (#2491) 7 years ago
action_macro.h Add support for various tapping macros 8 years ago
action_tapping.c Generate API docs from source code comments (#2491) 7 years ago
action_tapping.h RETRO_TAPPING (#1922) 8 years ago
action_util.c Generate API docs from source code comments (#2491) 7 years ago
action_util.h Move functions for adding keys from to reports to report.h 8 years ago
backlight.c Backlight status functions (#4259) 7 years ago
backlight.h Backlight status functions (#4259) 7 years ago
bootloader.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 10 years ago
bootmagic.c Generate API docs from source code comments (#2491) 7 years ago
bootmagic.h Generate API docs from source code comments (#2491) 7 years ago
command.c Simplified and polished a bit the code changes on tmk_core 8 years ago
command.h command.h include was not set correctly 7 years ago
debug.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 10 years ago
debug.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 10 years ago
eeconfig.c stm32f1xx EEPROM emulation (#3914) 7 years ago
eeconfig.h stm32f1xx EEPROM emulation (#3914) 7 years ago
eeprom.h Emulate eeprom 8 years ago
host.c Use a single endpoint for HID reports (#3951) 7 years ago
host.h Use keyboard config for nkro (#7) 9 years ago
host_driver.h Merge ChibiOS and LUFA descriptor support (#2362) 7 years ago
keyboard.c Move disable JTAG code from `keyboard_init` to `keyboard_setup` 7 years ago
keyboard.h Move disable JTAG code from `keyboard_init` to `keyboard_setup` 7 years ago
keycode.h Tidy up keycode.h (#3666) 7 years ago
led.h Generate API docs from source code comments (#2491) 7 years ago
magic.c Generate API docs from source code comments (#2491) 7 years ago
magic.h MAGIC functionality, AG swap in default layout 9 years ago
matrix.h add col type defines 7 years ago
mousekey.c Diagonal micro move fix 7 years ago
mousekey.h Make MOUSEKEY_MOVE_MAX and MOUSEKEY_WHEEL_MAX configurable 8 years ago
nodebug.h Backlight Breathing for Planck and Atomic 9 years ago
print.c Add ChibiOS support for QMK (#465) 9 years ago
print.h Fix Terminal feature on ChibiOS 7 years ago
progmem.h add pgm_read_dword for Infinity ErgoDox 8 years ago
raw_hid.h Initial version of Raw HID interface 9 years ago
report.c Use a single endpoint for HID reports (#3951) 7 years ago
report.h Use a single endpoint for HID reports (#3951) 7 years ago
sendchar.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 10 years ago
sendchar_null.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 10 years ago
sendchar_uart.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 10 years ago
sleep_led.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 10 years ago
suspend.h Add Suspend functions (#3112) 7 years ago
timer.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 10 years ago
uart.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 10 years ago
uart.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 10 years ago
util.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 10 years ago
util.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 10 years ago
virtser.h Added USB Virtual Serial support 9 years ago
wait.h Revert back to normal sleeping wait behaviour for STM32 7 years ago