<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qmk_firmware.git/tmk_core/common, branch master</title>
<subtitle>forked from https://github.com/qmk/qmk_firmware</subtitle>
<id>https://git.tsegers.com/qmk_firmware.git/atom?h=master</id>
<link rel='self' href='https://git.tsegers.com/qmk_firmware.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/'/>
<updated>2020-08-29T22:57:48Z</updated>
<entry>
<title>format code according to conventions [skip ci]</title>
<updated>2020-08-29T22:57:48Z</updated>
<author>
<name>QMK Bot</name>
<email>hello@qmk.fm</email>
</author>
<published>2020-08-29T22:57:48Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=a3db72df7299140e52f57d082a3742a8b480a226'/>
<id>urn:sha1:a3db72df7299140e52f57d082a3742a8b480a226</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Kiibohd bootloader, take 2 (#10129)</title>
<updated>2020-08-29T21:30:02Z</updated>
<author>
<name>Ryan</name>
<email>fauxpark@gmail.com</email>
</author>
<published>2020-08-25T08:58:00Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=b89b2030af655132e2708cbdffd7fb1b8e1aaeb4'/>
<id>urn:sha1:b89b2030af655132e2708cbdffd7fb1b8e1aaeb4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Better handle LTO_ENABLE (#9832)</title>
<updated>2020-08-29T21:30:02Z</updated>
<author>
<name>Drashna Jaelre</name>
<email>drashna@live.com</email>
</author>
<published>2020-08-22T08:21:06Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=92385b3fb617326b129609726020453c8949c7f8'/>
<id>urn:sha1:92385b3fb617326b129609726020453c8949c7f8</id>
<content type='text'>
* Better handle LTO_ENABLE

Especially when calling from command line

* Replace LINK_TIME_OPTIMIZATION_ENABLE with LTO_ENABLE

* Remove long for LTO from show_options.mk</content>
</entry>
<entry>
<title>More Bluetooth refactoring (#9905)</title>
<updated>2020-08-29T21:30:02Z</updated>
<author>
<name>Ryan</name>
<email>fauxpark@gmail.com</email>
</author>
<published>2020-08-19T12:46:15Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=3f392c09b60d46d9e4a4d3cc150a26294dea4da7'/>
<id>urn:sha1:3f392c09b60d46d9e4a4d3cc150a26294dea4da7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Initialize Layer State on startup (#8318)</title>
<updated>2020-08-29T21:30:02Z</updated>
<author>
<name>Drashna Jaelre</name>
<email>drashna@live.com</email>
</author>
<published>2020-07-27T21:46:39Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=e6266b19be46c1340209bdd0a6c519452d5b9f2a'/>
<id>urn:sha1:e6266b19be46c1340209bdd0a6c519452d5b9f2a</id>
<content type='text'>
* Initialize Layer State on startup

Right now, on startup, the default layer state gets called and set, triggering the callback functions for the default layer state. However, the normal layer state never actually gets initialized.  It's set to 0 directly, by default, but the callback functions are never actually called.  This creates some inconsistency in the behavior for end users.  This adds a simple "clear" that triggers the callback on startup.  This should produce more consisten behavior between the two functions and layer masks.

* Stupid hack

* Fix type casting?

* Fix compile issues with magic is disabled</content>
</entry>
<entry>
<title>Hid joystick interface (#4226)</title>
<updated>2020-08-29T21:30:02Z</updated>
<author>
<name>a-chol</name>
<email>a-chol@users.noreply.github.com</email>
</author>
<published>2020-07-25T12:01:15Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=d4be07dad368c57669c88ead6c093c9e23086855'/>
<id>urn:sha1:d4be07dad368c57669c88ead6c093c9e23086855</id>
<content type='text'>
* add support for hid gamepad interface
add documentation for HID joystick
Add joystick_task to read analog axes values even when no key is pressed or release. update doc
Update docs/feature_joystick.md
Manage pin setup and read to maintain matrix scan after analog read

* Incorporates patches and changes to HID reporting

There are some patches provided by @a-chol incorporated on this commit,
and also some changes I made to the HID Report structure.

The most interesting is the one dealing with number of buttons: Linux
doesn't seem to care, but Windows requires the HID structure to be byte
aligned (that's in the spec). So if one declares 8/16/32... buttons they
should not have any issues, but this is what happens when you have 9
buttons:

```
 bits |0|1|2|3|4|5|6|7|
      |*|*|*|*|*|*|*|*| axis 0 (report size 8)
      |*|*|*|*|*|*|*|*| ...
      |*|*|*|*|*|*|*|*|
      |*|*|*|*|*|*|*|*|
      |*|*|*|*|*|*|*|*|
      |*|*|*|*|*|*|*|*|
      |*|*|*|*|*|*|*|*| axis 6
      |*|*|*|*|*|*|*|*| first 8 buttons (report size 1)
      |*| | | | | | | | last of 9 buttons, not aligned
```

So for that I added a conditonal that will add a number of reports with
size 1 to make sure it aligns to the next multiple of 8. Those reports
send dummy inputs that don't do anything aside from aligning the data.

Tested on Linux, Windows 10 and Street Fighter (where the joystick is
recognized as direct-input)

* Add save and restore of each pin used in reading joystick (AVR).
Allow output pin to be JS_VIRTUAL_AXIS if the axis is connected to Vcc
instead of an output pin from the MCU.

Fix joystick report id

Fix broken v-usb hid joystick interface. Make it more resilient to unusual settings (none multiple of eight button count, 0 buttons or 0 axes)

Correct adc reading for multiple axes. Piecewise range conversion for uncentered raw value range. Input, output and ground pin configuration per axis.

Documentation fixes

* Fix port addressing for joystick analog read

* The other required set of changes
As per the PR, the changes still holding it up.
Add onekey for testing.
Fix ARM builds.
Fix device descriptor when either axes or buttons is zero.
Add compile-time check for at least one axis or button.
Move definition to try to fix conflict.
PR review comments.
qmk cformat

* avoid float functions to compute range mapping for axis adc reading

* Remove V-USB support for now. Updated docs accordingly.

* Update tmk_core/protocol/lufa/lufa.c

Co-Authored-By: Ryan &lt;fauxpark@gmail.com&gt;

* Update tmk_core/protocol/usb_descriptor.c

Co-Authored-By: Ryan &lt;fauxpark@gmail.com&gt;

* Update tmk_core/protocol/usb_descriptor.c

Co-Authored-By: Ryan &lt;fauxpark@gmail.com&gt;

* Update tmk_core/protocol/usb_descriptor.c

Co-Authored-By: Ryan &lt;fauxpark@gmail.com&gt;

* Add support for joystick adc reading for stm32 MCUs. Fix joystick hid report sending for chibios

* Fix HID joystick report sending for ChibiOS.
Add one analog axis to the onekey:joystick keymap.
Fix pin state save and restore during joystick analog read for STM32
MCUs.

* Update tmk_core/protocol/chibios/usb_main.c

Co-Authored-By: Ryan &lt;fauxpark@gmail.com&gt;

* Update tmk_core/protocol/lufa/lufa.c

Co-Authored-By: Ryan &lt;fauxpark@gmail.com&gt;

* Add missing mcuconf.h and halconf.h to onekey:joystick keymap.
Add suggested fixes from PR.

* Switch saveState and restoreState signature to use pin_t type.
onekey:joystick : add a second axis, virtual and programmatically animated.

* Update docs/feature_joystick.md

Co-Authored-By: Ryan &lt;fauxpark@gmail.com&gt;

* Update docs/feature_joystick.md

Co-Authored-By: Ryan &lt;fauxpark@gmail.com&gt;

* Add PR corrections

* Remove halconf.h and mcuconf.h from onekey keymaps

* Change ADC_PIN to A0

Co-authored-by: achol &lt;allecooll@hotmail.com&gt;
Co-authored-by: José Júnior &lt;jose.junior@gmail.com&gt;
Co-authored-by: a-chol &lt;achol@notamail.com&gt;
Co-authored-by: Nick Brassel &lt;nick@tzarc.org&gt;
Co-authored-by: Ryan &lt;fauxpark@gmail.com&gt;</content>
</entry>
<entry>
<title>Re-fix the STM32 dual-bank bootloader stuff. (#9738)</title>
<updated>2020-08-29T21:30:02Z</updated>
<author>
<name>Nick Brassel</name>
<email>nick@tzarc.org</email>
</author>
<published>2020-07-16T20:19:18Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=686a9d35ffe1cf834673be2991d7bf1025423ae6'/>
<id>urn:sha1:686a9d35ffe1cf834673be2991d7bf1025423ae6</id>
<content type='text'>
* Re-fix the dual-bank bootloader stuff.

* Use wait_ms() instead of using nop's for a delay, as ChibiOS is actually running at the time of bootloader jump.</content>
</entry>
<entry>
<title>Add dual-bank STM32 bootloader support, given GPIO toggle on BOOT0 to charge RC circuit. (#8778)</title>
<updated>2020-08-29T21:30:02Z</updated>
<author>
<name>Nick Brassel</name>
<email>nick@tzarc.org</email>
</author>
<published>2020-07-16T06:58:14Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=93e7a8f74cc2c9c7bc50b413654642a0347a55d2'/>
<id>urn:sha1:93e7a8f74cc2c9c7bc50b413654642a0347a55d2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix the mousekey scrolling (#9174)</title>
<updated>2020-08-29T21:30:02Z</updated>
<author>
<name>dhong44</name>
<email>daniel.hong@live.com</email>
</author>
<published>2020-07-16T06:47:43Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=d0abad27abd6d58f88985c1c28463ee51b7a116e'/>
<id>urn:sha1:d0abad27abd6d58f88985c1c28463ee51b7a116e</id>
<content type='text'>
Mousekey scrolling should have a separate repeat variable
to keep track of scrolling acceleration, instead of being
tied to mouse movement scolling in mousekeys. The send function
should record when the last movement was made since this is
when movement is actually sent. Doing this fixes the bug where
the initial press of a mousekey scroll button causes a double scroll.

Signed-off-by: Daniel Hong &lt;daniel.hong@live.com&gt;</content>
</entry>
<entry>
<title>Convert `CONSUMER2BLUEFRUIT()` and `CONSUMER2RN42()` macros to static inline functions (#9055)</title>
<updated>2020-08-29T21:30:02Z</updated>
<author>
<name>Ryan</name>
<email>fauxpark@gmail.com</email>
</author>
<published>2020-06-07T05:00:59Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=1193e45bf4c8c69e33c054c6eb3d545d5d52fcb5'/>
<id>urn:sha1:1193e45bf4c8c69e33c054c6eb3d545d5d52fcb5</id>
<content type='text'>
</content>
</entry>
</feed>
