summaryrefslogtreecommitdiffstats
path: root/tmk_core
Commit message (Collapse)AuthorAgeFilesLines
* Format code according to conventions (#12681)github-actions[bot]2021-04-251-2/+2
| | | Co-authored-by: QMK Bot <hello@qmk.fm>
* Fix how USB queue overflow is handled in chibios. (#12576)Purdea Andrei2021-04-253-21/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix how USB queue overflow is handled in chibios. This commit reverts PR 12472 (commit c823fe2d3f23ed090e36ce39beed4c448298bd2f), and it implements the original intent of the commit in a better way. The original intent of the above mentioned commit was to not deadlock the keyboard when console is enabled, and hid_listen is not started. The above mentioned commit had a few drawbacks: 1) When a lot of data was printed to the console, the queue would get full, and drop data, even if hid_listen was running. (For example having matrix debug enabled just didn't work right at all) 2) I believe the function in which this was implemented is used by all other USB endpoints, so with the above change, overflow, and data loss could happen in other important functions of QMK as well. This commit implements deadlock prevention in a slightly similar way to how it's done on AVR. There is an additional static local variable, that memorizes whether the console has timeouted before. If we are in the timeouted=false state, then we send the character normally with a 5ms timeout. If it does time out, then hid_listen is likely not running, and future characters should not be sent with a timeout, but those characters should still be sent if there is space in the queue. The difference between the AVR implementation and this one is that the AVR implementation checks the queue state directly, but this implementation instead attempts to write the character with a zero timeout. If it fails, then we remain in the timeouted=true state, if it succeeds, then hid_listen started removing data from the queue, so we can go out of the timeouted=true state. * Added comment explaining the timeouted logic to console flow control. * Console flow control: refactor chibios flowcontrol code to make it more readable, and rename the timeouted variable to timed_out on both chibios and lufa. Changed comments to says timed_out is an approximation of listener_disconnected, to make it clear that it's not the same thing * fix typo
* Fix for gcc10 teensy_lc eeprom build warning (#12587)Joel Challis2021-04-201-1/+1
|
* Format code according to conventions (#12540)github-actions[bot]2021-04-101-11/+11
| | | Co-authored-by: QMK Bot <hello@qmk.fm>
* ChibiOS USB driver: prevent deadlock with CONSOLE_ENABLE = yes (#12472)Michael Stapelberg2021-04-101-1/+13
| | | | | | | | | Before this commit, attaching an ARM-based (i.e. ChibiOS-based) keyboard that uses CONSOLE_ENABLE = yes and produces debug messages would deadlock the keyboard unless one was running hid_listen. With this commit, dead-locking writes to the queue are detected and prevented. fixes #5631
* Add WSL specific logic for avrdude device detection (#12392)Joel Challis2021-04-031-30/+35
|
* Format code according to conventions (#12380)github-actions[bot]2021-03-251-9/+8
| | | Co-authored-by: QMK Bot <hello@qmk.fm>
* fix permissive hold when both PERMISSIVE_HOLD_PER_KEY and ↵purple-rw2021-03-251-2/+10
| | | | | TAPPING_TERM_PER_KEY are defined (#12125) Co-authored-by: checyr <32964049+checyr@users.noreply.github.com>
* Fix USER_PRINT on avr/atsam (#12269)Joel Challis2021-03-252-8/+8
| | | | | | | | | * Fix USER_PRINT on avr/atsam * Update tmk_core/common/arm_atsam/_print.h Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
* Move `API_SYSEX_MAX_SIZE` out of `config_common.h` (#12302)Ryan2021-03-251-1/+1
|
* [CI] Format code according to conventions (#12277)github-actions[bot]2021-03-182-4/+4
| | | Co-authored-by: QMK Bot <hello@qmk.fm>
* XT converter cleanup (#12264)Ryan2021-03-182-20/+26
|
* Format code according to conventions (#12244)github-actions[bot]2021-03-151-1/+1
| | | Co-authored-by: QMK Bot <hello@qmk.fm>
* Fix keycode mappings for via and ensure they don't change within protocol ↵xyzz2021-03-151-0/+10
| | | | | | | | | | | | | | | (#12130) * Fix keycode mappings for via and ensure they don't change within protocol * Update keycodes * Fix broken keyboards * added the missing keycodes found in via * Remove invalid keycodes Co-authored-by: David Hoelscher <infinityis@users.noreply.github.com>
* Require `BOOTLOADER = qmk-dfu` for `:bootloader` target (#12136)Ryan2021-03-071-0/+3
|
* Set default for USB_SUSPEND_WAKEUP_DELAY to 0/disabled (#12081)Drashna Jaelre2021-03-021-1/+1
|
* Migrate make_dfu_header to CLI (#12061)Joel Challis2021-02-282-15/+1
| | | | | | | | | | | | | * Migrate make_dfu_header to CLI * lint fixes * Update lib/python/qmk/cli/generate/dfu_header.py Co-authored-by: Ryan <fauxpark@gmail.com> * Rename object Co-authored-by: Ryan <fauxpark@gmail.com>
* Modified tmk_core/rules.mk to avoid linking errors (#10728)Fabián González Martín2021-02-281-0/+5
| | | | | | | * Modified tmk_core/rules.mk to avoid linking errors Added -fcommon flag to avoid linking errors due to multiple variable definitions. Though this is neither a definitive nor good solution, proper changes and use of extern keyword to avoid those multiple definitions must be made * Comment updated
* Fixes #4072, #6214. Revision of #156 to clear before AS/TD. (#9941)Isaac Elenbaas2021-02-281-5/+5
|
* Format code according to conventions (#12046)github-actions[bot]2021-02-271-2/+2
| | | Co-authored-by: QMK Bot <hello@qmk.fm>
* Fix build for attiny85-based boards. (#12044)Nick Brassel2021-02-281-0/+2
|
* Format code according to conventions (#12024)github-actions[bot]2021-02-262-42/+42
| | | Co-authored-by: QMK Bot <hello@qmk.fm>
* [BUG] Massdrop develop rgb fix (#12022)Nick Brassel2021-02-263-8/+9
| | | | | | | * Allow for disabling RGB_MATRIX on Massdrop boards. * Fixup init sequence. * Make some functions static as they've got very generic names.
* Merge remote-tracking branch 'upstream/master' into developfauxpark2021-02-255-70/+106
|\
| * V-USB suspend refactor (#11891)Ryan2021-02-255-72/+107
| |
* | tmk_core/common/action.c: refactor for code size; merge multiple `case`s ↵Liyang HU2021-02-202-72/+21
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Output selection: Remove "USB and BT" option (#11940)Ryan2021-02-202-30/+5
| |
* | Format code according to conventions (#11936)github-actions[bot]2021-02-171-3/+1
| | | | | | Co-authored-by: QMK Bot <hello@qmk.fm>
* | Fix compilation error for `tap_code_delay()` (#11938)Ryan2021-02-171-1/+3
| |
* | Add `tap_code_delay(code, delay)` (#11913)Ryan2021-02-172-8/+14
| | | | | | Co-authored-by: Drashna Jaelre <drashna@live.com>
* | Format code according to conventions (#11928)github-actions[bot]2021-02-161-1/+1
| | | | | | Co-authored-by: QMK Bot <hello@qmk.fm>
* | Split transport mirror (#11046)XScorpion22021-02-162-20/+44
| | | | | | | | | | | | | | * Split transport mirror support * Updated RGB Matrix to respond to electrical events instead of key events * split matrix slave fix
* | Merge branch 'master' into developJoshua Diamond2021-02-149-0/+574
|\|
| * Split gpio and atomic to platform (#11792)Joel Challis2021-02-149-0/+574
| |
* | Format code according to conventions (#11905)github-actions[bot]2021-02-153-6/+5
| | | | | | Co-authored-by: QMK Bot <hello@qmk.fm>
* | Refactor platform logic within print.h (#11863)Joel Challis2021-02-1417-280/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* | Remove FAUXCLICKY feature (deprecated) (#11829)Drashna Jaelre2021-02-092-20/+0
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-02-079-1304/+1
|\|
| * Migrate some tmk_core files to quantum (#11791)Joel Challis2021-02-079-1301/+1
| | | | | | | | | | * Migrate some tmk_core files to quantum * Fix build errors
* | [Bug] Fix media key missing upstroke event (#11162)Alexander Ulitin2021-02-071-4/+4
| | | | | | | | [Bug] Pressing media key on a momentarily activated layer may leads to missing key up events.
* | Migrate mousekey to quantum (#11804)Joel Challis2021-02-073-671/+0
| |
* | Remove legacy print backward compatiblitly (#11805)Joel Challis2021-02-065-22/+12
| | | | | | | | | | | | | | * Remove legacy print backward compatiblitly * Remove legacy print backward compatiblitly - core * revert comment changes
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-02-061-4/+4
|\|
| * Manual formatting fix for serial_uart.c (#11806)Ryan2021-02-061-4/+4
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-02-052-1/+26
|\|
| * Serial refactor (#11521)Ryan2021-02-062-1/+26
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-02-051-7/+5
|\|
| * Manually run formatting job (#11797)Joel Challis2021-02-051-7/+5
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-02-031-1/+1
|\|
| * Fix DEBUG_MATRIX_SCAN_RATE on chibiOS when console is enabled (#11776)Drashna Jaelre2021-02-031-1/+1
| | | | | | | | | | | | | | | | | | * 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>