You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

416 lines
21 KiB

2020 November 28 Breaking Changes Update (#11053) * Branch point for 2020 November 28 Breaking Change * Remove matrix_col_t to allow MATRIX_ROWS > 32 (#10183) * Add support for soft serial to ATmega32U2 (#10204) * Change MIDI velocity implementation to allow direct control of velocity value (#9940) * Add ability to build a subset of all keyboards based on platform. * Actually use eeprom_driver_init(). * Make bootloader_jump weak for ChibiOS. (#10417) * Joystick 16-bit support (#10439) * Per-encoder resolutions (#10259) * Share button state from mousekey to pointing_device (#10179) * Add hotfix for chibios keyboards not wake (#10088) * Add advanced/efficient RGB Matrix Indicators (#8564) * Naming change. * Support for STM32 GPIOF,G,H,I,J,K (#10206) * Add milc as a dependency and remove the installed milc (#10563) * ChibiOS upgrade: early init conversions (#10214) * ChibiOS upgrade: configuration file migrator (#9952) * Haptic and solenoid cleanup (#9700) * XD75 cleanup (#10524) * OLED display update interval support (#10388) * Add definition based on currently-selected serial driver. (#10716) * New feature: Retro Tapping per key (#10622) * Allow for modification of output RGB values when using rgblight/rgb_matrix. (#10638) * Add housekeeping task callbacks so that keyboards/keymaps are capable of executing code for each main loop iteration. (#10530) * Rescale both ChibiOS and AVR backlighting. * Reduce Helix keyboard build variation (#8669) * Minor change to behavior allowing display updates to continue between task ticks (#10750) * Some GPIO manipulations in matrix.c change to atomic. (#10491) * qmk cformat (#10767) * [Keyboard] Update the Speedo firmware for v3.0 (#10657) * Maartenwut/Maarten namechange to evyd13/Evy (#10274) * [quantum] combine repeated lines of code (#10837) * Add step sequencer feature (#9703) * aeboards/ext65 refactor (#10820) * Refactor xelus/dawn60 for Rev2 later (#10584) * add DEBUG_MATRIX_SCAN_RATE_ENABLE to common_features.mk (#10824) * [Core] Added `add_oneshot_mods` & `del_oneshot_mods` (#10549) * update chibios os usb for the otg driver (#8893) * Remove HD44780 References, Part 4 (#10735) * [Keyboard] Add Valor FRL TKL (+refactor) (#10512) * Fix cursor position bug in oled_write_raw functions (#10800) * Fixup version.h writing when using SKIP_VERSION=yes (#10972) * Allow for certain code in the codebase assuming length of string. (#10974) * Add AT90USB support for serial.c (#10706) * Auto shift: support repeats and early registration (#9826) * Rename ledmatrix.h to match .c file (#7949) * Split RGB_MATRIX_ENABLE into _ENABLE and _DRIVER (#10231) * Split LED_MATRIX_ENABLE into _ENABLE and _DRIVER (#10840) * Merge point for 2020 Nov 28 Breaking Change
3 years ago
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.
5 years ago
Change split_common to use RGBLIGHT_SPLIT (#5509) * add I2C_slave_buffer_t to quantum/split_common/transport.c Improvements to ease the maintenance of the I2C slave buffer layout. And this commit does not change the compilation results. * add temporary pdhelix(Patched Helix) code * temporary cherry-pick from #5020 add new version(#5020) quantum/rgblight.[ch], quantum/rgblight_modes.h * add post_config.h support to build_keyboard.mk * add quantum/rgblight_post_config.h, quantum/split_common/post_config.h Add quantum/rgblight_post_config.h and quantum/split_common/post_config.h using POST_CONFIG_H variable of build_keyboard.mk. quantum/rgblight_post_config.h additionally defines RGBLIGHT_SPLIT if RGBLED_SPIT is defined. quantum/split_common/post_config.h defines RGBLIGHT_SPLIT additionally when master-slave communication is I2C. * Change split_common's transport.c I2C to use the synchronization feature of rgblight.c * Change split_common's transport.c serial to use the synchronization feature of rgblight.c * test RGBLIGHT_SPLIT on keyboards/handwired/pdhelix * Test End Revert "test RGBLIGHT_SPLIT on keyboards/handwired/pdhelix" This reverts commit 80118a6bbd3d9fc4c7797fef0c34bc67aa73aa98. [x] make RGBLIGHT_TEST=1 handwired/pdhelix/i2c:default [x] make RGBLIGHT_TEST=2 handwired/pdhelix/i2c:default (same RGBLIGHT_TEST=3) [x] make RGBLIGHT_TEST=3 handwired/pdhelix/i2c:default [x] make RGBLIGHT_TEST=1 handwired/pdhelix/pd2:default [x] make RGBLIGHT_TEST=2 handwired/pdhelix/pd2:default [x] make RGBLIGHT_TEST=3 handwired/pdhelix/pd2:default [x] make RGBLIGHT_TEST=1 handwired/pdhelix/pd2_2oled:default [x] make RGBLIGHT_TEST=2 handwired/pdhelix/pd2_2oled:default [x] make RGBLIGHT_TEST=3 handwired/pdhelix/pd2_2oled:default * Test End, Revert "temporary cherry-pick from #5020" This reverts commit d35069f68bda0c50370442a5c7aae60c2f4ce5c0. * Test End, Revert "add temporary pdhelix(Patched Helix) code" This reverts commit aebddfc1a879796afae297ef0723a4fe73af3660. * temporarily cherry-pick from #5020 to see if it passes the travis-ci test. add new version(#5020) quantum/rgblight.[ch], quantum/rgblight_modes.h * Passed the travis-ci test. Revert "temporarily cherry-pick from #5020 to see if it passes the travis-ci test." This reverts commit 647c0a9755eb6a05f76d09b2d59bce67b85a841f. * update docs/config_options.md * update split_common/transport.c, improves maintainability of serial transaction IDs. No change in build result. * temporary cherry-pick from #5020 * fix build fail keebio/iris/rev3:default * fix build fail lets_split_eh/eh:default * Revert "temporary cherry-pick from #5020" This reverts commit be48ca1b4515366a097af8dd1cd7b28b7ee09947. * temporary cherry-pick from #5020 (0.6.336) * Revert "temporary cherry-pick from #5020 (0.6.336)" This reverts commit 978d26a8b3cf0acc485838a7d76d6128b77c630c. * temporary cherry-pick from #5020 (0.6.336)
5 years ago
Change split_common to use RGBLIGHT_SPLIT (#5509) * add I2C_slave_buffer_t to quantum/split_common/transport.c Improvements to ease the maintenance of the I2C slave buffer layout. And this commit does not change the compilation results. * add temporary pdhelix(Patched Helix) code * temporary cherry-pick from #5020 add new version(#5020) quantum/rgblight.[ch], quantum/rgblight_modes.h * add post_config.h support to build_keyboard.mk * add quantum/rgblight_post_config.h, quantum/split_common/post_config.h Add quantum/rgblight_post_config.h and quantum/split_common/post_config.h using POST_CONFIG_H variable of build_keyboard.mk. quantum/rgblight_post_config.h additionally defines RGBLIGHT_SPLIT if RGBLED_SPIT is defined. quantum/split_common/post_config.h defines RGBLIGHT_SPLIT additionally when master-slave communication is I2C. * Change split_common's transport.c I2C to use the synchronization feature of rgblight.c * Change split_common's transport.c serial to use the synchronization feature of rgblight.c * test RGBLIGHT_SPLIT on keyboards/handwired/pdhelix * Test End Revert "test RGBLIGHT_SPLIT on keyboards/handwired/pdhelix" This reverts commit 80118a6bbd3d9fc4c7797fef0c34bc67aa73aa98. [x] make RGBLIGHT_TEST=1 handwired/pdhelix/i2c:default [x] make RGBLIGHT_TEST=2 handwired/pdhelix/i2c:default (same RGBLIGHT_TEST=3) [x] make RGBLIGHT_TEST=3 handwired/pdhelix/i2c:default [x] make RGBLIGHT_TEST=1 handwired/pdhelix/pd2:default [x] make RGBLIGHT_TEST=2 handwired/pdhelix/pd2:default [x] make RGBLIGHT_TEST=3 handwired/pdhelix/pd2:default [x] make RGBLIGHT_TEST=1 handwired/pdhelix/pd2_2oled:default [x] make RGBLIGHT_TEST=2 handwired/pdhelix/pd2_2oled:default [x] make RGBLIGHT_TEST=3 handwired/pdhelix/pd2_2oled:default * Test End, Revert "temporary cherry-pick from #5020" This reverts commit d35069f68bda0c50370442a5c7aae60c2f4ce5c0. * Test End, Revert "add temporary pdhelix(Patched Helix) code" This reverts commit aebddfc1a879796afae297ef0723a4fe73af3660. * temporarily cherry-pick from #5020 to see if it passes the travis-ci test. add new version(#5020) quantum/rgblight.[ch], quantum/rgblight_modes.h * Passed the travis-ci test. Revert "temporarily cherry-pick from #5020 to see if it passes the travis-ci test." This reverts commit 647c0a9755eb6a05f76d09b2d59bce67b85a841f. * update docs/config_options.md * update split_common/transport.c, improves maintainability of serial transaction IDs. No change in build result. * temporary cherry-pick from #5020 * fix build fail keebio/iris/rev3:default * fix build fail lets_split_eh/eh:default * Revert "temporary cherry-pick from #5020" This reverts commit be48ca1b4515366a097af8dd1cd7b28b7ee09947. * temporary cherry-pick from #5020 (0.6.336) * Revert "temporary cherry-pick from #5020 (0.6.336)" This reverts commit 978d26a8b3cf0acc485838a7d76d6128b77c630c. * temporary cherry-pick from #5020 (0.6.336)
5 years ago
Lets split eh (#3120) * Line ending stuff again * Added Let's Split Eh? Files and updated #USE_IC2 checks to also include th EH revision (can only be used in I2C) * Added personal keymap, updated some of the EH files * Created new keyboard file for testing "lets_split_eh" will merge into lets_split once fully functional * Added split code from lets_split, removed pro micro imports and LED code THIS IS WORKING CODE, WITHOUT RGB AND BACKLIGHT * Took back original Lets Slit files for the lets_split keyboard, working in the lets_split_eh folder for now * Updated eh.c * More rework of the I2C code, added global flags for split boards. * Introduced RGB over I2C, having weird edge case issues at the moment though * Fixed weird I2C edgecase with RGB, although still would like to track down route cause.. * Changed RGB keycodes (static ones) to activate on key-up instead of key-down to elimate weird ghosting issue over I2C * Lots of changes, mainly externalized the Split keyboard code and added logic for only including when needed. - Added makefile option "SPLIT_KEYBOARD" that when = yes will include the split keyboard files and custom matrix - Split keyboard files placed into quantum/split_common/ - Added define option for config files "SPLIT_HAND_PIN" FOr using high/low pin to determine handedness, low = right hand, high = left hand - Cleaned up split logic for RGB and Backlight so it is only exectuted / included when needed * Updated documentation for the new makefile options and #defines specific to split keyboards * Added a bit more info to docs, so people aren't confused * Modifed Let's Split to use externalized code, also added left and right hand eeprom files to the split_common folder * Removed some debugging from eh.c * Small changes to keyboard configs. Also added a default keymap (just a copy of my that_canadian keymap). * Added a README file to the Let's Split Eh? * Changed it so RGB static updates are done on key-up ONLY for split boards rather than all boards. Also fixed leftover un-used variable in rgblight.c * Updated default keymap and my keymap for Let's Split Eh? Updated the comments so it reflects RGB control, and removed audio functions. * Fixed lets_split_eh not having a default version * Removed "eh" references from lets_split folder for now * Took lets_split folder from master to fix travis build errors, weird my local was overriding. * Changed LAYOUT_ortho_4x12_kc -> LAYOUT_kc_ortho_4x12 to match bakingpy and others * Removed rules.mk from my lets_split keymap, not needed * Updated the config_options doc to better explain the usage of "#define SPLIT_HAND_PIN"
5 years ago
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.
5 years ago
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.
5 years ago
Lets split eh (#3120) * Line ending stuff again * Added Let's Split Eh? Files and updated #USE_IC2 checks to also include th EH revision (can only be used in I2C) * Added personal keymap, updated some of the EH files * Created new keyboard file for testing "lets_split_eh" will merge into lets_split once fully functional * Added split code from lets_split, removed pro micro imports and LED code THIS IS WORKING CODE, WITHOUT RGB AND BACKLIGHT * Took back original Lets Slit files for the lets_split keyboard, working in the lets_split_eh folder for now * Updated eh.c * More rework of the I2C code, added global flags for split boards. * Introduced RGB over I2C, having weird edge case issues at the moment though * Fixed weird I2C edgecase with RGB, although still would like to track down route cause.. * Changed RGB keycodes (static ones) to activate on key-up instead of key-down to elimate weird ghosting issue over I2C * Lots of changes, mainly externalized the Split keyboard code and added logic for only including when needed. - Added makefile option "SPLIT_KEYBOARD" that when = yes will include the split keyboard files and custom matrix - Split keyboard files placed into quantum/split_common/ - Added define option for config files "SPLIT_HAND_PIN" FOr using high/low pin to determine handedness, low = right hand, high = left hand - Cleaned up split logic for RGB and Backlight so it is only exectuted / included when needed * Updated documentation for the new makefile options and #defines specific to split keyboards * Added a bit more info to docs, so people aren't confused * Modifed Let's Split to use externalized code, also added left and right hand eeprom files to the split_common folder * Removed some debugging from eh.c * Small changes to keyboard configs. Also added a default keymap (just a copy of my that_canadian keymap). * Added a README file to the Let's Split Eh? * Changed it so RGB static updates are done on key-up ONLY for split boards rather than all boards. Also fixed leftover un-used variable in rgblight.c * Updated default keymap and my keymap for Let's Split Eh? Updated the comments so it reflects RGB control, and removed audio functions. * Fixed lets_split_eh not having a default version * Removed "eh" references from lets_split folder for now * Took lets_split folder from master to fix travis build errors, weird my local was overriding. * Changed LAYOUT_ortho_4x12_kc -> LAYOUT_kc_ortho_4x12 to match bakingpy and others * Removed rules.mk from my lets_split keymap, not needed * Updated the config_options doc to better explain the usage of "#define SPLIT_HAND_PIN"
5 years ago
Make quantum/split_common/serial.[ch] configurable (#4419) * add temporary compile test shell script * add 'CONFIG_H += serial_backward_compatibility.h' into common_features.mk:SPLIT_KEYBOARD block * add quantum/split_common/serial_backward_compatibility.h SERIAL_PIN_PORT and other PIN define move to serial_backward_compatibility.h SERIAL_BACKLIT_START move to split_util.h * quantum/split_common/serial.c change to helix-serial.c style serial configuration * add temporary file quantum/split_common/split-keyboards-list.txt * add '#define SOFT_SERIAL_PIN D0' to keyboards/6lit/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/divergetm2/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/ergotravel/rev1/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/foobar/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/handwired/dactyl_manuform/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/handwired/qc60/config.h * add '//#define SOFT_SERIAL_PIN D0' to keyboards/handwired/xealous/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/iris/rev*/config.h * add '//#define SOFT_SERIAL_PIN D0' to keyboards/lets_split_eh/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/levinson/rev*/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/miniaxe/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/nyquist/rev?/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/quefrency/rev1/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/qwertyydox/config.h,keyboards/qwertyydox/rev1/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/redox/rev1/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/rorschach/rev1/config.h * remove '#define SOFT_SERIAL_PIN D0' from quantum/split_common/serial_backward_compatibility.h * remove temporary file quantum/split_common/split-keyboards-list.txt * remove temporary compile test shell script * Revert "remove temporary compile test shell script" This reverts commit 15b0021b4092127b8d8a21f572642ad3702b46d4. * update quantum/split_common/compile_split_test.sh for new keyboard test * add '#define SOFT_SERIAL_PIN D0' to keyboards/diverge3/config.h * add '#define SOFT_SERIAL_PIN D0' to keyboards/40percentclub/25/config.h * remove temporary compile test shell script * update docs/config_options.md, quantum/template/avr/config.h * fix quantum/template/avr/config.h * fix typo docs/config_options.md
5 years ago
Lets split eh (#3120) * Line ending stuff again * Added Let's Split Eh? Files and updated #USE_IC2 checks to also include th EH revision (can only be used in I2C) * Added personal keymap, updated some of the EH files * Created new keyboard file for testing "lets_split_eh" will merge into lets_split once fully functional * Added split code from lets_split, removed pro micro imports and LED code THIS IS WORKING CODE, WITHOUT RGB AND BACKLIGHT * Took back original Lets Slit files for the lets_split keyboard, working in the lets_split_eh folder for now * Updated eh.c * More rework of the I2C code, added global flags for split boards. * Introduced RGB over I2C, having weird edge case issues at the moment though * Fixed weird I2C edgecase with RGB, although still would like to track down route cause.. * Changed RGB keycodes (static ones) to activate on key-up instead of key-down to elimate weird ghosting issue over I2C * Lots of changes, mainly externalized the Split keyboard code and added logic for only including when needed. - Added makefile option "SPLIT_KEYBOARD" that when = yes will include the split keyboard files and custom matrix - Split keyboard files placed into quantum/split_common/ - Added define option for config files "SPLIT_HAND_PIN" FOr using high/low pin to determine handedness, low = right hand, high = left hand - Cleaned up split logic for RGB and Backlight so it is only exectuted / included when needed * Updated documentation for the new makefile options and #defines specific to split keyboards * Added a bit more info to docs, so people aren't confused * Modifed Let's Split to use externalized code, also added left and right hand eeprom files to the split_common folder * Removed some debugging from eh.c * Small changes to keyboard configs. Also added a default keymap (just a copy of my that_canadian keymap). * Added a README file to the Let's Split Eh? * Changed it so RGB static updates are done on key-up ONLY for split boards rather than all boards. Also fixed leftover un-used variable in rgblight.c * Updated default keymap and my keymap for Let's Split Eh? Updated the comments so it reflects RGB control, and removed audio functions. * Fixed lets_split_eh not having a default version * Removed "eh" references from lets_split folder for now * Took lets_split folder from master to fix travis build errors, weird my local was overriding. * Changed LAYOUT_ortho_4x12_kc -> LAYOUT_kc_ortho_4x12 to match bakingpy and others * Removed rules.mk from my lets_split keymap, not needed * Updated the config_options doc to better explain the usage of "#define SPLIT_HAND_PIN"
5 years ago
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.
5 years ago
Use a single endpoint for HID reports (#3951) * Unify multiple HID interfaces into one This reduces the number of USB endpoints required, which frees them up for other things. NKRO and EXTRAKEY always use the shared endpoint. By default, MOUSEKEY also uses it. This means it won't work as a Boot Procotol mouse in some BIOSes, etc. If you really think your keyboard needs to work as a mouse in your BIOS, set MOUSE_SHARED_EP = no in your rules.mk. By default, the core keyboard does not use the shared endpoint, as not all BIOSes are standards compliant and that's one place you don't want to find out your keyboard doesn't work.. If you are really confident, you can set KEYBOARD_SHARED_EP = yes to use the shared endpoint here too. * unify endpoints: ChibiOS protocol implementation * fixup: missing #ifdef EXTRAKEY_ENABLEs broke build on AVR with EXTRAKEY disabled * endpoints: restore error when too many endpoints required * lufa: wait up to 10ms to send keyboard input This avoids packets being dropped when two reports are sent in quick succession (eg. releasing a dual role key). * endpoints: fix compile on ARM_ATSAM * endpoint: ARM_ATSAM fixes No longer use wrong or unexpected endpoint IDs * endpoints: accommodate VUSB protocol V-USB has its own, understandably simple ideas about the report formats. It already blasts the mouse and extrakeys through one endpoint with report IDs. We just stay out of its way. * endpoints: document new endpoint configuration options * endpoints: respect keyboard_report->mods in NKRO The caller(s) of host_keyboard_send expect to be able to just drop modifiers in the mods field and not worry about whether NKRO is in use. This is a good thing. So we just shift it over if needs be. * endpoints: report.c: update for new keyboard_report format
5 years ago
  1. # Configuring QMK
  2. QMK is nearly infinitely configurable. Wherever possible we err on the side of allowing users to customize their keyboard, even at the expense of code size. That level of flexibility makes for a daunting configuration experience, however.
  3. There are two main types of configuration files in QMK- `config.h` and `rules.mk`. These files exist at various levels in QMK and all files of the same type are combined to build the final configuration. The levels, from lowest priority to highest priority, are:
  4. * QMK Default
  5. * Keyboard
  6. * Folders (Up to 5 levels deep)
  7. * Keymap
  8. ## QMK Default
  9. Every available setting in QMK has a default. If that setting is not set at the Keyboard, Folder, or Keymap level this is the setting that will be used.
  10. ## Keyboard
  11. This level contains config options that should apply to the whole keyboard. Some settings won't change in revisions, or most keymaps. Other settings are merely defaults for this keyboard and can be overridden by folders and/or keymaps.
  12. ## Folders
  13. Some keyboards have folders and sub-folders to allow for different hardware configurations. Most keyboards only go 1 folder deep, but QMK supports structures up to 5 folders deep. Each folder can have its own `config.h` and `rules.mk` files that are incorporated into the final configuration.
  14. ## Keymap
  15. This level contains all of the options for that particular keymap. If you wish to override a previous declaration, you can use `#undef <variable>` to undefine it, where you can then redefine it without an error.
  16. # The `config.h` File
  17. This is a C header file that is one of the first things included, and will persist over the whole project (if included). Lots of variables can be set here and accessed elsewhere. The `config.h` file shouldn't be including other `config.h` files, or anything besides this:
  18. #include "config_common.h"
  19. ## Hardware Options
  20. * `#define VENDOR_ID 0x1234`
  21. * defines your VID, and for most DIY projects, can be whatever you want
  22. * `#define PRODUCT_ID 0x5678`
  23. * defines your PID, and for most DIY projects, can be whatever you want
  24. * `#define DEVICE_VER 0`
  25. * defines the device version (often used for revisions)
  26. * `#define MANUFACTURER Me`
  27. * generally who/whatever brand produced the board
  28. * `#define PRODUCT Board`
  29. * the name of the keyboard
  30. * `#define MATRIX_ROWS 5`
  31. * the number of rows in your keyboard's matrix
  32. * `#define MATRIX_COLS 15`
  33. * the number of columns in your keyboard's matrix
  34. * `#define MATRIX_ROW_PINS { D0, D5, B5, B6 }`
  35. * pins of the rows, from top to bottom
  36. * `#define MATRIX_COL_PINS { F1, F0, B0, C7, F4, F5, F6, F7, D4, D6, B4, D7 }`
  37. * pins of the columns, from left to right
  38. * `#define MATRIX_IO_DELAY 30`
  39. * the delay in microseconds when between changing matrix pin state and reading values
  40. * `#define UNUSED_PINS { D1, D2, D3, B1, B2, B3 }`
  41. * pins unused by the keyboard for reference
  42. * `#define MATRIX_HAS_GHOST`
  43. * define is matrix has ghost (unlikely)
  44. * `#define DIODE_DIRECTION COL2ROW`
  45. * COL2ROW or ROW2COL - how your matrix is configured. COL2ROW means the black mark on your diode is facing to the rows, and between the switch and the rows.
  46. * `#define DIRECT_PINS { { F1, F0, B0, C7 }, { F4, F5, F6, F7 } }`
  47. * pins mapped to rows and columns, from left to right. Defines a matrix where each switch is connected to a separate pin and ground.
  48. * `#define AUDIO_VOICES`
  49. * turns on the alternate audio voices (to cycle through)
  50. * `#define C4_AUDIO`
  51. * enables audio on pin C4
  52. * `#define C5_AUDIO`
  53. * enables audio on pin C5
  54. * `#define C6_AUDIO`
  55. * enables audio on pin C6
  56. * `#define B5_AUDIO`
  57. * enables audio on pin B5 (duophony is enables if one of B[5-7]\_AUDIO is enabled along with one of C[4-6]\_AUDIO)
  58. * `#define B6_AUDIO`
  59. * enables audio on pin B6 (duophony is enables if one of B[5-7]\_AUDIO is enabled along with one of C[4-6]\_AUDIO)
  60. * `#define B7_AUDIO`
  61. * enables audio on pin B7 (duophony is enables if one of B[5-7]\_AUDIO is enabled along with one of C[4-6]\_AUDIO)
  62. * `#define BACKLIGHT_PIN B7`
  63. * pin of the backlight
  64. * `#define BACKLIGHT_LEVELS 3`
  65. * number of levels your backlight will have (maximum 31 excluding off)
  66. * `#define BACKLIGHT_BREATHING`
  67. * enables backlight breathing
  68. * `#define BREATHING_PERIOD 6`
  69. * the length of one backlight "breath" in seconds
  70. * `#define DEBOUNCE 5`
  71. * the delay when reading the value of the pin (5 is default)
  72. * `#define LOCKING_SUPPORT_ENABLE`
  73. * mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap
  74. * `#define LOCKING_RESYNC_ENABLE`
  75. * tries to keep switch state consistent with keyboard LED state
  76. * `#define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT)`
  77. * key combination that allows the use of magic commands (useful for debugging)
  78. * `#define USB_MAX_POWER_CONSUMPTION 500`
  79. * sets the maximum power (in mA) over USB for the device (default: 500)
  80. * `#define USB_POLLING_INTERVAL_MS 10`
  81. * sets the USB polling rate in milliseconds for the keyboard, mouse, and shared (NKRO/media keys) interfaces
  82. * `#define F_SCL 100000L`
  83. * sets the I2C clock rate speed for keyboards using I2C. The default is `400000L`, except for keyboards using `split_common`, where the default is `100000L`.
  84. ## Features That Can Be Disabled
  85. If you define these options you will disable the associated feature, which can save on code size.
  86. * `#define NO_DEBUG`
  87. * disable debugging
  88. * `#define NO_PRINT`
  89. * disable printing/debugging using hid_listen
  90. * `#define NO_ACTION_LAYER`
  91. * disable layers
  92. * `#define NO_ACTION_TAPPING`
  93. * disable tap dance and other tapping features
  94. * `#define NO_ACTION_ONESHOT`
  95. * disable one-shot modifiers
  96. * `#define NO_ACTION_MACRO`
  97. * disable old-style macro handling using `MACRO()`, `action_get_macro()` _(deprecated)_
  98. * `#define NO_ACTION_FUNCTION`
  99. * disable old-style function handling using `fn_actions`, `action_function()` _(deprecated)_
  100. ## Features That Can Be Enabled
  101. If you define these options you will enable the associated feature, which may increase your code size.
  102. * `#define FORCE_NKRO`
  103. * NKRO by default requires to be turned on, this forces it on during keyboard startup regardless of EEPROM setting. NKRO can still be turned off but will be turned on again if the keyboard reboots.
  104. * `#define STRICT_LAYER_RELEASE`
  105. * force a key release to be evaluated using the current layer stack instead of remembering which layer it came from (used for advanced cases)
  106. ## Behaviors That Can Be Configured
  107. * `#define TAPPING_TERM 200`
  108. * how long before a tap becomes a hold, if set above 500, a key tapped during the tapping term will turn it into a hold too
  109. * `#define TAPPING_TERM_PER_KEY`
  110. * enables handling for per key `TAPPING_TERM` settings
  111. * `#define RETRO_TAPPING`
  112. * tap anyway, even after TAPPING_TERM, if there was no other key interruption between press and release
  113. * See [Retro Tapping](tap_hold.md#retro-tapping) for details
  114. * `#define RETRO_TAPPING_PER_KEY`
  115. * enables handling for per key `RETRO_TAPPING` settings
  116. * `#define TAPPING_TOGGLE 2`
  117. * how many taps before triggering the toggle
  118. * `#define PERMISSIVE_HOLD`
  119. * makes tap and hold keys trigger the hold if another key is pressed before releasing, even if it hasn't hit the `TAPPING_TERM`
  120. * See [Permissive Hold](tap_hold.md#permissive-hold) for details
  121. * `#define PERMISSIVE_HOLD_PER_KEY`
  122. * enabled handling for per key `PERMISSIVE_HOLD` settings
  123. * `#define IGNORE_MOD_TAP_INTERRUPT`
  124. * makes it possible to do rolling combos (zx) with keys that convert to other keys on hold, by enforcing the `TAPPING_TERM` for both keys.
  125. * See [Ignore Mod Tap Interrupt](tap_hold.md#ignore-mod-tap-interrupt) for details
  126. * `#define IGNORE_MOD_TAP_INTERRUPT_PER_KEY`
  127. * enables handling for per key `IGNORE_MOD_TAP_INTERRUPT` settings
  128. * `#define TAPPING_FORCE_HOLD`
  129. * makes it possible to use a dual role key as modifier shortly after having been tapped
  130. * See [Tapping Force Hold](tap_hold.md#tapping-force-hold)
  131. * Breaks any Tap Toggle functionality (`TT` or the One Shot Tap Toggle)
  132. * `#define TAPPING_FORCE_HOLD_PER_KEY`
  133. * enables handling for per key `TAPPING_FORCE_HOLD` settings
  134. * `#define LEADER_TIMEOUT 300`
  135. * how long before the leader key times out
  136. * If you're having issues finishing the sequence before it times out, you may need to increase the timeout setting. Or you may want to enable the `LEADER_PER_KEY_TIMING` option, which resets the timeout after each key is tapped.
  137. * `#define LEADER_PER_KEY_TIMING`
  138. * sets the timer for leader key chords to run on each key press rather than overall
  139. * `#define LEADER_KEY_STRICT_KEY_PROCESSING`
  140. * Disables keycode filtering for Mod-Tap and Layer-Tap keycodes. Eg, if you enable this, you would need to specify `MT(MOD_CTL, KC_A)` if you want to use `KC_A`.
  141. * `#define ONESHOT_TIMEOUT 300`
  142. * how long before oneshot times out
  143. * `#define ONESHOT_TAP_TOGGLE 2`
  144. * how many taps before oneshot toggle is triggered
  145. * `#define QMK_KEYS_PER_SCAN 4`
  146. * Allows sending more than one key per scan. By default, only one key event gets
  147. sent via `process_record()` per scan. This has little impact on most typing, but
  148. if you're doing a lot of chords, or your scan rate is slow to begin with, you can
  149. have some delay in processing key events. Each press and release is a separate
  150. event. For a keyboard with 1ms or so scan times, even a very fast typist isn't
  151. going to produce the 500 keystrokes a second needed to actually get more than a
  152. few ms of delay from this. But if you're doing chording on something with 3-4ms
  153. scan times? You probably want this.
  154. * `#define COMBO_COUNT 2`
  155. * Set this to the number of combos that you're using in the [Combo](feature_combo.md) feature.
  156. * `#define COMBO_TERM 200`
  157. * how long for the Combo keys to be detected. Defaults to `TAPPING_TERM` if not defined.
  158. * `#define TAP_CODE_DELAY 100`
  159. * Sets the delay between `register_code` and `unregister_code`, if you're having issues with it registering properly (common on VUSB boards). The value is in milliseconds.
  160. * `#define TAP_HOLD_CAPS_DELAY 80`
  161. * Sets the delay for Tap Hold keys (`LT`, `MT`) when using `KC_CAPSLOCK` keycode, as this has some special handling on MacOS. The value is in milliseconds, and defaults to 80 ms if not defined. For macOS, you may want to set this to 200 or higher.
  162. ## RGB Light Configuration
  163. * `#define RGB_DI_PIN D7`
  164. * pin the DI on the WS2812 is hooked-up to
  165. * `#define RGBLIGHT_ANIMATIONS`
  166. * run RGB animations
  167. * `#define RGBLIGHT_LAYERS`
  168. * Lets you define [lighting layers](feature_rgblight.md?id=lighting-layers) that can be toggled on or off. Great for showing the current keyboard layer or caps lock state.
  169. * `#define RGBLIGHT_MAX_LAYERS`
  170. * Defaults to 8. Can be expanded up to 32 if more [lighting layers](feature_rgblight.md?id=lighting-layers) are needed.
  171. * Note: Increasing the maximum will increase the firmware size and slow sync on split keyboards.
  172. * `#define RGBLIGHT_LAYER_BLINK`
  173. * Adds ability to [blink](feature_rgblight.md?id=lighting-layer-blink) a lighting layer for a specified number of milliseconds (e.g. to acknowledge an action).
  174. * `#define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF`
  175. * If defined, then [lighting layers](feature_rgblight?id=overriding-rgb-lighting-onoff-status) will be shown even if RGB Light is off.
  176. * `#define RGBLED_NUM 12`
  177. * number of LEDs
  178. * `#define RGBLIGHT_SPLIT`
  179. * Needed if both halves of the board have RGB LEDs wired directly to the RGB output pin on the controllers instead of passing the output of the left half to the input of the right half
  180. * `#define RGBLED_SPLIT { 6, 6 }`
  181. * number of LEDs connected that are directly wired to `RGB_DI_PIN` on each half of a split keyboard
  182. * First value indicates number of LEDs for left half, second value is for the right half
  183. * When RGBLED_SPLIT is defined, RGBLIGHT_SPLIT is implicitly defined.
  184. * `#define RGBLIGHT_HUE_STEP 12`
  185. * units to step when in/decreasing hue
  186. * `#define RGBLIGHT_SAT_STEP 25`
  187. * units to step when in/decreasing saturation
  188. * `#define RGBLIGHT_VAL_STEP 12`
  189. * units to step when in/decreasing value (brightness)
  190. * `#define RGBW`
  191. * Enables RGBW LED support
  192. ## Mouse Key Options
  193. * `#define MOUSEKEY_INTERVAL 20`
  194. * `#define MOUSEKEY_DELAY 0`
  195. * `#define MOUSEKEY_TIME_TO_MAX 60`
  196. * `#define MOUSEKEY_MAX_SPEED 7`
  197. * `#define MOUSEKEY_WHEEL_DELAY 0`
  198. ## Split Keyboard Options
  199. Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk
  200. * `SPLIT_TRANSPORT = custom`
  201. * Allows replacing the standard split communication routines with a custom one. ARM based split keyboards must use this at present.
  202. ### Setting Handedness
  203. One thing to remember, the side that the USB port is plugged into is always the master half. The side not plugged into USB is the slave.
  204. There are a few different ways to set handedness for split keyboards (listed in order of precedence):
  205. 1. Set `SPLIT_HAND_PIN`: Reads a pin to determine handedness. If pin is high, it's the left side, if low, the half is determined to be the right side
  206. 2. Set `EE_HANDS` and flash `eeprom-lefthand.eep`/`eeprom-righthand.eep` to each half
  207. * For boards with DFU bootloader you can use `:dfu-split-left`/`:dfu-split-right` to flash these EEPROM files
  208. * For boards with Caterina bootloader (like stock Pro Micros), use `:avrdude-split-left`/`:avrdude-split-right`
  209. * For boards with ARM DFU bootloader (like Proton C), use `:dfu-util-split-left`/`:dfu-util-split-right`
  210. 3. Set `MASTER_RIGHT`: Half that is plugged into the USB port is determined to be the master and right half (inverse of the default)
  211. 4. Default: The side that is plugged into the USB port is the master half and is assumed to be the left half. The slave side is the right half
  212. #### Defines for handedness
  213. * `#define SPLIT_HAND_PIN B7`
  214. * For using high/low pin to determine handedness, low = right hand, high = left hand. Replace `B7` with the pin you are using. This is optional, and if you leave `SPLIT_HAND_PIN` undefined, then you can still use the EE_HANDS method or MASTER_LEFT / MASTER_RIGHT defines like the stock Let's Split uses.
  215. * `#define SPLIT_HAND_MATRIX_GRID <out_pin>,<in_pin>`
  216. * The handedness is determined by using the intersection of the keyswitches in the key matrix, which does not exist. Normally, when this intersection is shorted (level low), it is considered left. If you define `#define SPLIT_HAND_MATRIX_GRID_LOW_IS_RIGHT`, it is determined to be right when the level is low.
  217. * `#define EE_HANDS` (only works if `SPLIT_HAND_PIN` and `SPLIT_HAND_MATRIX_GRID` are not defined)
  218. * Reads the handedness value stored in the EEPROM after `eeprom-lefthand.eep`/`eeprom-righthand.eep` has been flashed to their respective halves.
  219. * `#define MASTER_RIGHT`
  220. * Master half is defined to be the right half.
  221. ### Other Options
  222. * `#define USE_I2C`
  223. * For using I2C instead of Serial (defaults to serial)
  224. * `#define SOFT_SERIAL_PIN D0`
  225. * When using serial, define this. `D0` or `D1`,`D2`,`D3`,`E6`.
  226. * `#define MATRIX_ROW_PINS_RIGHT { <row pins> }`
  227. * `#define MATRIX_COL_PINS_RIGHT { <col pins> }`
  228. * If you want to specify a different pinout for the right half than the left half, you can define `MATRIX_ROW_PINS_RIGHT`/`MATRIX_COL_PINS_RIGHT`. Currently, the size of `MATRIX_ROW_PINS` must be the same as `MATRIX_ROW_PINS_RIGHT` and likewise for the definition of columns.
  229. * `#define DIRECT_PINS_RIGHT { { F1, F0, B0, C7 }, { F4, F5, F6, F7 } }`
  230. * If you want to specify a different direct pinout for the right half than the left half, you can define `DIRECT_PINS_RIGHT`. Currently, the size of `DIRECT_PINS` must be the same as `DIRECT_PINS_RIGHT`.
  231. * `#define RGBLED_SPLIT { 6, 6 }`
  232. * See [RGB Light Configuration](#rgb-light-configuration)
  233. * `#define SELECT_SOFT_SERIAL_SPEED <speed>` (default speed is 1)
  234. * Sets the protocol speed when using serial communication
  235. * Speeds:
  236. * 0: about 189kbps (Experimental only)
  237. * 1: about 137kbps (default)
  238. * 2: about 75kbps
  239. * 3: about 39kbps
  240. * 4: about 26kbps
  241. * 5: about 20kbps
  242. * `#define SPLIT_USB_DETECT`
  243. * Detect (with timeout) USB connection when delegating master/slave
  244. * Default behavior for ARM
  245. * Required for AVR Teensy
  246. * `#define SPLIT_USB_TIMEOUT 2000`
  247. * Maximum timeout when detecting master/slave when using `SPLIT_USB_DETECT`
  248. * `#define SPLIT_USB_TIMEOUT_POLL 10`
  249. * Poll frequency when detecting master/slave when using `SPLIT_USB_DETECT`
  250. # The `rules.mk` File
  251. This is a [make](https://www.gnu.org/software/make/manual/make.html) file that is included by the top-level `Makefile`. It is used to set some information about the MCU that we will be compiling for as well as enabling and disabling certain features.
  252. ## Build Options
  253. * `DEFAULT_FOLDER`
  254. * Used to specify a default folder when a keyboard has more than one sub-folder.
  255. * `FIRMWARE_FORMAT`
  256. * Defines which format (bin, hex) is copied to the root `qmk_firmware` folder after building.
  257. * `SRC`
  258. * Used to add files to the compilation/linking list.
  259. * `LIB_SRC`
  260. * Used to add files as a library to the compilation/linking list.
  261. The files specified by `LIB_SRC` is linked after the files specified by `SRC`.
  262. For example, if you specify:
  263. ```
  264. SRC += a.c
  265. LIB_SRC += lib_b.c
  266. SRC += c.c
  267. LIB_SRC += lib_d.c
  268. ```
  269. The link order is as follows.
  270. ```
  271. ... a.o c.o ... lib_b.a lib_d.a ...
  272. ```
  273. * `LAYOUTS`
  274. * A list of [layouts](feature_layouts.md) this keyboard supports.
  275. * `LTO_ENABLE`
  276. * Enables Link Time Optimization (LTO) when compiling the keyboard. This makes the process take longer, but it can significantly reduce the compiled size (and since the firmware is small, the added time is not noticeable).
  277. However, this will automatically disable the legacy TMK Macros and Functions features, as these break when LTO is enabled. It does this by automatically defining `NO_ACTION_MACRO` and `NO_ACTION_FUNCTION`. (Note: This does not affect QMK [Macros](feature_macros.md) and [Layers](feature_layers.md).)
  278. ## AVR MCU Options
  279. * `MCU = atmega32u4`
  280. * `F_CPU = 16000000`
  281. * `ARCH = AVR8`
  282. * `F_USB = $(F_CPU)`
  283. * `OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT`
  284. * `BOOTLOADER = atmel-dfu` with the following options:
  285. * `atmel-dfu`
  286. * `lufa-dfu`
  287. * `qmk-dfu`
  288. * `halfkay`
  289. * `caterina`
  290. * `bootloadHID`
  291. * `USBasp`
  292. ## Feature Options :id=feature-options
  293. Use these to enable or disable building certain features. The more you have enabled the bigger your firmware will be, and you run the risk of building a firmware too large for your MCU.
  294. * `BOOTMAGIC_ENABLE`
  295. * Virtual DIP switch configuration
  296. * `MOUSEKEY_ENABLE`
  297. * Mouse keys
  298. * `EXTRAKEY_ENABLE`
  299. * Audio control and System control
  300. * `CONSOLE_ENABLE`
  301. * Console for debug
  302. * `COMMAND_ENABLE`
  303. * Commands for debug and configuration
  304. * `COMBO_ENABLE`
  305. * Key combo feature
  306. * `NKRO_ENABLE`
  307. * USB N-Key Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  308. * `AUDIO_ENABLE`
  309. * Enable the audio subsystem.
  310. * `RGBLIGHT_ENABLE`
  311. * Enable keyboard underlight functionality
  312. * `LEADER_ENABLE`
  313. * Enable leader key chording
  314. * `MIDI_ENABLE`
  315. * MIDI controls
  316. * `UNICODE_ENABLE`
  317. * Unicode
  318. * `BLUETOOTH`
  319. * Current options are AdafruitBLE, RN42
  320. * `SPLIT_KEYBOARD`
  321. * Enables split keyboard support (dual MCU like the let's split and bakingpy's boards) and includes all necessary files located at quantum/split_common
  322. * `CUSTOM_MATRIX`
  323. * Allows replacing the standard matrix scanning routine with a custom one.
  324. * `DEBOUNCE_TYPE`
  325. * Allows replacing the standard key debouncing routine with an alternative or custom one.
  326. * `WAIT_FOR_USB`
  327. * Forces the keyboard to wait for a USB connection to be established before it starts up
  328. * `NO_USB_STARTUP_CHECK`
  329. * Disables usb suspend check after keyboard startup. Usually the keyboard waits for the host to wake it up before any tasks are performed. This is useful for split keyboards as one half will not get a wakeup call but must send commands to the master.
  330. ## USB Endpoint Limitations
  331. In order to provide services over USB, QMK has to use USB endpoints.
  332. These are a finite resource: each microcontroller has only a certain number.
  333. This limits what features can be enabled together.
  334. If the available endpoints are exceeded, a build error is thrown.
  335. The following features can require separate endpoints:
  336. * `MOUSEKEY_ENABLE`
  337. * `EXTRAKEY_ENABLE`
  338. * `CONSOLE_ENABLE`
  339. * `NKRO_ENABLE`
  340. * `MIDI_ENABLE`
  341. * `RAW_ENABLE`
  342. * `VIRTSER_ENABLE`
  343. In order to improve utilisation of the endpoints, the HID features can be combined to use a single endpoint.
  344. By default, `MOUSEKEY`, `EXTRAKEY`, and `NKRO` are combined into a single endpoint.
  345. The base keyboard functionality can also be combined into the endpoint,
  346. by setting `KEYBOARD_SHARED_EP = yes`.
  347. This frees up one more endpoint,
  348. but it can prevent the keyboard working in some BIOSes,
  349. as they do not implement Boot Keyboard protocol switching.
  350. Combining the mouse also breaks Boot Mouse compatibility.
  351. The mouse can be uncombined by setting `MOUSE_SHARED_EP = no` if this functionality is required.