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 Merge ChibiOS and LUFA descriptor support (#2362) 2018-02-08 15:07:46 -05:00
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 Only re-send matrix every 5ms 2017-04-09 18:34:59 +03:00
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 move lcd_backlight_keyframes to correct location 2017-12-07 12:41:13 -05:00
api.c Clarify the quantum license (#1042) 2017-03-28 15:20:36 -07:00
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 Fix dynamic macros on ChibiOS keyboards 2017-09-30 06:22:24 -10:00
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 Faux clicky bug fixes 2017-04-19 01:40:16 +07:00
fauxclicky.h Faux clicky bug fixes 2017-04-19 01:40:16 +07:00
keycode_config.c Fix #1566 - NKRO reseting issue 2018-03-25 13:17:52 -04:00
keycode_config.h Allow mod swapping for mod tap (MT) (#1202) 2017-06-26 18:54:01 -04:00
keymap.h Merge ChibiOS and LUFA descriptor support (#2362) 2018-02-08 15:07:46 -05:00
keymap_common.c Add Extrakey support for Brightness up/down (#4477) 2018-11-28 08:19:07 -08:00
led_tables.c Move CIE1931 and breathing tables to its own file 2017-04-09 18:34:59 +03:00
led_tables.h Move CIE1931 and breathing tables to its own file 2017-04-09 18:34:59 +03:00
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 Clarify the quantum license (#1042) 2017-03-28 15:20:36 -07:00
pointing_device.c Added Dichotemy Keyboard, updated docs for Pointing Device (#1817) 2017-10-10 07:07:59 -10:00
pointing_device.h Fix Pointing Device code (#1934) 2017-10-31 11:13:00 -04: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
quantum_keycodes.h Tidy up Mod-Tap shortcuts (#4806) 2019-01-08 16:22:09 -08:00
rgb.h Add effect speed support for RGB Matrix *No EEPROM yet* (#2922) 2018-05-08 23:23:21 -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_matrix_drivers.c RGB Matrix refactoring to open up for new drivers (#3913) 2018-09-27 10:40:18 -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
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
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 Clarify the quantum license (#1042) 2017-03-28 15:20:36 -07:00
variable_trace.h Clarify the quantum license (#1042) 2017-03-28 15:20:36 -07:00