summaryrefslogtreecommitdiffstats
path: root/tmk_core
Commit message (Collapse)AuthorAgeFilesLines
* Add missing LED Matrix suspend code to suspend.c (#12878)Drashna Jaelre2021-05-132-0/+15
| | | Co-authored-by: Ryan <fauxpark@gmail.com>
* Fix syntax error when compiling for ARM (#12866)Ryan2021-05-111-1/+1
|
* Fix another bin/qmk reference (#12856)Sergey Vlasov2021-05-101-1/+1
|
* Make Swap Hands use PROGMEM (#12284)Drashna Jaelre2021-05-092-2/+3
| | | | | | This converts the array that the Swap Hands feature uses to use PROGMEM, and to read from that array, as such. Since this array never changes at runtime, there is no reason to keep it in memory. Especially for AVR boards, as memory is a precious resource.
* Merge remote-tracking branch 'origin/master' into developQMK Bot2021-05-061-3/+20
|\
| * Add a handful of consumer/gendesk page usages (#12811)Ryan2021-05-061-3/+20
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-05-051-1/+3
|\|
| * Fix qmk flash on FreeBSD (#12085)Mateusz Piotrowski2021-05-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the USB device is connected, FreeBSD creates not one, but three device nodes in /dev, e.g.: /dev/ttyU0, /dev/ttyU0.init, and /dev/ttyU0.lock. As a result, this leads to the USB variable containing 3 paths (and therefore, whitespace) and messages like this one: Device /dev/ttyU0 /dev/ttyU0.init /dev/ttyU0.lock has appeared; assuming it is the controller. This changes fixes the use of the -z flag of "[" (see test(1)). Also, it removes undesired paths from the USB variable, leaving only one path there (i.e., "/dev/ttyU0").
* | [CI] Format code according to conventions (#12731)github-actions[bot]2021-04-292-6/+6
| | | | | | Co-authored-by: QMK Bot <hello@qmk.fm>
* | Change RGB/LED Matrix to use a simple define for USB suspend (#12697)Drashna Jaelre2021-04-292-0/+13
| |
* | Format code according to conventions (#12682)github-actions[bot]2021-04-251-1/+2
| | | | | | Co-authored-by: QMK Bot <hello@qmk.fm>
* | eeprom driver: Refactor where eeprom driver initialisation (and EEPROM ↵Purdea Andrei2021-04-252-13/+12
| | | | | | | | emulation initialisation) occurs to make it non-target-specific. (#12671)
* | Add initial support for tinyuf2 bootloader (when hosted on F411 blackpill) ↵Nick Brassel2021-04-252-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#12600) * Add support for jumping to tinyuf2 bootloader. Adds blackpill UF2 example. * Update flashing.md * Update chconf.h * Update config.h * Update halconf.h * Update mcuconf.h
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-04-251-2/+2
|\|
| * Format code according to conventions (#12681)github-actions[bot]2021-04-251-2/+2
| | | | | | Co-authored-by: QMK Bot <hello@qmk.fm>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-04-253-21/+33
|\|
| * 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
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-04-201-1/+1
|\|
| * Fix for gcc10 teensy_lc eeprom build warning (#12587)Joel Challis2021-04-201-1/+1
| |
* | Apply the "NO_LIMITED_CONTROLLER_CONNECT" fix to atmega16u2 (#12482)Purdea Andrei2021-04-191-2/+2
| | | | | | Co-authored-by: Ryan <fauxpark@gmail.com>
* | LED Matrix: suspend code (#12509)Ryan2021-04-133-0/+12
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-04-101-11/+11
|\|
| * Format code according to conventions (#12540)github-actions[bot]2021-04-101-11/+11
| | | | | | Co-authored-by: QMK Bot <hello@qmk.fm>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-04-101-1/+13
|\|
| * 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 support for producing UF2-format binaries. (#12435)Nick Brassel2021-04-061-6/+25
| | | | | | | | | | * First stab at enabling builds of UF2-format binaries. * Add description on producing a UF2 file.
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-04-031-30/+35
|\|
| * Add WSL specific logic for avrdude device detection (#12392)Joel Challis2021-04-031-30/+35
| |
* | core: add pin_defs for MK66F18 (#12419)Michael Stapelberg2021-03-301-0/+81
| | | | | | This is in preparation for https://github.com/qmk/qmk_firmware/pull/10171
* | LED Matrix: Config functions (#12361)Ryan2021-03-281-0/+6
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-03-251-9/+8
|\|
| * Format code according to conventions (#12380)github-actions[bot]2021-03-251-9/+8
| | | | | | Co-authored-by: QMK Bot <hello@qmk.fm>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-03-251-2/+10
|\|
| * 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>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-03-252-8/+8
|\|
| * 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>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-03-251-1/+1
|\|
| * Move `API_SYSEX_MAX_SIZE` out of `config_common.h` (#12302)Ryan2021-03-251-1/+1
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-03-182-4/+4
|\|
| * [CI] Format code according to conventions (#12277)github-actions[bot]2021-03-182-4/+4
| | | | | | Co-authored-by: QMK Bot <hello@qmk.fm>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-03-182-20/+26
|\|
| * XT converter cleanup (#12264)Ryan2021-03-182-20/+26
| |
* | core: add support for MK66F18 (Teensy 3.6) micro controller (#12258)Michael Stapelberg2021-03-172-1/+5
| | | | | | This is in preparation for https://github.com/qmk/qmk_firmware/pull/10171
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-03-151-1/+1
|\|
| * Format code according to conventions (#12244)github-actions[bot]2021-03-151-1/+1
| | | | | | Co-authored-by: QMK Bot <hello@qmk.fm>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-03-151-0/+10
|\|
| * 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>
* | Move gpio wait logic to wait.h (#12067)Joel Challis2021-03-107-108/+235
| |
* | LED Matrix: decouple from Backlight (#12054)Ryan2021-03-081-0/+5
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-03-071-0/+3
|\|