summaryrefslogtreecommitdiff
path: root/tmk_core/common
AgeCommit message (Collapse)Author
2021-06-18Extensible split data sync (#11930)Nick Brassel
* 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.
2021-06-18Add CRC8 calculation subsystem to quantum (#12641)Stefan Kerkmann
* 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.
2021-06-15core: make RESET key work with Teensy 4.x (#13076)Michael Stapelberg
related to https://github.com/kinx-project/kint/issues/5
2021-06-10Add ST7565 LCD driver (#13089)Ryan
Co-authored-by: Joakim Tufvegren <jocke@barbanet.com>
2021-06-09Avoid 8-bit timer overflows in debounce algorithms (#12240)Simon Arlott
* 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
2021-06-07Add readPort() and some API to 'tmk_core/common/*/gpio.h' (#12754)Takeshi ISHII
* 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
2021-05-29run: qmk cformat --core-onlyJames Young
2021-05-26Backlight: add defines for default level and breathing state (#12560)Ryan
2021-05-18Fixup housekeeping from being invoked twice per loop. (#12933)Nick Brassel
2021-05-13Add missing LED Matrix suspend code to suspend.c (#12878)Drashna Jaelre
Co-authored-by: Ryan <fauxpark@gmail.com>
2021-05-09Make Swap Hands use PROGMEM (#12284)Drashna Jaelre
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.
2021-05-06Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-05-06Add a handful of consumer/gendesk page usages (#12811)Ryan
2021-04-29[CI] Format code according to conventions (#12731)github-actions[bot]
Co-authored-by: QMK Bot <hello@qmk.fm>
2021-04-29Change RGB/LED Matrix to use a simple define for USB suspend (#12697)Drashna Jaelre
2021-04-25Format code according to conventions (#12682)github-actions[bot]
Co-authored-by: QMK Bot <hello@qmk.fm>
2021-04-25eeprom driver: Refactor where eeprom driver initialisation (and EEPROM ↵Purdea Andrei
emulation initialisation) occurs to make it non-target-specific. (#12671)
2021-04-25Add initial support for tinyuf2 bootloader (when hosted on F411 blackpill) ↵Nick Brassel
(#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
2021-04-20Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-04-20Fix for gcc10 teensy_lc eeprom build warning (#12587)Joel Challis
2021-04-13LED Matrix: suspend code (#12509)Ryan
2021-03-30core: add pin_defs for MK66F18 (#12419)Michael Stapelberg
This is in preparation for https://github.com/qmk/qmk_firmware/pull/10171
2021-03-28LED Matrix: Config functions (#12361)Ryan
2021-03-25Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-03-25Format code according to conventions (#12380)github-actions[bot]
Co-authored-by: QMK Bot <hello@qmk.fm>
2021-03-25Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-03-25fix permissive hold when both PERMISSIVE_HOLD_PER_KEY and ↵purple-rw
TAPPING_TERM_PER_KEY are defined (#12125) Co-authored-by: checyr <32964049+checyr@users.noreply.github.com>
2021-03-25Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-03-25Fix USER_PRINT on avr/atsam (#12269)Joel Challis
* 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>
2021-03-17core: add support for MK66F18 (Teensy 3.6) micro controller (#12258)Michael Stapelberg
This is in preparation for https://github.com/qmk/qmk_firmware/pull/10171
2021-03-15Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-03-15Format code according to conventions (#12244)github-actions[bot]
Co-authored-by: QMK Bot <hello@qmk.fm>
2021-03-15Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-03-15Fix keycode mappings for via and ensure they don't change within protocol ↵xyzz
(#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>
2021-03-10Move gpio wait logic to wait.h (#12067)Joel Challis
2021-03-08LED Matrix: decouple from Backlight (#12054)Ryan
2021-03-03Split RGB Matrix (#11055)XScorpion2
* Split RGB Matrix * Suspend State sync for rgb matrix
2021-03-02Merge remote-tracking branch 'origin/master' into developQMK Bot
2021-03-02Set default for USB_SUSPEND_WAKEUP_DELAY to 0/disabled (#12081)Drashna Jaelre
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