87 Commits (102f22f7e99d87989cd95e10370863c3f96ba7e2)

Author SHA1 Message Date
Ruslan Sayfutdinov 85ee55ff3b
Detect host OS based on USB fingerprint (#18463)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Nick Brassel <nick@tzarc.org>
3 years ago
Nick Brassel cf3c26533c
Fixup EFL and F4's sector selection. (#19221) 3 years ago
Nick Brassel bebfdad795
NVRAM refactor, phase 1. (#18969)
* Rename `eeprom_stm32` to `eeprom_legacy_emulated_flash`.

* Rename `flash_stm32` to `legacy_flash_ops`.

* Rename `eeprom_teensy` to `eeprom_kinetis_flexram`.
3 years ago
Nick Brassel 092228571c
Move EFL wear-leveling driver to be default for F1, F3, F4, L4, G4, WB32, GD32V. (#19020) 3 years ago
Nick Brassel 5233c69bc6
Remove thermal printer. (#18959) 3 years ago
Ryan 7ebc396876
compiler.txt: ensure file exists before comparison (#18921) 3 years ago
Joel Challis 64ca14feea
Fix garbled test output (#18822)
* Fix garbled test output

* Correct SRC listing
3 years ago
Joel Challis 575db6949a
Generalise CTPC logic from common_features (#18803) 3 years ago
Ryan af678521c1
Remove quantum/audio from global VPATH (#18753) 3 years ago
Joel Challis aa8e0a3e7a
Build correctly when out of tree (#18775) 3 years ago
jpe230 86938fd958
Allow QK_MAKE to work with converters (#18637) 3 years ago
QMK Bot 86ce1d4b04 Merge remote-tracking branch 'origin/master' into develop 3 years ago
George Rodrigues 959f4cbb62
docs: some typos (#18582)
probably hacktoberism
3 years ago
Ryan c4ff8192c2
Reverse keymap search order (#18449) 3 years ago
QMK Bot a50b18c9aa Merge remote-tracking branch 'origin/master' into develop 3 years ago
Nick Brassel 168b69654f
Explicitly specify path to RP2040 wear_leveling config file. (#18541) 3 years ago
Ryan f80058d96e
Start Bluetooth API (#18366) 3 years ago
Nick Brassel cbbb45c13f
Start moving towards introspection-based data retrieval (#18441) 3 years ago
Alabastard-64 7c1797f52f
[Core] Pointing Device Automatic Mouse Layer (#17962)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Stefan Kerkmann <karlk90@pm.me>
3 years ago
Joel Challis 20f142a772
Tidy up LAYOUT macro generation (#18262) 3 years ago
Drashna Jaelre fb29c0ae53
[Core] Add getreuer's Autocorrect feature to core (#15699)
Co-authored-by: Albert Y <76888457+filterpaper@users.noreply.github.com>
3 years ago
Ryan 3d667f0970
Refactor Unicode feature (#18333) 3 years ago
Ryan f7d2b001bc
Move Bluetooth-related function calls up to host/keyboard level (#18274)
* Move Bluetooth-related function calls up to host/keyboard level

* Remove pointless set_output() call

* Move bluetooth (rn42) init to end of keyboard_init()

* Enable SPI/UART for ChibiOS targets

* Some more slight tweaks
3 years ago
Ryan bb6f028833
Move bootloader.mk to platforms (#18228) 3 years ago
Marek Kraus 0237ff0c62
[Core] Rework PS/2 driver selection (#17892)
* [Core] Rework PS/2 driver selection

Enabling and selecting PS/2 driver was using old approach,
so it was reworked to current approach, inspired by Serial
and WS2812 driver selections.

* [Keyboard] Update keyboards using PS/2 to use new PS/2 driver selection

* [Docs] Update PS/2 documentation to use new PS/2 driver selection

* Fix indentation

* [Core] Add PS2 to data driver

* Fix oversight in property name

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Add PS/2 pins to data driven mappings

Co-authored-by: Drashna Jaelre <drashna@live.com>
3 years ago
Ryan d18698a8e8
Remove deprecated USBasp and bootloadHID bootloader types (#18195) 3 years ago
Joel Challis 43fd647130
Add eeprom defaults for tinyuf2 bootloader (#18042) 3 years ago
Joel Challis 0fcebdcdf1
Swap F4x1 default board files away from blackpill (#17522) 3 years ago
Drashna Jaelre 4da3482872
Fix Emulated EEPROM issue with F466 (#18039) 3 years ago
Mega Mind fce99f3875
[Controller] Added board config for custom controller STeMCell (#16287)
Co-authored-by: Mariappan Ramasamy <947300+Mariappan@users.noreply.github.com>
Co-authored-by: Mariappan Ramasamy <maari@basis-ai.com>
Co-authored-by: Sadek Baroudi <sadekbaroudi@gmail.com>
3 years ago
Joshua Diamond 2f87abd4ef
Revert "[Core] Re-order user space rules inclusion (#17459)" (#18032) 3 years ago
Albert Y 69fa2d8378
[Core] Re-order user space rules inclusion (#17459) 3 years ago
lokher a02aff9c77
Add led matrix support for CKLED2001 (#17643) 3 years ago
Drashna Jaelre 3d24845016
[Bug] Fix wrong varaible in encoder block (#18020) 3 years ago
Drashna Jaelre aed82bc6a0
Move Encoder+Encoder Map from generic features (#18018) 3 years ago
Nick Brassel 543f54a483
[Core] `STM32_USB_USE_OTG1` => `USB_ENDPOINTS_ARE_REORDERABLE` (#17647) 3 years ago
Drashna Jaelre ee17ffadea
Move Pointing Device code to a subdirectory (#17684) 3 years ago
Drashna Jaelre 12eb6444c6
Add support for PAW3204 Optical Sensor (#17669)
Co-authored-by: gompa <gompa@h-bomb.nl>
Co-authored-by: Stefan Kerkmann <karlk90@pm.me>
3 years ago
Stefan Kerkmann 3c58f98929
[Core] PMW33XX drivers overhaul (#17613)
* PMW33XX drivers overhaul

This combines the PMW3389 and PM3360 drivers as they only differ in the
firmware blobs and CPI get and set functions. The following changes have
been made:

* PMW3389 now gets the same multi-sensor feature that is already available on the
  PMW3360.

* Introduced a shared pmw33xx_report_t struct is now directly readable via SPI
  transactions instead of individual byte-sized reads, saving multiple
  copies and bitshift operations.

* pmw33(89/60)_get_report functions had unreachable branches in their motion
  detection logic these have been simplied as much as possible.

* The fast firmware upload option has been removed as this becomes obsolete by
  the newly introduced polled waiting functions for ChibiOS polled waiting

* PMW33(60/89)_SPI_LSBFIRST and PMW33(60/89)_SPI_MODE config options
  have been removed as they don't need to be configurable.

* All PMW3389 and PMW3360 defines have been unified to a PMW33XX prefix
  to reduce code duplication and make the defines interchangeable

* Adjust keyboards to PMW33XX naming scheme
3 years ago
Daniel Kao 5db705d054
Cirque trackpad features: circular scroll, inertial cursor (#17482) 3 years ago
Stefan Kerkmann d9bb189e25
[Core] Update mpaland/printf to eyalroz/printf fork (#16163)
mpaland printf implementation was abandoned in ~2019 and the fork by
eyalroz is now regarded to be the goto replacement of it. So this commit
incoporates the changes needed to use this fork in QMK.

Note that pointer ptrdiff_t is always supported since commit
51c90f93a97fdaef895783ecbe24569be0db7cb8
3 years ago
Nick Brassel 0e5d67145a
Allow for `keymaps` array to be implemented in a file other than `$(KEYMAP_C)` (#17559) 3 years ago
Ryan ac5e6b6a3b
Tentative Teensy 3.5 support (#14420)
* Tentative Teensy 3.5 support

* Set firmware format to .hex for ARM Teensys

* Got to "device descriptor failed" by comparing with Teensy 3.6 code

* Drop down to 96MHz...

* Bump back up to 120MHz
3 years ago
Ryan 3ecb0a80af
Feature-ify Send String (#17275) 3 years ago
Nick Brassel 5846b40f74
RP2040 emulated EEPROM. (#17519) 3 years ago
Stefan Kerkmann d717396708
[Core] Add Raspberry Pi RP2040 support (#14877)
* Disable RESET keycode because of naming conflicts

* Add Pico SDK as submodule

* Add RP2040 build support to QMK

* Adjust USB endpoint structs for RP2040

* Add RP2040 bootloader and double-tap reset routine

* Add generic and pro micro RP2040 boards

* Add RP2040 onekey keyboard

* Add WS2812 PIO DMA enabled driver and documentation

Supports regular and open-drain output configuration. RP2040 GPIOs are
sadly not 5V tolerant, so this is a bit use-less or needs extra hardware
or you take the risk to fry your hardware.

* Adjust SIO Driver for RP2040

* Adjust I2C Driver for RP2040

* Adjust SPI Driver for RP2040

* Add PIO serial driver and documentation

* Add general RP2040 documentation

* Apply suggestions from code review

Co-authored-by: Nick Brassel <nick@tzarc.org>

Co-authored-by: Nick Brassel <nick@tzarc.org>
3 years ago
Nick Brassel 34e244cecf
Wear-leveling EEPROM drivers: `embedded_flash`, `spi_flash`, `legacy` (#17376) 3 years ago
Nick Brassel 01ecf332ff
Generic wear-leveling algorithm (#16996)
* Initial import of wear-leveling algorithm.

* Alignment.

* Docs tweaks.

* Lock/unlock.

* Update quantum/wear_leveling/wear_leveling_internal.h

Co-authored-by: Stefan Kerkmann <karlk90@pm.me>

* More tests, fix issue with consolidation when unlocked.

* More tests.

* Review comments.

* Add plumbing for FNV1a.

* Another test checking that checksum mismatch clears the cache.

* Check that the write log still gets played back.

Co-authored-by: Stefan Kerkmann <karlk90@pm.me>
3 years ago
precondition 7060cb7b26
Refactor steno and add `STENO_PROTOCOL = [all|txbolt|geminipr]` (#17065)
* Refactor steno into STENO_ENABLE_[ALL|GEMINI|BOLT]

* Update stenography documentation

* STENO_ENABLE_TXBOLT → STENO_ENABLE_BOLT

TXBOLT is a better name but BOLT is more consistent with the
pre-existing TX Bolt related constants, which all drop the "TX " prefix

* Comments

* STENO_ENABLE_[GEMINI|BOLT|ALL] → STENO_PROTOCOL = [geminipr|txbolt|all]

* Add note on lacking V-USB support

* Clear chord at the end of the switch(mode){send_steno_chord} block

* Return true if NOEVENT

* update_chord_xxx → add_xxx_key_to_chord

* Enable the defines for all the protocols if STENO_PROTOCOL = all

* Mention how to use `steno_set_mode`

* Set the default steno protocol to "all"

This is done so that existing keymaps invoking `steno_set_mode` don't
all suddenly break

* Add data driver equivalents for stenography feature

* Document format of serial steno packets

(Thanks dnaq)

* Add missing comma
4 years ago
Stefan Kerkmann fe680a8568
[Core] Split ChibiOS usart split driver in protocol and hardware driver part (#16669) 4 years ago