aboutsummaryrefslogtreecommitdiff
path: root/quantum/haptic.c
Commit message (Collapse)AuthorAgeFilesLines
* [Core] `usb_device_state`: consolidate usb state handling across ↵Stefan Kerkmann2024-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implementations (#24258) * 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 <[email protected]> * 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 <[email protected]> * keyboards: fix oversize warnings Signed-off-by: Stefan Kerkmann <[email protected]> --------- Signed-off-by: Stefan Kerkmann <[email protected]>
* Update GPIO macro usages in core (#23093)Ryan2024-02-181-4/+4
|
* Add full solenoid support on split keyboards (#21583)jacob-w-gable2023-09-251-1/+11
| | | | Co-authored-by: Jacob Gable <[email protected]>
* haptic: further naming cleanups (#21682)Ryan2023-08-041-2/+2
|
* haptic: naming cleanups (#21551)Ryan2023-07-211-39/+42
|
* Add Split support for Haptic feedback (#19203)Drashna Jaelre2023-01-011-0/+9
|
* [Feature] Add support for multiple switchs/solenoids to Haptic Feedback ↵Drashna Jaelre2022-05-151-1/+1
| | | | engine (#15657)
* Format code according to conventions (#16322)QMK Bot2022-02-121-1/+3
|
* haptic: Feature to disable it when usb port is not configured or suspended. ↵Purdea Andrei2021-11-021-3/+48
| | | | | | | (#12692) This also add support for specifying a LED pin to indicate haptic status, and also adds support for a haptic-enable pin, which is useful to turn off the boost converter on the solenoid driver.
* Haptic: driver-> feature (#13713)Joel Challis2021-07-251-0/+295