summaryrefslogtreecommitdiff
path: root/tmk_core/common
AgeCommit message (Collapse)Author
2021-03-01Add ability to toggle One Shot functionality (#4198)Drashna Jaelre
Co-authored-by: Nick Brassel <nick@tzarc.org> Co-authored-by: Ryan <fauxpark@gmail.com>
2021-02-28Refactor of USB code within split_common (#11890)Joel Challis
* Initial refactor of usb code within split_common * Add headers * Correct disable condition * Format * Align func name
2021-02-28ARM - Refactor SLEEP_LED to support more platforms (#8403)Joel Challis
* Initial refactor of ARM SLEEP_LED to enable more platforms * fix build issues * Disable SLEEP_LED for boards with no caps lock code * Enable GPT14 for boards with caps lock code and SLEEP_LED enabled * Enable GPT for boards with caps lock code and SLEEP_LED enabled
2021-02-28Overhaul bootmagic logic to have single entrypoint (#8532)Joel Challis
* Relocate bootmagic logic to have single entrypoint * Align init of layer state
2021-02-28Fixes #4072, #6214. Revision of #156 to clear before AS/TD. (#9941)Isaac Elenbaas
2021-02-26[BUG] Massdrop develop rgb fix (#12022)Nick Brassel
* Allow for disabling RGB_MATRIX on Massdrop boards. * Fixup init sequence. * Make some functions static as they've got very generic names.
2021-02-25Merge remote-tracking branch 'upstream/master' into developfauxpark
2021-02-25V-USB suspend refactor (#11891)Ryan
2021-02-20tmk_core/common/action.c: refactor for code size; merge multiple `case`s ↵Liyang HU
into one (#11943) * tmk_core/common/report.h: define `enum mouse_buttons` in terms of `#define MOUSE_BTN_MASK()` * tmk_core/common/action.c: collapse multiple `case KC_MS_BTN[1-8]:` into single `MOUSE_BTN_MASK(action.key.code - KC_MS_BTN1)` We all love tapping on our keyboards but this is taking the piss. This saves ~134 bytes on my ATmega32.
2021-02-17Format code according to conventions (#11936)github-actions[bot]
Co-authored-by: QMK Bot <hello@qmk.fm>
2021-02-17Fix compilation error for `tap_code_delay()` (#11938)Ryan
2021-02-17Add `tap_code_delay(code, delay)` (#11913)Ryan
Co-authored-by: Drashna Jaelre <drashna@live.com>
2021-02-16Format code according to conventions (#11928)github-actions[bot]
Co-authored-by: QMK Bot <hello@qmk.fm>
2021-02-16Split transport mirror (#11046)XScorpion2
* Split transport mirror support * Updated RGB Matrix to respond to electrical events instead of key events * split matrix slave fix
2021-02-14Merge branch 'master' into developJoshua Diamond
2021-02-15Format code according to conventions (#11905)github-actions[bot]
Co-authored-by: QMK Bot <hello@qmk.fm>
2021-02-14Refactor platform logic within print.h (#11863)Joel Challis
* Remove GCC check from debug * Remove platform logic from common.mk * Refactor platform logic within print.h * restore debug.c format * headers * Rename function pointer type * review comments * Update tmk_core/common/printf.c Co-authored-by: Nick Brassel <nick@tzarc.org> * Format Co-authored-by: Nick Brassel <nick@tzarc.org>
2021-02-14Split gpio and atomic to platform (#11792)Joel Challis
2021-02-09Remove FAUXCLICKY feature (deprecated) (#11829)Drashna Jaelre
2021-02-07Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-02-07Migrate some tmk_core files to quantum (#11791)Joel Challis
* Migrate some tmk_core files to quantum * Fix build errors
2021-02-07[Bug] Fix media key missing upstroke event (#11162)Alexander Ulitin
[Bug] Pressing media key on a momentarily activated layer may leads to missing key up events.
2021-02-07Migrate mousekey to quantum (#11804)Joel Challis
2021-02-06Remove legacy print backward compatiblitly (#11805)Joel Challis
* Remove legacy print backward compatiblitly * Remove legacy print backward compatiblitly - core * revert comment changes
2021-02-05Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-02-05Manually run formatting job (#11797)Joel Challis
2021-02-03Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-02-03Fix DEBUG_MATRIX_SCAN_RATE on chibiOS when console is enabled (#11776)Drashna Jaelre
* Fix DEBUG_MATRIX_SCAN_RATE on chibiOS when console is enabled * update type in dprintf Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
2021-02-02Address wake from sleep instability (#11450)Joshua Diamond
* resolve race condition between suspend and wake in LUFA * avoid multiple calls to suspend_power_down() / suspend_wakeup_init() * Remove duplicate suspend_power_down_kb() call * pause on wakeup to wait for USB state to settle * need the repeated suspend_power_down() (that's where the sleep is) * more efficient implementation * fine tune the pause after sending wakeup * speculative chibios version of pause-after-wake * make wakeup delay configurable, and adjust value * better location for wakeup delay
2021-02-01Stop sounds when suspended (#11553)Joshua Diamond
* fix stopping audio on suspend vs. startup sound * trim firmware size * fix stuck audio on startup (ARM)
2021-01-28Merge remote-tracking branch 'upstream/master' into developNick Brassel
2021-01-28Add support for 8 buttons to mouse report (#10807)Drashna Jaelre
* Add support for 8 buttons to mouse report This includes support for 8 buttons in mousekeys. However, this does move the keys around due to the fact that the last mousekey keycode is already 0xFF, so any past that would not work with register_code and the like, breaking them for tap hold keys, encoders, and other features. * Update mouse key docs * Add changes based on feedback * Fix VUSB report size comment Because drashna red gud * Fix typo in action.c * Fix IS_MOUSE_BUTTON check * Change start range for mousekeys so that the end is 0xFF properly * condense mousekeys check
2021-01-28add get_matrix_scan_rate() to tmk_core/common/keyboard.c (#11489)Takeshi ISHII
2021-01-27UART driver refactor (#11637)Ryan
2021-01-21Keep track of encoder activity (#11595)Nick Brassel
* Keep track of encoder activity, provide API for either matrix/encoder. * Fixup build when no RGBLIGHT or Backlight enabled.
2021-01-20Merge remote-tracking branch 'upstream/master' into developNick Brassel
2021-01-19Fixup declaration for _kill, add other missing syscalls, populate errno. ↵Nick Brassel
(#11608)
2021-01-17`qmk cformat`Nick Brassel
2021-01-18Keep track of last matrix activity. (#11552)Nick Brassel
Co-authored-by: Dasky <daskygit@users.noreply.github.com> Co-authored-by: Dasky <daskygit@users.noreply.github.com>
2021-01-17Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-01-18Add syscall fallbacks to ChibiOS builds (#11573)Nick Brassel
* Add fallback syscalls to ChibiOS builds that are present but able to be overridden as appropriate. * Modified location to be ChibiOS-specific.
2021-01-15Revert "Keep track of last matrix activity (#10730)"Nick Brassel
This reverts commit 79d1db332477963555416d9fff82ecac4399bd52.
2021-01-13fix matrix_io_delay() timing in quantum/matrix.c (#9603)Takeshi ISHII
* fix matrix_io_delay() timing in quantum/matrix.c * Updated comments explaining the need for matrix_io_delay() in quantum/matrix.c * fix matrix_io_delay() timing in quantum/split_common/matrix.c * Update quantum/matrix.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update quantum/split_common/matrix.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update quantum/matrix.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update quantum/split_common/matrix.c Co-authored-by: Ryan <fauxpark@gmail.com> * add waitOutputPinValid() and wait_cpuclock() into quantum/quantum.h and tmk_core/common/wait.h * add matrix_output_select_delay() and matrix_output_unselect_delay() * fix quantum/matrix_common.c, tmk_core/common/matrix.h * fix tmk_core/common/wait.h * fix quantum/quantum.h, tmk_core/common/wait.h * waitOutputPinValid() rename to waitInputPinDelay() in quantum/quantum.h. * waitOutputPinValid() rename to waitInputPinDelay() in quantum/matrix_common.c * update tmk_core/common/wait.h * update comment in quantum/matrix.c, quantum/split_common/matrix.c * update quantum/quantum.h: Make more margin in the GPIO_INPUT_PIN_DELAY default value. Co-authored-by: Ryan <fauxpark@gmail.com>
2021-01-12Keep track of last matrix activity (#10730)Nick Brassel
* Allow recording of the last matrix activity time, to simplify implementation of display timeouts and the like. * Add requested changes from code review. * Simplify split matrix last changed.
2021-01-11Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-01-11Add support for shared EP on V-USB boards (#11103)Ryan
2021-01-11Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-01-11Lighting Layers should be disabled when suspended (#11442)Joshua Diamond
* Lighting Layers should be disabled when suspended * bugfixes
2021-01-10Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-01-10manually run formatting job (#11503)Joel Challis