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
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
adb.h
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
chibios.mk Add a custom USB driver for ARM (#2750) 2018-04-15 20:42:53 -04:00
ibm4704.c
ibm4704.h
iwrap.mk
lufa.mk Merge ChibiOS and LUFA descriptor support (#2362) 2018-02-08 15:07:46 -05:00
m0110.c
m0110.h
midi.mk Merge ChibiOS and LUFA descriptor support (#2362) 2018-02-08 15:07:46 -05:00
news.c
news.h
next_kbd.c
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
ps2_busywait.c
ps2_interrupt.c
ps2_io.h
ps2_io_avr.c
ps2_io_mbed.c
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
serial.h
serial_mouse.h
serial_mouse_microsoft.c
serial_mouse_mousesystems.c
serial_soft.c
serial_uart.c
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