3f9d464412
* usb_device_state: add idle_rate, led and protocol Previously all usb drivers and platform implementations (expect for our oddball atsam) tracked the same two global variables: - keyboard_protocol: to indicate if we are in report or boot protocol - keyboard_idle: for the idle_rate of the keyboard endpoint And a local variable that was exposed trough some indirection: - keyboard_led_state: for the currently set indicator leds (caps lock etc.) These have all been moved into the usb_device_state struct wich is accessible by getters and setters. This reduces code duplication and centralizes the state management across platforms and drivers. Signed-off-by: Stefan Kerkmann <karlk90@pm.me> * usb_device_state: reset protocol on reset The usb hid specification section 7.2.6 states: When initialized, all devices default to report protocol. However the host should not make any assumptions about the device’s state and should set the desired protocol whenever initializing a device. Thus on reset we should always do exactly that. Signed-off-by: Stefan Kerkmann <karlk90@pm.me> * keyboards: fix oversize warnings Signed-off-by: Stefan Kerkmann <karlk90@pm.me> --------- Signed-off-by: Stefan Kerkmann <karlk90@pm.me> |
||
---|---|---|
.. | ||
autocorrect_data_default.h | ||
process_audio.c | ||
process_audio.h | ||
process_auto_shift.c | ||
process_auto_shift.h | ||
process_autocorrect.c | ||
process_autocorrect.h | ||
process_backlight.c | ||
process_backlight.h | ||
process_caps_word.c | ||
process_caps_word.h | ||
process_clicky.c | ||
process_clicky.h | ||
process_combo.c | ||
process_combo.h | ||
process_connection.c | ||
process_connection.h | ||
process_dynamic_macro.c | ||
process_dynamic_macro.h | ||
process_dynamic_tapping_term.c | ||
process_dynamic_tapping_term.h | ||
process_grave_esc.c | ||
process_grave_esc.h | ||
process_haptic.c | ||
process_haptic.h | ||
process_joystick.c | ||
process_joystick.h | ||
process_key_lock.c | ||
process_key_lock.h | ||
process_key_override.c | ||
process_key_override.h | ||
process_leader.c | ||
process_leader.h | ||
process_led_matrix.c | ||
process_led_matrix.h | ||
process_magic.c | ||
process_magic.h | ||
process_midi.c | ||
process_midi.h | ||
process_music.c | ||
process_music.h | ||
process_programmable_button.c | ||
process_programmable_button.h | ||
process_repeat_key.c | ||
process_repeat_key.h | ||
process_rgb_matrix.c | ||
process_rgb_matrix.h | ||
process_secure.c | ||
process_secure.h | ||
process_sequencer.c | ||
process_sequencer.h | ||
process_space_cadet.c | ||
process_space_cadet.h | ||
process_steno.c | ||
process_steno.h | ||
process_tap_dance.c | ||
process_tap_dance.h | ||
process_tri_layer.c | ||
process_tri_layer.h | ||
process_ucis.c | ||
process_ucis.h | ||
process_underglow.c | ||
process_underglow.h | ||
process_unicode_common.c | ||
process_unicode_common.h | ||
process_unicode.c | ||
process_unicode.h | ||
process_unicodemap.c | ||
process_unicodemap.h |