summaryrefslogtreecommitdiffstats
path: root/tmk_core
Commit message (Collapse)AuthorAgeFilesLines
* Update massdrop/alt and arm_atsam/led_matrix to fix #10813 (#10818)Chris Merrill2020-11-091-3/+5
| | | | | | | | * Update massdrop/alt keyboard to fix Caps Lock LED flickering. * Fix Caps-lock LED during underglow-only for massdrop/ctrl * Update keyboards/massdrop/ctrl/keymaps/default/keymap.c
* Indicator LEDs as config (#10816)Joel Challis2020-11-081-4/+2
| | | | | | | | | | | | | | | * First pass * Add config options to docs * Update some wording * Slight tidy up of backlight caps logic * Init pin to correct state * Move init location * Reverse default state
* Fix KEYBOARD_SHARED_EP incompatibility with VIA (#9930)Sergey Vlasov2020-10-271-2/+8
| | | | | | | | The `KEYBOARD_SHARED_EP=yes` option was breaking the VIA support, because the raw HID interface number in this case was 0 instead of 1, and the VIA app depends on the exact interface number for raw HID. Change the interface ordering to put the shared interface before the raw HID interface if `KEYBOARD_SHARED_EP` is enabled, so that the raw HID interface can keep its number.
* Added EEPROM emulation for STM32F042x6 series processors (#10685)Adrian2020-10-222-1/+8
| | | | | | | | | | | * Added STM32F042x6 support for EEPROM emulation * Default to lower stack size on STM32F042 * Moved stack setting * Re-moved stack definition * Removed unnecessary check
* Add description in Bluetooth docs for requiring NKRO to be disabled (#10359)Peter Landoll2020-09-221-3/+7
|
* Output an error message if LINK_TIME_OPTIMIZATION_ENABLE is set but ↵David Cuthbert2020-09-171-0/+2
| | | | | | | | | LTO_ENABLE is not (#10217) * Output an error message if LINK_TIME_OPTIMIZATION_ENABLE is set but LTO_ENABLE is not. * Update common.mk Specify that LINK_TIME_OPTIMZATION_ENABLE has been renamed, not deprecated.
* [fix] dfu-programmer <0.7 doesn't support --force flag (#10292)Frans de Jonge2020-09-131-1/+2
| | | Fixes <https://github.com/qmk/qmk_firmware/issues/10286>.
* Use the force when flashing with dfu-programmer (#10070)Ryan2020-09-101-3/+3
|
* format code according to conventions [skip ci]QMK Bot2020-08-296-41/+47
|
* Remove support for Adafruit EZ-Key (#10103)Ryan2020-08-295-193/+64
| | | | | | | | | * Remove support for Adafruit EZ-Key * Update docs/ja/feature_bluetooth.md Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com>
* Kiibohd bootloader, take 2 (#10129)Ryan2020-08-292-4/+4
|
* Better handle LTO_ENABLE (#9832)Drashna Jaelre2020-08-293-8/+5
| | | | | | | | | * Better handle LTO_ENABLE Especially when calling from command line * Replace LINK_TIME_OPTIMIZATION_ENABLE with LTO_ENABLE * Remove long for LTO from show_options.mk
* More Bluetooth refactoring (#9905)Ryan2020-08-295-19/+30
|
* Update vusb to match 3rd endpoint. (#9020)yiancar2020-08-292-12/+26
| | | | | | | | | | | | | | | | | | | | | | | | | * Update vusb to match 3rd endpoint. - With the addition of https://github.com/qmk/v-usb/pull/1 a 3rd endpoint (endpoint4) becomes available. - We can assign mouse/extrakeys to that endpoint as its a desirable feature and leave rawhid and console to compete for the 2nd endpoint. NOTE: The version of vusb.c in future branch is older than master. Just remember that it will need a #error if both raw_hid and console are enabled at the same time. * Final Fixes * Update tmk_core/protocol/vusb/vusb.c * Update tmk_core/protocol/vusb/vusb.c * Update tmk_core/protocol/vusb/usbconfig.h * Update tmk_core/protocol/vusb/usbconfig.h * Update tmk_core/protocol/vusb/usbconfig.h * Update tmk_core/protocol/vusb/usbconfig.h * Updated vusb submodule to latest commit
* Add ability to dump all makefile variables for the specified target. (#8256)Nick Brassel2020-08-291-1/+7
|
* Add `st-flash` flash target (#9964)Sergey Vlasov2020-08-291-0/+5
| | | | | | | | * Add `st-flash` flash target Add support for flashing the firmware via the `st-flash` utility from the STLink Tools package (https://github.com/stlink-org/stlink). * Add `st-flash` to the `qmk flash -b` output
* Fix joystick compile issues (#9949)Ryan2020-08-291-1/+3
|
* Initialize Layer State on startup (#8318)Drashna Jaelre2020-08-293-2/+9
| | | | | | | | | | | * Initialize Layer State on startup Right now, on startup, the default layer state gets called and set, triggering the callback functions for the default layer state. However, the normal layer state never actually gets initialized. It's set to 0 directly, by default, but the callback functions are never actually called. This creates some inconsistency in the behavior for end users. This adds a simple "clear" that triggers the callback on startup. This should produce more consisten behavior between the two functions and layer masks. * Stupid hack * Fix type casting? * Fix compile issues with magic is disabled
* Hid joystick interface (#4226)a-chol2020-08-296-2/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add support for hid gamepad interface add documentation for HID joystick Add joystick_task to read analog axes values even when no key is pressed or release. update doc Update docs/feature_joystick.md Manage pin setup and read to maintain matrix scan after analog read * Incorporates patches and changes to HID reporting There are some patches provided by @a-chol incorporated on this commit, and also some changes I made to the HID Report structure. The most interesting is the one dealing with number of buttons: Linux doesn't seem to care, but Windows requires the HID structure to be byte aligned (that's in the spec). So if one declares 8/16/32... buttons they should not have any issues, but this is what happens when you have 9 buttons: ``` bits |0|1|2|3|4|5|6|7| |*|*|*|*|*|*|*|*| axis 0 (report size 8) |*|*|*|*|*|*|*|*| ... |*|*|*|*|*|*|*|*| |*|*|*|*|*|*|*|*| |*|*|*|*|*|*|*|*| |*|*|*|*|*|*|*|*| |*|*|*|*|*|*|*|*| axis 6 |*|*|*|*|*|*|*|*| first 8 buttons (report size 1) |*| | | | | | | | last of 9 buttons, not aligned ``` So for that I added a conditonal that will add a number of reports with size 1 to make sure it aligns to the next multiple of 8. Those reports send dummy inputs that don't do anything aside from aligning the data. Tested on Linux, Windows 10 and Street Fighter (where the joystick is recognized as direct-input) * Add save and restore of each pin used in reading joystick (AVR). Allow output pin to be JS_VIRTUAL_AXIS if the axis is connected to Vcc instead of an output pin from the MCU. Fix joystick report id Fix broken v-usb hid joystick interface. Make it more resilient to unusual settings (none multiple of eight button count, 0 buttons or 0 axes) Correct adc reading for multiple axes. Piecewise range conversion for uncentered raw value range. Input, output and ground pin configuration per axis. Documentation fixes * Fix port addressing for joystick analog read * The other required set of changes As per the PR, the changes still holding it up. Add onekey for testing. Fix ARM builds. Fix device descriptor when either axes or buttons is zero. Add compile-time check for at least one axis or button. Move definition to try to fix conflict. PR review comments. qmk cformat * avoid float functions to compute range mapping for axis adc reading * Remove V-USB support for now. Updated docs accordingly. * Update tmk_core/protocol/lufa/lufa.c Co-Authored-By: Ryan <fauxpark@gmail.com> * Update tmk_core/protocol/usb_descriptor.c Co-Authored-By: Ryan <fauxpark@gmail.com> * Update tmk_core/protocol/usb_descriptor.c Co-Authored-By: Ryan <fauxpark@gmail.com> * Update tmk_core/protocol/usb_descriptor.c Co-Authored-By: Ryan <fauxpark@gmail.com> * Add support for joystick adc reading for stm32 MCUs. Fix joystick hid report sending for chibios * Fix HID joystick report sending for ChibiOS. Add one analog axis to the onekey:joystick keymap. Fix pin state save and restore during joystick analog read for STM32 MCUs. * Update tmk_core/protocol/chibios/usb_main.c Co-Authored-By: Ryan <fauxpark@gmail.com> * Update tmk_core/protocol/lufa/lufa.c Co-Authored-By: Ryan <fauxpark@gmail.com> * Add missing mcuconf.h and halconf.h to onekey:joystick keymap. Add suggested fixes from PR. * Switch saveState and restoreState signature to use pin_t type. onekey:joystick : add a second axis, virtual and programmatically animated. * Update docs/feature_joystick.md Co-Authored-By: Ryan <fauxpark@gmail.com> * Update docs/feature_joystick.md Co-Authored-By: Ryan <fauxpark@gmail.com> * Add PR corrections * Remove halconf.h and mcuconf.h from onekey keymaps * Change ADC_PIN to A0 Co-authored-by: achol <allecooll@hotmail.com> Co-authored-by: José Júnior <jose.junior@gmail.com> Co-authored-by: a-chol <achol@notamail.com> Co-authored-by: Nick Brassel <nick@tzarc.org> Co-authored-by: Ryan <fauxpark@gmail.com>
* Disable NKRO on V-USB controllers (#9054)Drashna Jaelre2020-08-291-2/+6
| | | | | | | | | * Disable NKRO on V-USB controllers * not _currently_ supported text Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
* Re-fix the STM32 dual-bank bootloader stuff. (#9738)Nick Brassel2020-08-291-31/+15
| | | | | * Re-fix the dual-bank bootloader stuff. * Use wait_ms() instead of using nop's for a delay, as ChibiOS is actually running at the time of bootloader jump.
* Add dual-bank STM32 bootloader support, given GPIO toggle on BOOT0 to charge ↵Nick Brassel2020-08-292-15/+70
| | | | RC circuit. (#8778)
* Fix the mousekey scrolling (#9174)dhong442020-08-291-39/+43
| | | | | | | | | | Mousekey scrolling should have a separate repeat variable to keep track of scrolling acceleration, instead of being tied to mouse movement scolling in mousekeys. The send function should record when the last movement was made since this is when movement is actually sent. Doing this fixes the bug where the initial press of a mousekey scroll button causes a double scroll. Signed-off-by: Daniel Hong <daniel.hong@live.com>
* Change analogRead calls to analogReadPin (#9023)Ryan2020-08-291-2/+2
| | | | | | | | | * Change analogRead calls to analogReadPin * Add ChangeLog * Update docs, remove mention of `analogRead()` * Retarget changelog for next round
* `qmk cformat` on `develop` (#9501)Nick Brassel2020-08-292-5/+3
|
* Don't compile outputselect.c if Bluetooth is disabled (#9356)Ryan2020-08-292-16/+21
|
* Additional cleanups for V-USB code (#9310)Ryan2020-08-295-116/+53
|
* Convert `CONSUMER2BLUEFRUIT()` and `CONSUMER2RN42()` macros to static inline ↵Ryan2020-08-293-28/+79
| | | | functions (#9055)
* Various tidyups for USB descriptor code (#9005)Ryan2020-08-296-91/+80
|
* Initial work for consolidation of ChibiOS platform files (#8327)Nick Brassel2020-08-291-28/+85
| | | | | | | | | | | | | | | | | * Initial work for consolidation of board files and default ChibiOS configs. * Migrate F401/F411 black pills for testing. * Add early init bootloader jump flag. * Add support for I2C in order to use i2c_scanner keymap. * Add F401/F411 HSE bypass to get things booting. * Exempt "hooked" ChibiOS conf files from updater script. * Fix up ordering for bootloader_defs file check. * Match previous $(KEYBOARD_PATHS) value for Proton-C, updated for all board configs.
* Remove iWRAP protocol (#9284)Ryan2020-08-2911-1978/+2
|
* Fix ChibiOS backlight not turning off on suspend (#10114)Ryan2020-08-261-0/+16
| | | | | * Fix ChibiOS backlight not turning off on suspend * Add missing code for backlight as caps lock too
* Revert "Add Kiibohd bootloader type to bootloader.mk (#9908)" (#10126)Nick Brassel2020-08-212-4/+4
| | | This reverts commit e2d4cd1a41c667da186891e3dbaf535c6b0717df.
* Add Kiibohd bootloader type to bootloader.mk (#9908)Ryan2020-08-122-4/+4
|
* [Bug] Fix Swap Hands bug introduced by OSH (#9968)Drashna Jaelre2020-08-081-1/+1
| | | | | Fixes the handling for the oneshot cleanup, so it only cleans up if it is active. It should not cleanup of SHO is off (eg using a normal oneshot key), nor if it's actively pressed or used. Previous behavior BROKE swap hand key.
* format code according to conventions [skip ci]QMK Bot2020-07-251-2/+2
|
* Enable OLED support for Teensy 3.2/LC (#7591)Joel Challis2020-07-261-0/+7
| | | | | | | | | | | | | * I2C_TIMEOUT is not defined on arm teensy * Work round teensy having different ChibiOS config options * Stash OLED conf files * update comment * update comment * Remove stm32 alias to allow teensy alt mode
* format code according to conventions [skip ci]QMK Bot2020-07-211-3/+3
|
* Implemented New MK_COMBINED Functionality (#9557)nathanvercaemert2020-07-211-15/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * implemented new mousekey_combined functionality * minor formatting change to documentation * Update tmk_core/common/mousekey.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update tmk_core/common/mousekey.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update tmk_core/common/mousekey.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update tmk_core/common/mousekey.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update docs/feature_mouse_keys.md Co-authored-by: Nick Brassel <nick@tzarc.org> * Update docs/feature_mouse_keys.md Co-authored-by: Nick Brassel <nick@tzarc.org> * Update docs/feature_mouse_keys.md Co-authored-by: Nick Brassel <nick@tzarc.org> * Update docs/feature_mouse_keys.md Co-authored-by: Nick Brassel <nick@tzarc.org> Co-authored-by: Nathan Vercaemert <nathan.vercaemert@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Nick Brassel <nick@tzarc.org>
* Remove `DESCRIPTION` (#9732)Ryan2020-07-165-250/+0
|
* Add TAP_CODE_DELAY to Mod-Tap (#9422)Sven Grunewaldt2020-07-071-0/+2
|
* Add movement hook to ps2_mouse (#8805)Manna Harbour2020-07-022-0/+8
| | | | | | | Process mouse movement in the keymap before it is sent to the host. Example uses include filtering noise, adding acceleration, and automatically activating a layer. To use, define the following function in your keymap: void ps2_mouse_moved_user(report_mouse_t *mouse_report);
* Fix sharing of mouse button state from mousekeys to ps2_mouse (#9124)Manna Harbour2020-07-021-4/+8
| | | | | | | | | | | With this change, when ps2_mouse is disabled, mousekeys works as usual. With ps2_mouse enabled, mousekeys button state is shared with ps2_mouse for clicking, dragging, and scrolling, mousekeys clicks are produced by ps2_mouse only, and mouskeys button state is transferred to mousekeys without generating clicks to enable mousekeys dragging. Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
* Fixing MIDI for ARM without NKRO enabled (#9466)AlexOConnorHub2020-06-221-0/+1
|
* Fix for One Shot Layer not being cleaned up after some actions (#8832)Joshua Diamond2020-06-181-2/+9
|
* Fix one shot swaphands compiler error when NO_ACTION_ONESHOT is defined (#9296)Tsan-Kuang Lee2020-06-101-0/+4
| | | | | | | | | | | | | | | | | | | * init * add RETRO_TAP; tap anyway after TAP_TERM, if no interruption * RETRO_TAP works for other types of taps * revert to upstream/master * explain this fork in readme * use one readme.md file instaed * fix the error if NO_ACTION_ONESHOT is defined * restore readme.md to upstream master Co-authored-by: Tsan-Kuang Lee <tsan.kuang.lee@gmail.com>
* adds support for the atmega328 (#9043)itsnoteasy2020-06-102-2/+2
| | | Co-authored-by: Ryan <fauxpark@gmail.com>
* Move encoder_read to common location (#9003)Joel Challis2020-06-031-0/+10
|\
| * Move encoder_read to common locationzvecr2020-05-021-0/+10
| |
* | Move dip switch init to back of the init process (#9233)Drashna Jaelre2020-06-031-0/+7
| |