summaryrefslogtreecommitdiffstats
path: root/tmk_core/common
Commit message (Collapse)AuthorAgeFilesLines
* Fix printf buffer overflow when cols>16 (#7998)Joel Challis2020-01-241-1/+2
|
* format code according to conventions [skip ci]QMK Bot2020-01-242-3/+2
|
* Add customisable EEPROM driver selection (#7274)Nick Brassel2020-01-246-21/+48
| | | | | | | | | - uprintf -> dprintf - Fix atsam "vendor" eeprom. - Bump Kinetis K20x to 64 bytes, too. - Rollback Kinetis to 32 bytes as partitioning can only be done once. Add warning about changing the value. - Change RAM-backed "fake" EEPROM implementations to match eeconfig's current usage. - Add 24LC128 by request.
* Run clang-format manually to fix recently changed files (#7934)Joel Challis2020-01-191-1/+1
| | | | | | | | * Run clang-format manually to fix recently changed files * Run clang-format manually to fix recently changed files - revert template files * Run clang-format manually to fix recently changed files - format off for ascii_to_keycode_lut
* Move rgblight and backlight task to common location (#7733)Joel Challis2020-01-191-0/+10
|
* Implement and document TAPPING_FORCE_HOLD_PER_KEY (#7859)ridingqwerty2020-01-171-2/+11
| | | | | | | | | | * Implement and document TAPPING_FORCE_HOLD_PER_KEY * Added "record" parameter to "get_tapping_force_hold" * Correct typo -- remove 'IGNORE_' from 'IGNORE_TAPPING_FORCE_HOLD_PER_KEY' Co-authored-by: GeorgeKoenig <35542036+GeorgeKoenig@users.noreply.github.com>
* Cleanup check for PERMISSIVE_HOLD (#7861)Drashna Jaelre2020-01-171-1/+1
| | | | | | | | * Fix bug in PERMISSIVE_HOLD check caused by #5009 (aka, me) * Remove check for per key
* Remove `KEYMAP_SECTION_ENABLE` (#7882)fauxpark2020-01-171-3/+0
|
* Add per-key IGNORE_MOD_TAP_INTERRUPT feature (#7838)zk-phi2020-01-101-2/+10
| | | | | | | | | | | * Implement IGNORE_MOD_TAP_INTERRUPT_PER_KEY - Add configurable option IGNORE_MOD_TAP_INTERRUPT_PER_KEY - Add function get_ignore_mod_tap_interrupt iff the option is enabled Unless IGNORE_MOD_TAP_INTERRUPT_PER_KEY is defined, this patch does not affect the resulting binary. * Add documentation for IGNORE_MOD_TAP_INTERRUPT_PER_KEY
* Move some common matrix code to a common location (#7699)Joel Challis2020-01-041-5/+2
| | | | | | | | | | * Move some common matrix code to a common location * Refactor some 'custom_matrix_helper' logic to use custom matrix lite * Fix build for kinesis/stapelberg - abuse of vpath was picking up matrix.c from core when custom matrix was enabled * Add validation for CUSTOM_MATRIX
* VIA Configurator Refactor (#7268)Wilba2020-01-032-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | * VIA Refactor * Remove old code * review changes * review changes * Fix cannonkeys/satisfaction75/prototype:via build * Add via.h to quantum.h * Move backlight init to after backlight config load * Merge branch 'master' into via_refactor_pr * Update user's rules.mk to new way of enabling VIA * Added id_switch_matrix_state * Review changes
* Fix typo in action.c (#7757)xyzz2020-01-021-1/+1
|
* Add central location for ChibiOS defines (#7542)Joel Challis2019-12-211-0/+24
| | | | | | | | | | * Add central location for chibios defines * Add central location for chibios defines - actually add files this time.... * Add Copyright header * Update include order to resolve i2cv1 build errors
* [Core] Optimize matrix processing (#7621)Drashna Jaelre2019-12-161-4/+5
| | | Backport of tmk/tmk_keyboard@ad6059adc7039a54d1db75da783068654906a679
* Fix FORCE_NKRO handling (#7601)Joel Challis2019-12-111-0/+1
|
* Remove mbed files (#7605)Joel Challis2019-12-117-131/+1
| | | | | | | | * Remove mbed files * Remove mbed files - fix comment * Remove mbed logic blocks
* Add 4-character aliases for sendstring keycodes (#7409)fauxpark2019-11-221-1/+0
| | | | | | | | * Add 4-character aliases for sendstring keycodes * Remove pointless mail keycode redefinition * Forgot brightness keycodes
* Run clang-format manually to fix recently changed fileszvecr2019-11-174-9/+10
|
* Fix LAYER_STATE_8BIT compile issues (#7304)Joel Challis2019-11-083-3/+3
|
* Support RGBLIGHT_SLEEP when ChibiOS boards suspend (#7280)Jonathan Rascher2019-11-081-0/+26
| | | | Copypasta from the AVR suspend implementation with a Teensy-specific hack removed
* New and improved lock LED callbacks (#7215)fauxpark2019-11-063-0/+21
| | | | | | | | | | * New and improved lock LED callbacks * Include stdbool * Update documentation * Use full function signatures and add keyboard-level example
* Move tmk_core/common/backlight to quantum/backlight (#6710)Joel Challis2019-10-177-260/+19
| | | | | | | | | | | | * Move tmk_core/common/backlight to quantum/backlight * Add guards to backlight inclusion * Add guards to backlight inclusion * Update backlight guards on clueboard/60 * Use full paths to avoid vpath issues
* Fix bug in `do_code16()` (#6935)fauxpark2019-10-162-4/+28
| | | | | | * Fix bug in `do_code16()` * Remove qk_ mods functions
* Add binary support to tinyprintf (#7024)Joel Challis2019-10-151-0/+9
|
* Port DEBUG_MATRIX_SCAN_RATE to core (#7029)Joel Challis2019-10-151-0/+24
| | | | | | | | | | * Port DEBUG_MATRIX_SCAN_RATE to core * Remove duplicate DEBUG_MATRIX_SCAN_RATE implementations * Remove duplicate DEBUG_MATRIX_SCAN_RATE implementation from handwired/xealous * Add console logic from ergodox_ez
* ARM - Initial backlight support (#6487)Joel Challis2019-10-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move AVR backlight to own file, add borrowed ARM implementation * Tiny fix for backlight custom logic * Remove duplicate board from rebase * Fix f303 onekey example * clang-format * clang-format * Remove backlight keymap debug * Initial pass of ARM backlight docs * Initial pass of ARM backlight docs - resolve todos * fix rules validation logic * Add f072 warning * Add f072 warning * tidy up breathing in backlight keymap * tidy up breathing in backlight keymap * add missing break to backlight keymap
* Wrap util.h functions in `extern "C"` (#6762)fauxpark2019-10-041-0/+8
|
* ARM split - Add support for dfu-util EE_HANDS flashing (#6543)Joel Challis2019-09-271-0/+10
| | | | | | | | | | | | * Initial stab at some fake dfu-util-split-left behaviour * Apply suggestions from code review Co-Authored-By: fauxpark <fauxpark@gmail.com> * Clang format fixes * Fake eeprom init for both left and right hand
* ARM split - Add bootmagic/magic keycodes for setting handedness (#6545)Joel Challis2019-09-244-2/+34
| | | | | | | | | | * Add docs on bootmagic/magic keycodes for setting handedness * Clang format fixes * Maintain backwards compatibility * Maintain backwards compatibility
* Fixing wrapping math logic for timer_expired functions (#6746)XScorpion22019-09-231-2/+2
|
* Banish some more magic numbers (#6662)fauxpark2019-09-072-19/+13
|
* clang-format changesskullY2019-08-3084-4324/+4036
|
* Have clang ignore the code in bootloader_size.cskullY2019-08-301-1/+2
|
* Decrement EECONFIG magic numberDrashna Jaelre2019-08-271-1/+3
| | | | | This will manually wipe the EEPROM. This is a hacky solution for when new ranges are added or moved around. A better (more complicated) solution would be to zero out everything, not just known ranges. But for now, this is a hacky solution that will work.
* Added OLED Display autoscroll during periods of OLED data inactivity (#6546)XScorpion22019-08-251-0/+11
| | | | | | | | * Added OLED Display autoscroll during periods of OLED data inactivity. * Fixing compile errors * Feedback from review
* Additional changes for Layer State typedef compatibility (#5906)Drashna Jaelre2019-08-211-1/+4
| | | | | | | | | | | | | | | | * Additional changes for Layer State typedef compatibility * Replace biton32 with get_highest_layer in docs * Change additional layer structure code * Fix uGFX reference issue * Remove dynamic_keymap check * Where did all these extra spaces come from Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Added keycodes for swapping and unswapping the Control and OS keys (#6110)Stephen Wanhella2019-08-213-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add MAGIC_SWAP_CONTROL_LGUI and MAGIC_UNSWAP_CONTROL_LGUI keycodes Key codes to swap and unswap the control and windows/cmd keys * Fix issues with pull request #6110 Renamed swap/unswap lctl and lgui key codes, added key codes to swap/unswap rctl and rgui, and moved new bool inside keycode_config.h struct to the end * Move new keycodes to the end of the enum (#6110) * add cases for swapped control and OS keys to mod_config (#6110) * Add new keycodes to feature_bootmagic.md (#6110) * Add R+L swap codes to keep in parity with AG_* codes * Extend Magic range check to include new magic codes * Update audio docs * Combine 2 byte ranges into 1 word for EECONFG Fix names for Keymap config EEPROM * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update docs/feature_bootmagic.md Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
* Remove superfluous JTAG disable code (#6445)fauxpark2019-08-202-4/+9
| | | | | | | | | | | | | | | | | | * Remove superfluous JTAG disable code * 32A has differently named register * Accidentally some operators * 32A also has different JTAG pins * Wrap disable_jtag() in an ifndef * Document this new define * Rename the define, it conflicts with a LUFA thing Also, move the ifndef wrapping to the call in keyboard_setup()
* Fix LT() crashing some ARM keyboards (#6529)Joel Challis2019-08-131-2/+2
|
* Extend allowed range of tappable keycodes to include modifiers (#5809)fauxpark2019-08-082-16/+25
| | | | | | | | | | | | * Extend allowed range of tappable keycodes to include modifiers * Get rid of the magic numbers altogether * Remove some more magic numbers * Extract LM() functionality from ACT_LAYER_TAP * Use ACTION() macro everywhere
* Add support for TAP_CODE_DELAY to Hold-Tap keys (#5400)Drashna Jaelre2019-07-221-7/+12
| | | | | | * Add support for TAP_CODE_DELAY to Hold-Tap keys * Better handling for tap code delay and caps version
* Update IS_COMMAND definitions to use MOD_MASK_SHIFT (#6348)Konstantin Đorđević2019-07-201-1/+1
| | | | | | | | | | | | * Update IS_COMMAND definition in templates to use MOD_MASK_SHIFT * Update IS_COMMAND in docs * Update IS_COMMAND default definition in tmk_core * Update table in Command docs based on suggestion Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Extend maximum number of backlight levels to 31 (#6351)fauxpark2019-07-161-3/+4
|
* Make Caps Lock delay more reasonable (#6199)Drashna Jaelre2019-07-161-1/+1
| | | | | | | | | | | | | | * Make Caps Lock delay more reasonable * Update documentation * Update docs/config_options.md Co-Authored-By: Konstantin Đorđević <vomindoraan@gmail.com> * Update docs/config_options.md Co-Authored-By: Konstantin Đorđević <vomindoraan@gmail.com>
* Store backlight breathing state in EEPROM (#6105)fauxpark2019-07-162-3/+71
| | | | | | | | | | | | * Store backlight breathing state in EEPROM * Reduce backlight_config.level from 6 bits to 4 (max 15 "on" levels) * Error out if BACKLIGHT_LEVELS is > 15 * Remove mention of default backlight pin in rules.mk template * Remove pointless comment
* Adding rgb matrix speed into eeprom storage. (#5965)XScorpion22019-07-162-4/+5
| | | | | | | | | | | | | | | | | Zeroing out spd in eeconfig_init_quantum Switched to block read & update Update tmk_core/common/eeconfig.h Co-Authored-By: Drashna Jaelre <drashna@live.com> Fixing init compile error Update eeconfig.c Dead / Missing API cleanup alignment
* Usbasploader bootloader option addition (#6304)yiancar2019-07-151-34/+43
| | | | | | | | | | | | | | | | | | | | | | * Added USBasp bootloader option for USBasploader * author comment * ifdef fix :) * Add usbasp target * Update docs/flashing.md Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update docs/flashing.md Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update docs/flashing.md Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Fix TO() and DF() calling layer_state_set_[kb,user] twice (#6003)fauxpark2019-05-291-2/+2
|
* Fix bit count calculation for iterating layersRyan Caltabiano2019-05-181-1/+1
|
* Typedef'ed layer_state_t to uint32_t (#3637)Alex Ong2019-05-175-40/+48
| | | | | | | | | | | | | | | | | | | | * Typedef'ed layer_state_t to uint32_t. This enables future work with layer_state_t to uint8_t for optimization purposes. * Removed accidental xeal60 commit * Revert to egyptian brackets, added sizeof(layer_state_t) so when layer_state_t is redefined it will automagically work. * Add additional typedefs * Add checks for setting layer state * Update tmk_core/common/action_layer.h Co-Authored-By: alex-ong <the.onga@gmail.com> * Revert commit.