<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qmk/quantum/split_common/split_util.h, branch master</title>
<subtitle>Custom split ortholinear mechanical keyboard with rollerball mouse. Firmware. https://blog.node5.net/custom-keyboard
</subtitle>
<id>http://git.node5.net/firmware/qmk/atom?h=master</id>
<link rel='self' href='http://git.node5.net/firmware/qmk/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.node5.net/firmware/qmk/'/>
<updated>2023-07-31T14:43:10+00:00</updated>
<entry>
<title>Remove old OLED API code (#21651)</title>
<updated>2023-07-31T14:43:10+00:00</updated>
<author>
<name>Ryan</name>
<email>fauxpark@gmail.com</email>
</author>
<published>2023-07-31T14:43:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.node5.net/firmware/qmk/commit/?id=6018b56c5595b97e45837d1ee9c96d9c3d795c43'/>
<id>urn:sha1:6018b56c5595b97e45837d1ee9c96d9c3d795c43</id>
<content type='text'>
</content>
</entry>
<entry>
<title>quantum: remove direct `quantum.h` includes (#21507)</title>
<updated>2023-07-16T13:42:56+00:00</updated>
<author>
<name>Ryan</name>
<email>fauxpark@gmail.com</email>
</author>
<published>2023-07-16T13:42:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.node5.net/firmware/qmk/commit/?id=da2d2f947d5c30aebea17f414fb22ad50fe5410b'/>
<id>urn:sha1:da2d2f947d5c30aebea17f414fb22ad50fe5410b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement split comms watchdog (#18599)</title>
<updated>2022-10-06T09:52:42+00:00</updated>
<author>
<name>Dasky</name>
<email>32983009+daskygit@users.noreply.github.com</email>
</author>
<published>2022-10-06T09:52:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.node5.net/firmware/qmk/commit/?id=c255174cf3e55483f14351a69689e24e849445a0'/>
<id>urn:sha1:c255174cf3e55483f14351a69689e24e849445a0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[Core] Fix bug and code regression for Split Common (#15603)</title>
<updated>2021-12-27T23:01:51+00:00</updated>
<author>
<name>Drashna Jaelre</name>
<email>drashna@live.com</email>
</author>
<published>2021-12-27T23:01:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.node5.net/firmware/qmk/commit/?id=c86baf3ecea618ce42263c06ac5d0922ea8817fa'/>
<id>urn:sha1:c86baf3ecea618ce42263c06ac5d0922ea8817fa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make solo half of split keyboards (more) usable. (#13523)</title>
<updated>2021-08-22T00:51:17+00:00</updated>
<author>
<name>Joakim Tufvegren</name>
<email>jocke@barbanet.com</email>
</author>
<published>2021-08-22T00:51:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.node5.net/firmware/qmk/commit/?id=0ae20e74578ae4420af3e684f7ad9fcbd7beee94'/>
<id>urn:sha1:0ae20e74578ae4420af3e684f7ad9fcbd7beee94</id>
<content type='text'>
* Make solo half of split keyboards (more) usable.

Using only one half of a split keyboard (that's using the split_common
framework to communicate) is not a great experience, since several read
timeouts per scan cycle cause an unusably slow scan rate.

This change blocks all split communication attempts for 500 ms
(configurable) after an error occurs, causing the scan rate to become at
least _more_ usable, but might need some tweaking to work fully on most
keyboards. One read timeout still needs to occur after the 500 ms has
passed, and if that timeout isn't low enough, some scan cycles may still
be too slow.

* Fix lint complaint.

* Require 25 consecutive comm errors to see comms as disconnected.

The number of max errors can be overridden by defining
`SPLIT_MAX_CONNECTION_ERRORS`.

* Add comments to new defines, and ability to disable disconnection check.

Also increase `SPLIT_MAX_CONNECTION_ERRORS` to 40, since it's divisible
by most relevant numbers for the description.

* Make lint happy ...again

* Only update `connection_check_timer` when needed.

* Add new defines to split keyboard documentation.

* Move connection timeout logic to transport.c, add `is_transport_connected`.

* Use split_common disconnection logic in matrix.c.

Instead of doing more or less the same thing twice.

* Move disconnection logic to `transport_master`.

Is a cleaner implementation, and causes the scan rate while disconnected
to increase instead of decrease.

* Lint fixes.

* Lower default `SERIAL_USART_TIMEOUT` to 20 ms.

The read timeout must be low enough to not cause exessively long scan
cycles when using a solo split half. 10 ms was determined from testing
to work fine even with the slowest defined baudrate of 19200 (5 ms was
too low for that case), so 20 ms should be fine for most cases.

* Remove `SERIAL_USART_TIMEOUT` from ergodox_infinity/config.h

Was somewhat mistakenly included in an earlier PR.

* Fix building with `USE_I2C`.

* Reduce built firmware size.

Not really sure why this works, the idea was taken from tzarc's work on
split disconnection.

* Tweak and improve opt-out for split disconnection logic.

There are now two ways to opt out from this feature:
* Set `SPLIT_MAX_CONNECTION_ERRORS` to 0. This will completely disable
  the connection status checks (also affects the slave matrix reset logic in
  matrix.c, though).
* Set `SPLIT_CONNECTION_CHECK_TIMEOUT` to 0. This will only disable the
  communication throttling while disconnected. Will make the firmware
  smaller.

* Make split disconnection logic work with custom transports.

Includes a fallback implementation for keyboards using a custom
split_util.c but not a custom matrix.c (currently no such keyboard seems
to be merged, though).

* Remove unnecessary include of timer.h

Co-authored-by: Joel Challis &lt;git@zvecr.com&gt;

Co-authored-by: Joel Challis &lt;git@zvecr.com&gt;</content>
</entry>
<entry>
<title>Split - Avoid race condition during matrix_init_quantum (#8235)</title>
<updated>2020-02-25T14:10:04+00:00</updated>
<author>
<name>Joel Challis</name>
<email>git@zvecr.com</email>
</author>
<published>2020-02-25T14:10:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.node5.net/firmware/qmk/commit/?id=f6111d49bbfeb90fdb86c4595ba339590b364da7'/>
<id>urn:sha1:f6111d49bbfeb90fdb86c4595ba339590b364da7</id>
<content type='text'>
* Avoid race condition during matrix_init_quantum

* spelling is hard
</content>
</entry>
<entry>
<title>ARM split - detect USB to select master/slave (#6424)</title>
<updated>2019-10-12T03:25:43+00:00</updated>
<author>
<name>Joel Challis</name>
<email>git@zvecr.com</email>
</author>
<published>2019-10-12T03:25:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.node5.net/firmware/qmk/commit/?id=76378d74f522f53eebc05907d44c839455a0336b'/>
<id>urn:sha1:76378d74f522f53eebc05907d44c839455a0336b</id>
<content type='text'>
* Initial split refactor to allow usb master detection

* Add split USB detect docs

* Add SPLIT_USB_DETECT demo mode limitation

* fix rebase issues

* clang-format
</content>
</entry>
<entry>
<title>clang-format changes</title>
<updated>2019-08-30T22:01:52+00:00</updated>
<author>
<name>skullY</name>
<email>skullydazed@gmail.com</email>
</author>
<published>2019-08-30T18:19:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.node5.net/firmware/qmk/commit/?id=b624f32f944acdc59dcb130674c09090c5c404cb'/>
<id>urn:sha1:b624f32f944acdc59dcb130674c09090c5c404cb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplify split_common Code significantly (#4772)</title>
<updated>2019-01-17T18:08:14+00:00</updated>
<author>
<name>James Churchill</name>
<email>pelrun@gmail.com</email>
</author>
<published>2019-01-17T18:08:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.node5.net/firmware/qmk/commit/?id=28929ad0174bdcb38e09f6d272a23b9be6aa430c'/>
<id>urn:sha1:28929ad0174bdcb38e09f6d272a23b9be6aa430c</id>
<content type='text'>
* Eliminate separate slave loop

Both master and slave run the standard keyboard_task main loop now.

* Refactor i2c/serial specific code

Simplify some of the preprocessor mess by using common function names.

* Fix missing #endif

* Move direct pin mapping support from miniaxe to split_common

For boards with more pins than sense--sorry, switches.

* Reordering and reformatting only

* Don't run matrix_scan_quantum on slave side

* Clean up the offset/slaveOffset calculations

* Cut undebounced matrix size in half

* Refactor debouncing

* Minor fixups

* Split split_common transport and debounce code into their own files

Can now be replaced with custom versions per keyboard using
CUSTOM_TRANSPORT = yes and CUSTOM_DEBOUNCE = yes

* Refactor debounce for non-split keyboards too

* Update handwired/xealous to build using new split_common

* Fix debounce breaking basic test

* Dodgy method to allow a split kb to only include one of i2c/serial

SPLIT_TRANSPORT = serial or SPLIT_TRANSPORT = i2c will include only
that driver code in the binary.

SPLIT_TRANSPORT = custom (or anything else) will include neither, the
keyboard must supply it's own code

if SPLIT_TRANSPORT is not defined then the original behaviour (include
both avr i2c and serial code) is maintained.

This could be better but it would require explicitly updating all the
existing split keyboards.

* Enable LTO to get lets_split/sockets under the line

* Add docs for SPLIT_TRANSPORT, CUSTOM_MATRIX, CUSTOM_DEBOUNCE

* Remove avr-specific sei() from split matrix_setup

Not needed now that slave doesn't have a separate main loop.
Both sides (on avr) call sei() in lufa's main() after exiting
keyboard_setup().

* Fix QUANTUM_LIB_SRC references and simplify SPLIT_TRANSPORT.

* Add comments and fix formatting.
</content>
</entry>
<entry>
<title>Replace serial.c of quantum/split_common/ (#4669)</title>
<updated>2018-12-24T19:14:57+00:00</updated>
<author>
<name>Takeshi ISHII</name>
<email>2170248+mtei@users.noreply.github.com</email>
</author>
<published>2018-12-24T19:14:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.node5.net/firmware/qmk/commit/?id=72d4e4bfd76b2c83b89787f8b3a8ba779a3e8d81'/>
<id>urn:sha1:72d4e4bfd76b2c83b89787f8b3a8ba779a3e8d81</id>
<content type='text'>
* Add provisional Helix implementation to test the quantum/split_common.

* copy keyboards/helix/serial.[ch] to quantum/split_common/

* Make serial.c a pure driver.

Remove buffer name and buffer size from serial.c. They should be placed in the caller(matrix.c, split_utils.c).

* remove quantum/split_common/serial_backward_compatibility.h

* Changed array serial_master_buffer to structure serial_m2s_buffer.

* Changed array serial_slave_buffer to structure serial_s2m_buffer.

* Change keyboards/miniaxe/matrix.c

I also made changes to quantum/split_comon/matrix.c to keyboards/miniaxe/matrix.c.

Note: I contacted @ka2hiro, creator of miniaxe, and I got permission to change keyboards/miniaxe/matrix.c.

* update history comment in quantum/split_common/serial.c

* Revert "Add provisional Helix implementation to test the quantum/split_common."

This reverts commit 168c82ef82c88e79979d9796bab9cc819cc2f685.

* fix keyboards/miniaxe/matrix.c, quantum/split_common/matrix.c

avr-gcc 4.9.[23] report error.
avr-gcc 5.4.0, avr-gcc 7.3.0 pass.
It is funny.

* update comment quantum/split_common/serial.c

* Reserve RGBLIGHT_SPLIT macro in quantum/split_common
</content>
</entry>
</feed>
