<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qmk_firmware.git/tmk_core/protocol/chibios, 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>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>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>`qmk cformat` on `develop` (#9501)</title>
<updated>2020-08-29T21:30:02Z</updated>
<author>
<name>Nick Brassel</name>
<email>nick@tzarc.org</email>
</author>
<published>2020-06-22T01:22:00Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=60e5733c487cc0435e7d3b913f31ce4acc405d4a'/>
<id>urn:sha1:60e5733c487cc0435e7d3b913f31ce4acc405d4a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Various tidyups for USB descriptor code (#9005)</title>
<updated>2020-08-29T21:30:02Z</updated>
<author>
<name>Ryan</name>
<email>fauxpark@gmail.com</email>
</author>
<published>2020-06-07T05:00:21Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=f209f91c7ce073aa0381e79c10219616cb7db523'/>
<id>urn:sha1:f209f91c7ce073aa0381e79c10219616cb7db523</id>
<content type='text'>
</content>
</entry>
<entry>
<title>2020 May 30 Breaking Changes Update (#9215)</title>
<updated>2020-05-30T20:14:59Z</updated>
<author>
<name>James Young</name>
<email>18669334+noroadsleft@users.noreply.github.com</email>
</author>
<published>2020-05-30T20:14:59Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=fced377ac007d27f2650ccffbe0b18abcdcfe23d'/>
<id>urn:sha1:fced377ac007d27f2650ccffbe0b18abcdcfe23d</id>
<content type='text'>
* Branch point for 2020 May 30 Breaking Change

* Migrate `ACTION_LAYER_TOGGLE` to `TG()` (#8954)

* Migrate `ACTION_MODS_ONESHOT` to `OSM()` (#8957)

* Migrate `ACTION_DEFAULT_LAYER_SET` to `DF()` (#8958)

* Migrate `ACTION_LAYER_MODS` to `LM()` (#8959)

* Migrate `ACTION_MODS_TAP_KEY` to `MT()` (#8968)

* Convert V-USB usbdrv to a submodule (#8321)

* Unify Tap Hold functions and documentation (#8348)

* Changing board names to prevent confusion (#8412)

* Move the Keyboardio Model01 to a keyboardio/ subdir (#8499)

* Move spaceman keyboards (#8830)

* Migrate miscellaneous `fn_actions` entries (#8977)

* Migrate `ACTION_MODS_KEY` to chained mod keycodes (#8979)

* Organizing my keyboards (plaid, tartan, ergoinu) (#8537)

* Refactor Lily58 to use split_common (#6260)

* Refactor zinc to use split_common (#7114)

* Add a message if bin/qmk doesn't work (#9000)

* Fix conflicting types for 'tfp_printf' (#8269)

* Fixed RGB_DISABLE_AFTER_TIMEOUT to be seconds based &amp; small internals cleanup (#6480)

* Refactor and updates to TKC1800 code (#8472)

* Switch to qmk forks for everything (#9019)

* audio refactor: replace deprecated PLAY_NOTE_ARRAY (#8484)

* Audio enable corrections (2/3) (#8903)

* Split HHKB to ANSI and JP layouts and Add VIA support for each (#8582)

* Audio enable corrections (Part 4) (#8974)

* Fix typo from PR7114 (#9171)

* Augment future branch Changelogs (#8978)

* Revert "Branch point for 2020 May 30 Breaking Change"
</content>
</entry>
<entry>
<title>Revert "Fix conflicting types for 'tfp_printf' (#8269)"</title>
<updated>2020-05-04T16:25:44Z</updated>
<author>
<name>skullY</name>
<email>skullydazed@gmail.com</email>
</author>
<published>2020-05-04T16:25:44Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=6f30b402a285ddecce9b6f5b002a649f775225d2'/>
<id>urn:sha1:6f30b402a285ddecce9b6f5b002a649f775225d2</id>
<content type='text'>
This reverts commit e17b55e33ad5b3dcefcf7b828ac99aeb2daeeae2.
</content>
</entry>
<entry>
<title>format code according to conventions [skip ci]</title>
<updated>2020-05-04T06:59:44Z</updated>
<author>
<name>QMK Bot</name>
<email>hello@qmk.fm</email>
</author>
<published>2020-05-04T06:59:44Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=1ff526dac0e73ea8cce522d0106631e3a748802c'/>
<id>urn:sha1:1ff526dac0e73ea8cce522d0106631e3a748802c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix conflicting types for 'tfp_printf' (#8269)</title>
<updated>2020-05-04T06:19:51Z</updated>
<author>
<name>Joel Challis</name>
<email>git@zvecr.com</email>
</author>
<published>2020-05-04T06:19:51Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=e17b55e33ad5b3dcefcf7b828ac99aeb2daeeae2'/>
<id>urn:sha1:e17b55e33ad5b3dcefcf7b828ac99aeb2daeeae2</id>
<content type='text'>
* Refactor to use mpaland/printf

* trim firmware size

* remove keymap changes

* run clang format

* Fixup after rebase

* fix up git-submodule command for printf</content>
</entry>
<entry>
<title>Add support for hardware and board initialisation overrides. (#8330)</title>
<updated>2020-04-12T23:39:38Z</updated>
<author>
<name>Nick Brassel</name>
<email>nick@tzarc.org</email>
</author>
<published>2020-04-12T23:39:38Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=05e9ff6554a1be119a585d691067ca2379c1d80d'/>
<id>urn:sha1:05e9ff6554a1be119a585d691067ca2379c1d80d</id>
<content type='text'>
* Add support for hardware and board initialisation overrides.

* qmk cformat.

* Add some documentation.

* Docs clarity.

* Make early_hardware_init_pre a no-op for now, until migrations occur.

* Doco update

* Make distinction between keyboard and ChibiOS board in docs

* Doc anchors.

* Update tmk_core/protocol/chibios/main.c

Co-Authored-By: Joel Challis &lt;git@zvecr.com&gt;

* Rework bootloader entry to be off by default, allow opting-in.

Co-authored-by: Joel Challis &lt;git@zvecr.com&gt;</content>
</entry>
</feed>
