1
0
Fork 0
qmk_firmware/tmk_core/protocol
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 Use a single endpoint for HID reports (#3951) 2018-11-15 22:22:05 -08:00
bluefruit merging tmk 2015-10-27 12:42:30 -04:00
chibios Use a single endpoint for HID reports (#3951) 2018-11-15 22:22:05 -08:00
iwrap Fix pointing device feature 2017-10-31 20:59:55 -04:00
lufa Use a single endpoint for HID reports (#3951) 2018-11-15 22:22:05 -08:00
mbed Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
midi Merge ChibiOS and LUFA descriptor support (#2362) 2018-02-08 15:07:46 -05:00
pjrc Use keyboard config for nkro (#7) 2016-09-06 23:19:01 -05:00
usb_hid Fixed dead links (#2451) 2018-03-01 07:45:47 -08:00
vusb Add support for Atmega32A to pin declarations and universal matrix (#4015) 2018-11-02 12:31:40 -04:00
adb.c Merge commit '4d116a04e94cf0d19317d5b44e4fa9f34a3e5594' 2015-04-28 11:27:10 +09:00
adb.h Merge commit '4d116a04e94cf0d19317d5b44e4fa9f34a3e5594' 2015-04-28 11:27:10 +09:00
arm_atsam.mk Massdrop keyboard updates for SEND_STRING, syscalls, stdio, debug prints, Auto Shift (#3973) 2018-09-28 21:32:15 -04:00
bluefruit.mk Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
chibios.mk Add a custom USB driver for ARM (#2750) 2018-04-15 20:42:53 -04:00
ibm4704.c ibm4704_usb: Fix protocol handling 2015-05-19 00:39:44 +09:00
ibm4704.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
iwrap.mk Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
lufa.mk Merge ChibiOS and LUFA descriptor support (#2362) 2018-02-08 15:07:46 -05:00
m0110.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
m0110.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
midi.mk Merge ChibiOS and LUFA descriptor support (#2362) 2018-02-08 15:07:46 -05:00
news.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
news.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
next_kbd.c next_usb: Fix next_kbd_set_leds() 2015-09-20 10:33:25 +09:00
next_kbd.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
pjrc.mk Fix pointing device feature 2017-10-31 20:59:55 -04:00
ps2.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
ps2_busywait.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
ps2_interrupt.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
ps2_io.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
ps2_io_avr.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
ps2_io_mbed.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
ps2_mouse.c Add option to reverse PS2 mouse axes and scrolling 2017-10-10 07:20:17 -10:00
ps2_mouse.h Supress warnings from ps2_mouse.h 2017-02-12 00:13:36 +07:00
ps2_usart.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
serial.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
serial_mouse.h Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
serial_mouse_microsoft.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
serial_mouse_mousesystems.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
serial_soft.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
serial_uart.c Merge commit 'a074364c3731d66b56d988c8a6c960a83ea0e0a1' as 'tmk_core' 2015-04-10 01:32:04 +09:00
usb_descriptor.c Use a single endpoint for HID reports (#3951) 2018-11-15 22:22:05 -08:00
usb_descriptor.h Use a single endpoint for HID reports (#3951) 2018-11-15 22:22:05 -08:00
usb_hid.mk cleanup usb-usb converter code 2017-08-15 23:14:41 -04:00
vusb.mk Simplified and polished a bit the code changes on tmk_core 2017-01-21 17:18:05 -05:00
xt.h Keyboard: Port of TMK XT USB Converter (#3619) 2018-10-22 12:37:03 -07:00
xt_interrupt.c Keyboard: Port of TMK XT USB Converter (#3619) 2018-10-22 12:37:03 -07:00