summaryrefslogtreecommitdiffstats
path: root/tmk_core/common
Commit message (Collapse)AuthorAgeFilesLines
* Add sync_timer support over serial_link (i.e. Ergodox Infinity) (#12845)Joakim Tufvegren2021-06-192-2/+2
|
* Extensible split data sync (#11930)Nick Brassel2021-06-181-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | * Extensible split data sync capability through transactions. - Split common transport has been split up between the transport layer and data layer. - Split "transactions" model used, with convergence between I2C and serial data definitions. - Slave matrix "generation count" is used to determine if the full slave matrix needs to be retrieved. - Encoders get the same "generation count" treatment. - All other blocks of data are synchronised when a change is detected. - All transmissions have a globally-configurable deadline before a transmission is forced (`FORCED_SYNC_THROTTLE_MS`, default 100ms). - Added atomicity for all core-synced data, preventing partial updates - Added retries to AVR i2c_master's i2c_start, to minimise the number of failed transactions when interrupts are disabled on the slave due to atomicity checks. - Some keyboards have had slight modifications made in order to ensure that they still build due to firmware size restrictions. * Fixup LED_MATRIX compile. * Parameterise ERROR_DISCONNECT_COUNT.
* Add CRC8 calculation subsystem to quantum (#12641)Stefan Kerkmann2021-06-181-0/+6
| | | | | | | | | | | * Intended usage is data validation in split transport code. * Default space efficient algorithm. * Opt-in fast table based algorithmn with #define CRC8_USE_TABLE switch. * Define switches for size and speed optimized versions, the default is size optimized by using uint_least8_t as datatype for calculations. * #define CRC8_OPTIMIZE_SPEED uses uint_fast8_t as datatype for calculations, this only affects 32-bit Archs like ARM and RISC-V. * Placeholder crc_init() function for hardware backed crc calculation, not implemented yet.
* core: make RESET key work with Teensy 4.x (#13076)Michael Stapelberg2021-06-151-1/+1
| | | related to https://github.com/kinx-project/kint/issues/5
* Add ST7565 LCD driver (#13089)Ryan2021-06-101-0/+18
| | | Co-authored-by: Joakim Tufvegren <jocke@barbanet.com>
* Avoid 8-bit timer overflows in debounce algorithms (#12240)Simon Arlott2021-06-094-4/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add fast_timer_t that is 16-bit or 32-bit based on architecture A 16-bit timer will overflow sooner but be faster to compare on AVR. * Avoid 8-bit timer overflows in debounce algorithms Count down remaining elapsed time instead of trying to do 8-bit timer comparisons. Add a "none" implementation that is automatically used if DEBOUNCE is 0 otherwise it will break the _pk/_pr count down. * Avoid unnecessary polling of the entire matrix in sym_eager_pk The matrix only needs to be updated when a debounce timer expires. * Avoid unnecessary polling of the entire matrix in sym_eager_pr The matrix only needs to be updated when a debounce timer expires. The use of the "needed_update" variable is trying to do what "matrix_need_update" was added to fix but didn't work because it only applied when all keys finished debouncing. * Fix sym_defer_g timing inconsistency compared to other debounce algorithms DEBOUNCE=5 should process the key after 5ms, not 6ms * Add debounce tests
* Add readPort() and some API to 'tmk_core/common/*/gpio.h' (#12754)Takeshi ISHII2021-06-072-0/+31
| | | | | | | | | | | | | | | | * add readPort() and some API to 'tmk_core/common/*/gpio.h' The following macros have been added to gpio.h. * readPort(port) * setPortBitInput(port, bit) * setPortBitInputHigh(port, bit) * setPortBitOutput(port, bit) * writePortBitLow(port, bit) * writePortBitHigh(port, bit) * add data type 'port_data_t' into gpio.h * rename qmk_pin to pin
* run: qmk cformat --core-onlyJames Young2021-05-294-51/+44
|
* Backlight: add defines for default level and breathing state (#12560)Ryan2021-05-262-16/+0
|
* Fixup housekeeping from being invoked twice per loop. (#12933)Nick Brassel2021-05-182-5/+12
|
* Add missing LED Matrix suspend code to suspend.c (#12878)Drashna Jaelre2021-05-132-0/+15
| | | Co-authored-by: Ryan <fauxpark@gmail.com>
* 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
| |
* | [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-251-0/+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-251-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#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-201-1/+1
|\|
| * Fix for gcc10 teensy_lc eeprom build warning (#12587)Joel Challis2021-04-201-1/+1
| |
* | LED Matrix: suspend code (#12509)Ryan2021-04-133-0/+12
| |
* | 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>
* | 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
| |
* | Split RGB Matrix (#11055)XScorpion22021-03-034-5/+18
| | | | | | | | | | * Split RGB Matrix * Suspend State sync for rgb matrix
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-03-021-1/+1
|\|
| * Set default for USB_SUSPEND_WAKEUP_DELAY to 0/disabled (#12081)Drashna Jaelre2021-03-021-1/+1
| |
* | Add ability to toggle One Shot functionality (#4198)Drashna Jaelre2021-03-012-9/+54
| | | | | | | | Co-authored-by: Nick Brassel <nick@tzarc.org> Co-authored-by: Ryan <fauxpark@gmail.com>
* | Refactor of USB code within split_common (#11890)Joel Challis2021-02-283-0/+53
| | | | | | | | | | | | | | | | | | | | | | * Initial refactor of usb code within split_common * Add headers * Correct disable condition * Format * Align func name
* | ARM - Refactor SLEEP_LED to support more platforms (#8403)Joel Challis2021-02-281-55/+33
| | | | | | | | | | | | | | | | | | | | | | * 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
* | Overhaul bootmagic logic to have single entrypoint (#8532)Joel Challis2021-02-286-366/+0
|/ | | | | * Relocate bootmagic logic to have single entrypoint * Align init of layer state
* Fixes #4072, #6214. Revision of #156 to clear before AS/TD. (#9941)Isaac Elenbaas2021-02-281-5/+5
|
* [BUG] Massdrop develop rgb fix (#12022)Nick Brassel2021-02-261-3/+0
| | | | | | | * 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-253-53/+66
|\
| * V-USB suspend refactor (#11891)Ryan2021-02-253-55/+67
| |
* | 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.
* | Format code according to conventions (#11936)github-actions[bot]2021-02-171-3/+1
| | | | | | Co-authored-by: QMK Bot <hello@qmk.fm>