qmk-firmware/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
2018-11-15 22:22:05 -08:00
..
arm_atsam USB Suspend for arm_atsam protocol 2018-11-02 14:33:07 -07:00
avr Zeal60/Zeal65/M60-A implementation (#3879) 2018-09-13 14:37:13 -04:00
chibios stm32f1xx EEPROM emulation (#3914) 2018-10-19 00:33:23 -04:00
mbed Added User Print - A "light" console out option (#8) 2016-09-07 23:50:58 -05:00
test Add wait support for tests 2017-07-08 21:59:51 -04:00
action_code.h Generate API docs from source code comments (#2491) 2018-03-22 02:50:38 -04:00
action_layer.c Add user level to default_layer_state_set 2018-10-01 12:58:46 -04:00
action_layer.h Add user level to default_layer_state_set 2018-10-01 12:58:46 -04:00
action_macro.c Generate API docs from source code comments (#2491) 2018-03-22 02:50:38 -04:00
action_macro.h Add support for various tapping macros 2017-01-28 18:42:35 +11:00
action_tapping.c Generate API docs from source code comments (#2491) 2018-03-22 02:50:38 -04:00
action_tapping.h RETRO_TAPPING (#1922) 2017-10-31 11:15:22 -04:00
action_util.c Generate API docs from source code comments (#2491) 2018-03-22 02:50:38 -04:00
action_util.h Move functions for adding keys from to reports to report.h 2017-06-18 21:22:22 +03:00
action.c Add mousekey_send to (un)register_code 2018-10-04 10:44:28 -04:00
action.h Add tap_code function (#3784) 2018-10-01 20:53:47 -04:00
backlight.c Backlight status functions (#4259) 2018-11-14 07:45:46 -08:00
backlight.h Backlight status functions (#4259) 2018-11-14 07:45:46 -08:00
bootloader.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
bootmagic.c Generate API docs from source code comments (#2491) 2018-03-22 02:50:38 -04:00
bootmagic.h Generate API docs from source code comments (#2491) 2018-03-22 02:50:38 -04:00
command.c Simplified and polished a bit the code changes on tmk_core 2017-01-21 17:18:05 -05:00
command.h command.h include was not set correctly 2018-11-06 00:40:30 -05:00
debug.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
debug.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
eeconfig.c stm32f1xx EEPROM emulation (#3914) 2018-10-19 00:33:23 -04:00
eeconfig.h stm32f1xx EEPROM emulation (#3914) 2018-10-19 00:33:23 -04:00
eeprom.h Emulate eeprom 2017-06-18 21:10:42 +03:00
host_driver.h Merge ChibiOS and LUFA descriptor support (#2362) 2018-02-08 15:07:46 -05:00
host.c Use a single endpoint for HID reports (#3951) 2018-11-15 22:22:05 -08:00
host.h Use keyboard config for nkro (#7) 2016-09-06 23:19:01 -05:00
keyboard.c Move disable JTAG code from keyboard_init to keyboard_setup 2018-11-02 14:31:29 -07:00
keyboard.h Move disable JTAG code from keyboard_init to keyboard_setup 2018-11-02 14:31:29 -07:00
keycode.h Tidy up keycode.h (#3666) 2018-08-16 12:12:48 -04:00
led.h Generate API docs from source code comments (#2491) 2018-03-22 02:50:38 -04:00
magic.c Generate API docs from source code comments (#2491) 2018-03-22 02:50:38 -04:00
magic.h MAGIC functionality, AG swap in default layout 2016-04-16 18:51:58 -04:00
matrix.h add col type defines 2018-07-20 23:09:25 -04:00
mousekey.c Diagonal micro move fix 2018-06-28 22:10:53 -04:00
mousekey.h Make MOUSEKEY_MOVE_MAX and MOUSEKEY_WHEEL_MAX configurable 2017-04-13 16:00:29 +03:00
nodebug.h Backlight Breathing for Planck and Atomic 2016-05-09 13:17:15 -04:00
print.c Add ChibiOS support for QMK (#465) 2016-07-01 10:04:53 -04:00
print.h Fix Terminal feature on ChibiOS 2018-11-06 00:40:02 -05:00
progmem.h add pgm_read_dword for Infinity ErgoDox 2017-11-06 12:09:54 -05:00
raw_hid.h Initial version of Raw HID interface 2016-12-01 00:44:54 +11:00
report.c Use a single endpoint for HID reports (#3951) 2018-11-15 22:22:05 -08:00
report.h Use a single endpoint for HID reports (#3951) 2018-11-15 22:22:05 -08:00
sendchar_null.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
sendchar_uart.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
sendchar.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
sleep_led.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
suspend.h Add Suspend functions (#3112) 2018-06-03 17:57:35 -04:00
timer.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
uart.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
uart.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
util.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
util.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
virtser.h Added USB Virtual Serial support 2016-08-23 04:16:35 +00:00
wait.h Revert back to normal sleeping wait behaviour for STM32 2018-01-21 01:10:16 -08:00