<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qmk_firmware/tmk_core/protocol/usb_device_state.c, branch master</title>
<subtitle>QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)</subtitle>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/qmk_firmware/'/>
<entry>
<title>[Core] `usb_device_state`: consolidate usb state handling across implementations (#24258)</title>
<updated>2024-10-18T07:57:08+00:00</updated>
<author>
<name>Stefan Kerkmann</name>
<email>karlk90@pm.me</email>
</author>
<published>2024-10-18T07:57:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/qmk_firmware/commit/?id=3f9d4644126483bbd937f2be75a8878a1c986630'/>
<id>3f9d4644126483bbd937f2be75a8878a1c986630</id>
<content type='text'>
* 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 &lt;karlk90@pm.me&gt;

* 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 &lt;karlk90@pm.me&gt;

* keyboards: fix oversize warnings

Signed-off-by: Stefan Kerkmann &lt;karlk90@pm.me&gt;

---------

Signed-off-by: Stefan Kerkmann &lt;karlk90@pm.me&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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 &lt;karlk90@pm.me&gt;

* 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 &lt;karlk90@pm.me&gt;

* keyboards: fix oversize warnings

Signed-off-by: Stefan Kerkmann &lt;karlk90@pm.me&gt;

---------

Signed-off-by: Stefan Kerkmann &lt;karlk90@pm.me&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[Core] Add OS detection callbacks (#21777)</title>
<updated>2024-02-16T14:19:02+00:00</updated>
<author>
<name>Andre Brait</name>
<email>andrebrait@gmail.com</email>
</author>
<published>2024-02-16T14:19:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/qmk_firmware/commit/?id=80f3da36e571fa702b1d3df693fd545801250eca'/>
<id>80f3da36e571fa702b1d3df693fd545801250eca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Format code according to conventions (#16322)</title>
<updated>2022-02-12T18:29:31+00:00</updated>
<author>
<name>QMK Bot</name>
<email>hello@qmk.fm</email>
</author>
<published>2022-02-12T18:29:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/qmk_firmware/commit/?id=63646e8906e062d1c1de3925cba70c4e3426a855'/>
<id>63646e8906e062d1c1de3925cba70c4e3426a855</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>haptic: Feature to disable it when usb port is not configured or suspended. (#12692)</title>
<updated>2021-11-02T05:54:29+00:00</updated>
<author>
<name>Purdea Andrei</name>
<email>andrei@purdea.ro</email>
</author>
<published>2021-11-02T05:54:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/qmk_firmware/commit/?id=76fb54403ccd3ebaf1ca49c5172335e3593c5c5c'/>
<id>76fb54403ccd3ebaf1ca49c5172335e3593c5c5c</id>
<content type='text'>
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.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.</pre>
</div>
</content>
</entry>
<entry>
<title>Relocate protocol files within tmk_core/common/ (#14972)</title>
<updated>2021-10-28T21:31:59+00:00</updated>
<author>
<name>Joel Challis</name>
<email>git@zvecr.com</email>
</author>
<published>2021-10-28T21:31:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/qmk_firmware/commit/?id=dcfffa7b67a072f7d9e37bd8c0029c53b61aeb0f'/>
<id>dcfffa7b67a072f7d9e37bd8c0029c53b61aeb0f</id>
<content type='text'>
* Relocate non platform files within tmk_core/common/

* clang</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Relocate non platform files within tmk_core/common/

* clang</pre>
</div>
</content>
</entry>
</feed>
