keychron_qmk_firmware/quantum
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
..
api
audio Changed rest note (#4837) 2019-01-13 08:50:23 -08:00
keymap_extras Remove redundant, language-specific aliases for KC_ALGR (#4720) 2019-01-03 08:13:55 -08:00
process_keycode Improve consistency in UNICODEMAP code and docs, update docs/understanding_qmk (#4774) 2019-01-07 12:56:57 -08:00
serial_link
split_common Simplify split_common Code significantly (#4772) 2019-01-17 10:08:14 -08:00
stm32 Adds Proton C Conversion (#4661) 2019-01-10 08:22:57 -08:00
template Make quantum/split_common/serial.[ch] configurable (#4419) 2018-12-14 11:00:10 -08:00
tools
visualizer
api.c
api.h Only include lufa.h if AVR in quantum/api.h 2018-10-16 17:11:51 -04:00
color.c Adds IS31FL3731 RGB Matrix Implementation (#2910) 2018-05-08 15:24:18 -04:00
color.h Adds IS31FL3731 RGB Matrix Implementation (#2910) 2018-05-08 15:24:18 -04:00
config_common.h Simplify split_common Code significantly (#4772) 2019-01-17 10:08:14 -08:00
debounce.c Simplify split_common Code significantly (#4772) 2019-01-17 10:08:14 -08:00
debounce.h Simplify split_common Code significantly (#4772) 2019-01-17 10:08:14 -08:00
dynamic_keymap.c Added macros to Dynamic Keymaps, Zeal60 RGB backlight improvements (#4520) 2018-11-30 08:43:34 -08:00
dynamic_keymap.h Added macros to Dynamic Keymaps, Zeal60 RGB backlight improvements (#4520) 2018-11-30 08:43:34 -08:00
dynamic_macro.h
encoder.c add support for encoders to core 2018-10-26 14:24:13 -07:00
encoder.h add support for encoders to core 2018-10-26 14:24:13 -07:00
fauxclicky.c
fauxclicky.h
keycode_config.c
keycode_config.h
keymap_common.c Add Extrakey support for Brightness up/down (#4477) 2018-11-28 08:19:07 -08:00
keymap.h
led_tables.c
led_tables.h
matrix.c Simplify split_common Code significantly (#4772) 2019-01-17 10:08:14 -08:00
mcu_selection.mk Adds Proton C Conversion (#4661) 2019-01-10 08:22:57 -08:00
pincontrol.h
pointing_device.c
pointing_device.h
quantum_keycodes.h Tidy up Mod-Tap shortcuts (#4806) 2019-01-08 16:22:09 -08:00
quantum.c Overhaul Unicode Common functionality (#4325) 2018-12-19 08:39:24 -08:00
quantum.h Make readPin output a 0 or 1 when using AVR to match ChibiOS's version of readPin 2018-12-19 08:37:44 -08:00
rgb_matrix_drivers.c RGB Matrix refactoring to open up for new drivers (#3913) 2018-09-27 10:40:18 -04:00
rgb_matrix.c Change rgblight_get_mode & rgb_matrix_get_mode's return type to uint8_t. (#4747) 2018-12-31 08:42:58 -08:00
rgb_matrix.h Change rgblight_get_mode & rgb_matrix_get_mode's return type to uint8_t. (#4747) 2018-12-31 08:42:58 -08:00
rgb.h Add effect speed support for RGB Matrix *No EEPROM yet* (#2922) 2018-05-08 23:23:21 -04:00
rgblight_list.h Add and fix _noeeprom functions to many of the RGB Underglow functions (#3070) 2018-05-29 11:05:22 -04:00
rgblight_reconfig.h rgblight.[ch] more configurable (#3582) 2018-09-13 10:24:09 -07:00
rgblight_types.h Adds support for Planck Rev 6 (#2666) 2018-07-16 11:48:31 -04:00
rgblight.c Change rgblight_get_mode & rgb_matrix_get_mode's return type to uint8_t. (#4747) 2018-12-31 08:42:58 -08:00
rgblight.h Change rgblight_get_mode & rgb_matrix_get_mode's return type to uint8_t. (#4747) 2018-12-31 08:42:58 -08:00
send_string_keycodes.h Clean up SEND_STRING keycodes and add media keys (#3214) 2018-06-28 08:55:04 -04:00
variable_trace.c
variable_trace.h