qmk_firmware/tmk_core/common
James Churchill 28929ad017 Simplify split_common Code significantly (#4772)
* 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.
2019-01-17 10:08:14 -08:00
..
arm_atsam Update to arm_atsam wait and timer routines 2019-01-07 12:44:55 -08:00
avr
chibios Final HS60v2 changes. (#4790) 2019-01-06 17:22:19 -08:00
mbed
test
action_code.h
action_layer.c Add documentation and fix formating (#4860) 2019-01-17 09:04:35 -08:00
action_layer.h
action_macro.c
action_macro.h
action_tapping.c
action_tapping.h
action_util.c
action_util.h
action.c Keep pressed keys on layer state change (fixes #2053, #2279) (#3905) 2018-12-28 11:07:56 -08:00
action.h Keep pressed keys on layer state change (fixes #2053, #2279) (#3905) 2018-12-28 11:07:56 -08:00
backlight.c
backlight.h
bootloader.h
bootmagic.c
bootmagic.h
command.c Refactor quantum/split_common/i2c.c, quantum/split_common/serial.c (#4522) 2018-12-14 21:31:56 -08:00
command.h
debug.c
debug.h
eeconfig.c Final HS60v2 changes. (#4790) 2019-01-06 17:22:19 -08:00
eeconfig.h Final HS60v2 changes. (#4790) 2019-01-06 17:22:19 -08:00
eeprom.h Final HS60v2 changes. (#4790) 2019-01-06 17:22:19 -08:00
host_driver.h
host.c
host.h
keyboard.c
keyboard.h Simplify split_common Code significantly (#4772) 2019-01-17 10:08:14 -08:00
keycode.h Add standard definitions for ALGR and KC_ALGR (#4389) 2018-12-12 10:17:19 -08:00
led.h
magic.c
magic.h
matrix.h
mousekey.c
mousekey.h
nodebug.h
print.c
print.h
progmem.h Add missing parentheses to some important macros (#4775) 2019-01-08 15:08:17 -08:00
raw_hid.h
report.c
report.h Add underscores to names of brightness control constants in report.h (#4764) 2019-01-05 08:31:24 -08:00
sendchar_null.c
sendchar_uart.c
sendchar.h
sleep_led.h
suspend.h
timer.h
uart.c
uart.h
util.c
util.h
virtser.h
wait.h Update to arm_atsam wait and timer routines 2019-01-07 12:44:55 -08:00