Commit Graph

10040 Commits

Author SHA1 Message Date
skullY
b4dc878501 Setup a python test framework 2019-10-01 10:21:12 +09:00
Konstantin Đorđević
b5a5ce043b Update docker_build.sh: indentation fix, error echo function (#6659)
* Replace spaces with tab in docker_build.sh

* Use errcho instead of echo >&2
2019-10-01 10:21:12 +09:00
fauxpark
c2788ef766 Make USB polling rate configurable with a define (#6668) 2019-10-01 10:21:12 +09:00
fauxpark
6ee3b53807 Add 16U2, 16U4 and USB646 to mcu_selection.mk (#6566) 2019-10-01 10:21:12 +09:00
bwhelm
97649a2ac4 Fix battery level code in adafruit_ble.cpp (#6648)
* Fix battery level code in adafruit_ble.cpp

The code in tsk_core/protocol/lufa/adafluit_ble.cpp that polls the
battery level for the Adafruit feather BLE controller reads the
regulated voltage, not the raw voltage coming from the battery. To do
that, the Adafruit Feather docs say you should read from pin A9:
https://learn.adafruit.com/adafruit-feather-32u4-basic-proto/power-management#measuring-battery-4-9.
(See also
https://learn.adafruit.com/adafruit-feather-32u4-bluefruit-le/pinouts#logic-pins-2-9.)

I'm not sure why, but analogRead(9); doesn't read the correct pin.
Checking all available analog pins experimentally, it turns out that
analogRead(7); returns the correct value. So the code above should read:

    state.vbat = analogRead(7);

* Update tmk_core/protocol/lufa/adafruit_ble.cpp

Co-Authored-By: Drashna Jaelre <drashna@live.com>

* Remove old comment

* Fix linking error

* Remove `#ifdef` around `#include analog.h`.

* Really fix linking error
2019-10-01 10:21:12 +09:00
Drashna Jaelre
789bdaaf16 Add Dip Switch as a core feature (#6140)
* Add Dip Switches as a core feature

* Add documentation for Dip Switch feature

* Update Preonic Rev3 to use new feature and remove custom matrix

* Apply suggestions from code review

Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>

* Remove custom matrix line completely

Rather than just disabling it

Co-Authored-By: fauxpark <fauxpark@gmail.com>

* DIP changes

Co-Authored-By: fauxpark <fauxpark@gmail.com>

* Use better check for DIP Switch configuration

* Add to show features

* Add bitmask callback for dip switch

* Fix OLKB Boards dip switch config

* Update docs to include bitmask example

* Fix comments/documentation

Co-Authored-By: fauxpark <fauxpark@gmail.com>

* Fix issues with docs and use example from @tuzonghua

* Fix wording

Co-Authored-By: fauxpark <fauxpark@gmail.com>

* Fix example to use proper formatting

Bad, BAAAAAAD drashna!!!

* Handle dip switch initialization better
2019-10-01 10:21:12 +09:00
Cory Watson
a935511465 Add dfu-programmer to pacman -S (#6619)
* Add `dfu-programmer` to `pacman -S` (#6618)

`dfu-programmer` now resides at `extra/dfu-programmer` and is no longer
in the AUR

* Add `--needed` option to `pacman -S` for efficiency

* Fix

* Update util/linux_install.sh

Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
2019-10-01 10:21:12 +09:00
fauxpark
e881dfd17e Fix msys2 not installing any packages because it can't find clang (#6655) 2019-10-01 10:21:12 +09:00
skullY
8a155fe021 readability enhancements 2019-10-01 10:21:12 +09:00
skullY
e9e9233835 Add support for passing files at the command line 2019-10-01 10:21:12 +09:00
skullY
e19fa20802 CLI command to format C code 2019-10-01 10:21:12 +09:00
Mikkel Jeppesen
6eae35c3c0 Removed prescaler define from avr i2c, as it was impossible to use (#6617) 2019-10-01 10:21:12 +09:00
Drashna Jaelre
d978c59b52 Fix Redefinition of OLED_TIMEOUT (#6628) 2019-10-01 10:21:12 +09:00
Drashna Jaelre
6e9ddbc2e2 Update submodule check to include LUFA (#6661)
As LUFA is now a submodule, we should be checking it.
2019-10-01 10:21:12 +09:00
skullY
93f6749e06 clang-format changes 2019-10-01 10:21:12 +09:00
skullY
da34bddba1 add lufa as a submodule 2019-10-01 10:21:12 +09:00
Drashna Jaelre
9f184ab5da Fix the LUFA lib to use a submodule instead of just files (#6245)
* Remove LUFA files

* Update descriptions for newer version of LUFA

* Create PR6245.md

* Fix CDC(Serial) type errors

* Fix missed merge conflict for AUDIO_DTYPE_CSInterface
2019-10-01 10:21:12 +09:00
skullY
d5212f4739 Fix vusb compiling after clang-format 2019-10-01 10:21:12 +09:00
skullY
aba3108289 Have clang ignore the code in bootloader_size.c 2019-10-01 10:21:12 +09:00
skullydazed
d5d631691d Enforce clang-format (#6293)
* Enforce clang-format on commit for core files

* forgot about tests
2019-10-01 10:21:12 +09:00
fauxpark
31f8c4eb3a LUFA USB descriptor cleanup (#4871)
* Fix indentation

* Fix braces

* Expand descriptor headers

* Align descriptor elements

* Nicer formatting

* Tidy up preprocessor statements

* Remove VERSION_BCD redefine - LUFA_VERSION_INTEGER is currently 0x170418

* Tidy up comments

* Tweak ordering of  HID report elements (no functional changes)

* We don't need all of these newlines

* Move default USB_MAX_POWER_CONSUMPTION closer to where it makes sense

* Ask nicely

* Add some more comments

* Change indentation back to 4 spaces

* Add changelog entry
2019-10-01 10:21:12 +09:00
Florian Didron
2dc509475b Merge pull request #167 from zsa/staging
v13
2019-09-13 16:42:28 +09:00
Drashna Jael're
fc8a27497f Re-Add TAB and Non-US Backslash to special charactcetr range for AutoShift 2019-09-13 06:54:41 +09:00
Florian Didron
9d0612cb51 chore: set CONSOLE_ENABLE = no 2019-09-05 16:15:42 +09:00
Florian Didron
e8a922ece3 chore: set COMMAND_ENABLE = no 2019-09-05 16:15:42 +09:00
Florian Didron
9e42d327ce feat: adds some icelandic chars 2019-09-05 16:15:42 +09:00
XScorpion2
a0c98997af Added OLED Display autoscroll during periods of OLED data inactivity (#6546)
* Added OLED Display autoscroll during periods of OLED data inactivity.

* Fixing compile errors

* Feedback from review
2019-09-05 16:15:42 +09:00
skullydazed
ec9f501cfb Refactor qmk compile-json to qmk compile (#6592) 2019-09-05 16:15:42 +09:00
Drashna Jaelre
c1ba3aef57 Fix Typo in :flash target for missing bootloader (#6615) 2019-09-05 16:15:42 +09:00
Joel Challis
4040654edf Add 'bootloadHID' flash target (#5587)
* Add 'bootloadHID' flash target

* Prep for flash target

* Add :flash support

* Align bootloader wait messages

Co-Authored-By: Drashna Jaelre <drashna@live.com>

* Update template to suggest use of :flash
2019-09-05 16:15:42 +09:00
Joel Challis
d4a6178b89 Align flashing behaviour of dfu-util (#6578)
* Align flashing retry logic of dfu-util

* Align bootloader wait messages

Co-Authored-By: Drashna Jaelre <drashna@live.com>
2019-09-05 16:15:42 +09:00
Drashna Jaelre
f82d2aedb5 Add a universal flash command for cli (#6224)
* Add universal flash command

* Add bootloader info to I:C boards

* Add support for ATSAM

* Add messages for flash target

* Message cleanup

* Add USB ASP Flashing target

* Make usbasp target more universal

* Add phoney target for usbasp

* Clarify error message when bootloader isn't matched
2019-09-05 16:15:42 +09:00
Joel Challis
6512732a31 Relocate pca9555 driver to core (#6563)
* Move pca9555 files to central location

* Get pca9555 boards compiling

* Slight alignment of rules.mk
2019-09-05 16:15:42 +09:00
Takeshi ISHII
d3611fbf64 AVR GPIO macro defines more readable (#5937)
* A little easier to read the definition of the GPIO control macro for AVR.

No change in build result.

* Changed to not use GNU statement expression extension.

No change in build result.

* Modified split_common/serial.c to use qmk_firmware standard GPIO control macro.

No change in build result.

* fix PE6 -> E6

* remove some space

* add some comment to config_common.h

* Changed split_common/serial.c to use a newer version of qmk_firmware standard GPIO control macro.
2019-09-05 16:15:42 +09:00
Drashna Jael're
0ec90ce881 Increment EEPROM Magic Number due to EEPROM init issues
Specifically, the magic value may be initialized, but the range added for the CTRL-GUI feature is not
2019-09-05 16:15:42 +09:00
Drashna Jaelre
e85eeeaa53 Fixup Bootmagic code (#6386) 2019-09-05 16:15:42 +09:00
Stephen Wanhella
9702d6d82e Added keycodes for swapping and unswapping the Control and OS keys (#6110)
* Add MAGIC_SWAP_CONTROL_LGUI and MAGIC_UNSWAP_CONTROL_LGUI keycodes

Key codes to swap and unswap the control and windows/cmd keys

* Fix issues with pull request #6110

Renamed swap/unswap lctl and lgui key codes, added key codes to swap/unswap rctl and rgui, and moved new bool inside keycode_config.h struct to the end

* Move new keycodes to the end of the enum (#6110)

* add cases for swapped control and OS keys to mod_config (#6110)

* Add new keycodes to feature_bootmagic.md (#6110)

* Add R+L swap codes to keep in parity with AG_* codes

* Extend Magic range check to include new magic codes

* Update audio docs

* Combine 2 byte ranges into 1 word for EECONFG

Fix names for Keymap config EEPROM

* Update docs/feature_bootmagic.md

Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>

* Update docs/feature_bootmagic.md

Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>

* Update docs/feature_bootmagic.md

Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>

* Update docs/feature_bootmagic.md

Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
2019-09-05 16:15:42 +09:00
fauxpark
8e5b9f89c6 Add ATmega32U2 to mcu_selection.mk (#6561) 2019-09-05 16:15:42 +09:00
fauxpark
cd9064ac52 Remove backslashes from template keymap (#6548) 2019-09-05 16:15:42 +09:00
Danny
0caa4264c8 Add support for different encoder pinout for right half of split keyboard (#6521)
* Add support for different encoder pinouts for split keyboard

* Update documentation for new encoder pinout feature
2019-09-05 16:15:42 +09:00
Joel Challis
9aba563661 Add an alternative method for keyboard discovery to speed up build (#6073)
* Add an alternative method for keyboard discovery to speed up build

* Chain MAKEFLAGS for docker_build.sh

* Slight improvement to number of items sent to sort

* Remove debug line

* Fix line escape
2019-09-05 16:15:42 +09:00
Drashna Jaelre
b2db6db409 Restore brightness 2019-09-05 16:15:42 +09:00
Drashna Jaelre
5784d1ab6c use full brightness instead 2019-09-05 16:15:42 +09:00
Drashna Jaelre
97fdecf1dd Fix Indicator LEDs brightness 2019-09-05 16:15:42 +09:00
Florian Didron
468290f373 chore: set CONSOLE_ENABLE = no 2019-09-04 11:01:38 +09:00
Florian Didron
da2ec386d8 chore: set COMMAND_ENABLE = no 2019-09-04 11:01:38 +09:00
Florian Didron
8b7047a62c feat: adds some icelandic chars 2019-09-02 20:07:32 +09:00
XScorpion2
09c4e8ac5d Added OLED Display autoscroll during periods of OLED data inactivity (#6546)
* Added OLED Display autoscroll during periods of OLED data inactivity.

* Fixing compile errors

* Feedback from review
2019-08-28 14:56:14 +09:00
skullydazed
ca5162b90e Refactor qmk compile-json to qmk compile (#6592) 2019-08-28 14:55:37 +09:00
Drashna Jaelre
a75e0b2374 Fix Typo in :flash target for missing bootloader (#6615) 2019-08-28 14:54:06 +09:00