Ted M Lin
d3d4feca37
Use function for KEYCODE2 routines instead of macro. ( #8101 )
...
* Option to use function for KEYCODE2 routines.
Convert the KEYCODE2SYSTEM and KEYCODE2CONSUMER macros to functions,
defaulting to using the macros. The function form allows the compiler
to optimize the switch statement itself, over the macro nested
ternaries.
To enable this feature, #define USE_KEYCODE2_FUNCTION.
Testing against a random selection of avr-based keyboards, this
increased available flash by ~500 bytes. For arm-based keyboards,
the available flash increased by ~400 bytes.
* Replace macro with function entirely.
As zvecr states, go bold and just commit to using the function instead
of the macro.
* Reformat whitespace now that functional review is done
Verified against clang-format output.
2020-02-14 18:13:25 +09:00
QMK Bot
9c7ac74f31
format code according to conventions [skip ci]
2020-02-14 18:13:25 +09:00
fauxpark
8daff7c6a4
Dedupe extrakey report struct, and send functions in V-USB & LUFA ( #7993 )
...
* Dedupe extrakey report struct, and send functions in V-USB & LUFA
* Doc comment for consistency
* Wrap it in ifdef to prevent unused function error
* Do the same for ATSAM
2020-02-14 18:13:25 +09:00
fauxpark
328d4abab9
Update dirty submodule make message ( #8065 )
2020-02-14 18:12:44 +09:00
QMK Bot
5d0f244c4e
format code according to conventions [skip ci]
2020-02-14 18:12:24 +09:00
Pavel Župa
2de3ecc35f
Fix timer_elapsed() overflow issue for STM32F103 and other ChibiOS boards ( #7595 )
...
* fixed strange space cadet timer owerflow on STM32F103
* Moved elapsed time fix to timer.c
2020-02-14 18:12:24 +09:00
Nick Brassel
8998ae6f25
Add thread safety around i2c_master for ChibiOS/ARM.
2020-02-14 18:12:03 +09:00
Nick Brassel
309bf145e4
Fix misunderstanding of CPPFLAGS and CXXFLAGS.
2020-02-14 18:11:31 +09:00
xyzz
6812a485f3
Improve VIRTSER performance ( #7528 )
2020-02-14 18:10:35 +09:00
dohq
45a85151e0
Fix/remove missing package ( #7897 )
...
* [fix] yay instead pacman install bootloadhid
* [fix] add needed option
* [mod] output red color
* [fix] overwrite avr-gcc package
* [mod] disable install bootloadhid from aur and check already installed
* Apply suggestions from code review
Co-Authored-By: Joel Challis <git@zvecr.com >
* Update util/linux_install.sh
Co-Authored-By: Joel Challis <git@zvecr.com >
Co-authored-by: Joel Challis <git@zvecr.com >
2020-02-14 18:10:13 +09:00
Joel Challis
f9e97ab46d
Migrate common ld scripts to common location ( #7887 )
...
* Migrate common ld scripts to common location
* Remove duplicate ld scripts
* Update build to look at common ld location
2020-02-14 18:09:51 +09:00
Drashna Jaelre
6914b36585
Fix boards which were overriding backlight without setting custom ( #7970 ) ( #270 )
...
Co-authored-by: Joel Challis <git@zvecr.com >
Co-authored-by: Florian Didron <fdidron@users.noreply.github.com >
2020-02-14 18:09:03 +09:00
Mikkel Jeppesen
2c58ec1855
Ensure setPinInput actually sets input high-Z ( #6237 )
...
* Ensure setPinInput actually sets input high-z
* Fixed _PIN_ADDRESS Macro arguments
as recommended by vomindoraan
* Fixed instances of setInput to use new behavour
* Changed kmac matrix to use input with pullups
* Update keyboards/gh60/revc/revc.h
Co-Authored-By: fauxpark <fauxpark@gmail.com >
* Fixed input state for unselect_rows
* fixed merge conflict
* Updated all instances of older uses of setPinInput()
* Fixed naming mistake
Co-authored-by: fauxpark <fauxpark@gmail.com >
2020-02-14 18:07:36 +09:00
zvecr
9c26d30838
Create central board for bluepill
2020-02-14 18:07:09 +09:00
Joel Challis
aca8f28649
Reduce SPLIT_USB_TIMEOUT by 500ms ( #7637 )
...
* Update SPLIT_USB_TIMEOUT -500ms
* Align keyboard level SPLIT_USB_TIMEOUT defaults
* Align keyboard level SPLIT_USB_TIMEOUT_POLL
* Review fixes
2020-02-14 18:06:31 +09:00
zvecr
b6f593d63f
Remove compilation of i2c for arm split
2020-02-14 18:06:31 +09:00
Joel Challis
2a3b24e06a
Update split serial code to use driver pattern ( #7990 )
...
* Move avr serial code to drivers
* Update src+= serial.c to driver pattern
2020-02-14 18:06:31 +09:00
Drashna Jaelre
ca346bcd0f
Add additional fixes to EEPROM driver selection ( #7274 ) ( #266 )
...
* Add additional fixes to EEPROM driver selection (#7274 )
- uprintf -> dprintf
- Fix atsam "vendor" eeprom.
- Bump Kinetis K20x to 64 bytes, too.
- Rollback Kinetis to 32 bytes as partitioning can only be done once. Add warning about changing the value.
- Change RAM-backed "fake" EEPROM implementations to match eeconfig's current usage.
- Add 24LC128 by request.
* format code according to conventions [skip ci]
Co-authored-by: Nick Brassel <nick@tzarc.org >
Co-authored-by: QMK Bot <hello@qmk.fm >
Co-authored-by: Florian Didron <fdidron@users.noreply.github.com >
2020-02-14 18:06:06 +09:00
Jeremy Bernhardt
d1ec49aa42
switching to you know whats up mode ( #7921 )
2020-02-14 18:03:49 +09:00
fauxpark
783a11a6fa
Remove tmk_core gitignore and gitmodules
2020-02-14 18:01:00 +09:00
Joel Challis
2eb80a272d
Add central location for ChibiOS defines ( #7542 )
...
* Add central location for chibios defines
* Add central location for chibios defines - actually add files this time....
* Add Copyright header
* Update include order to resolve i2cv1 build errors
2020-02-14 18:00:01 +09:00
fauxpark
976031911a
Un-clang-format usb_descriptor.h ( #7216 )
...
Preserves readability of the file, making it easier to understand and modify.
2020-02-14 17:59:30 +09:00
fauxpark
73bd6450b6
Enforce definition of DIODE_DIRECTION for non-custom matrix boards ( #7915 )
...
* Enforce definition of `DIODE_DIRECTION` for non-custom matrix boards
* Define diode direction for failing boards
* Matching parentheses
* Put onekey diode directions in top level config
2020-02-14 17:58:25 +09:00
Joel Challis
7029d8a11c
Move rgblight and backlight task to common location ( #7733 )
2020-02-14 17:57:39 +09:00
Rob Haswell
6bae1bc662
Configuration values for starting HSV and speed ( #7740 )
...
* Define default HSV and speed for RGB matrix.
* Documentation for configuration values RGB_MATRIX_STARTUP_HUE, RGB_MATRIX_STARTUP_SAT and RGB_MATRIX_STARTUP_VAL.
* Document RGB_MATRIX_STARTUP_SPD.
* Preserve the ordering.
2020-02-14 17:56:54 +09:00
fauxpark
3cff44c668
Remove KEYMAP_SECTION_ENABLE ( #7882 )
2020-02-14 17:56:24 +09:00
Joel Challis
20ecca55bd
Add ws2812 driver type define ( #7888 )
2020-02-14 17:56:09 +09:00
xyzz
a937451b23
chibios/usb_main: re-check USB status in send_keyboard after sleeping the thread ( #7784 )
...
* chibios/usb_main: re-check USB status in send_keyboard after sleeping the thread
* change send_keyboard to only have 1 exit point
2020-02-14 17:55:53 +09:00
Joel Challis
5bd553ee9a
Relocate common backlight functionally ( #7273 )
2020-02-14 17:55:18 +09:00
Drashna Jaelre
655d2fb1ba
Add Midi Endpoint task to ChibiOS main ( #8071 )
2020-02-14 17:54:56 +09:00
QMK Bot
51cf6cec93
format code according to conventions [skip ci]
2020-02-14 17:54:56 +09:00
George Harris
729bbe35e5
Fix unaligned access with LTO ( #7801 )
...
Forces 4 byte alignment for USB input & output buffers to prevent unaligned accesses by chibios with LTO enabled
2020-02-14 17:54:56 +09:00
Joel Challis
9e7b84520b
Fix printf buffer overflow when cols>16 ( #7998 )
2020-02-14 17:54:56 +09:00
QMK Bot
84eefd9524
format code according to conventions [skip ci]
2020-02-14 17:54:56 +09:00
fauxpark
5af64ad050
Fix lock LEDs for ChibiOS when using shared endpoints ( #7877 )
...
* Fix lock LEDs for ChibiOS when using shared endpoints
* Tweak comments
* Doesn't need to be uint16 anymore
2020-02-14 17:54:56 +09:00
Joel Challis
cf45fed6a0
Fix KEYBOARD_SHARED_EP on ChibiOS ( #7860 )
2020-02-14 17:54:56 +09:00
Joel Challis
ac61b30b9e
CI: Add workflow for CLI testing ( #7357 )
...
Create GitHub Actions cli test workflow and remove travis runs of 'qmk pytest'
2020-02-14 17:54:15 +09:00
Cody Bender
ca466c621f
Add QMK Compile Context Sensitivity ( #6884 )
...
* Add context sensitive compile, without config check
* Initial full working state. Plan to refactor
* Refactor loop for simplicity, add comments
* Update docs/cli.md with qmk compile examples
* Simplify path for keyboard derivation
* Update path to use path.join instead of concat
* Refactor keyboard path, the skully way
* Add in keymap folder support
* Add /layouts compile support
* Update docs/cli.md with empty compile in layouts
* Add comments to compile.py
* Update docs for clarity, and fix compile error typo
* Fix config option compile
* Fix layout compile and failure mode
* Add rules.mk check
* Fix variable names for global config
* Add in_layout priority
* Remove default fallback in favor of throw, update docs
* Add keymap folder context
* Fix formatting
* Add os import
* Convert to create_make_command
* Fix Travis lint errors
* Remove blank line with whitespace
* Add blank lines for readability
* Remove unnecessary config logic
* Update Docs to add flash
Co-Authored-By: skullydazed <skullydazed@users.noreply.github.com >
* Shift config precedence to MILC
Co-authored-by: skullydazed <skullydazed@users.noreply.github.com >
2020-02-14 17:54:15 +09:00
skullydazed
237c58e3ed
Improve the functionality of qmk.questions ( #8020 )
...
* wip
* tested and working
* remove unused import
* Update lib/python/qmk/questions.py
Co-Authored-By: Erovia <Erovia@users.noreply.github.com >
* fix flake8 errors
Co-authored-by: Erovia <Erovia@users.noreply.github.com >
2020-02-14 17:54:15 +09:00
Joel Challis
b3711738b8
Fix cformat processing files within ignore folders ( #8063 )
2020-02-14 17:54:15 +09:00
Mikkel Jeppesen
bceaa828ce
Qmk doctor os check to support newer msys2/w10 installations ( #8031 )
...
* Fixed OS detection on newer MSYS installations
* made OS sting lower case
2020-02-14 17:54:15 +09:00
skullydazed
8b70d98633
Beef up how qmk doctor works. ( #7375 )
...
* Beef up how `qmk doctor` works.
* improve the `git submodule status` parsing. h/t @erovia
* Fix whitespace and imports
* yapf
* Add documentation for the new doctor functionality
* Replace type_unchanged() with str()
* remove unused modules
* Update lib/python/qmk/cli/doctor.py
Co-Authored-By: Erovia <Erovia@users.noreply.github.com >
Co-authored-by: Erovia <Erovia@users.noreply.github.com >
2020-02-14 17:54:15 +09:00
Joel Challis
faf335ca0e
Align cformat rules with current CI implementation ( #7936 )
...
* Align cformat rules with current CI implementation
* Optimise file walking
2020-02-14 17:54:15 +09:00
Erovia
9a15129bd1
Fix attribute heritance for long commands.
...
This is needed for inheritance to work with commands that have dashes in
their names.
2020-02-14 17:54:15 +09:00
Erovia
4ea50bd5bd
Fix commandline arg merging, small improvements
...
Commandline args should be merged with the submodule's config.
Compare config values to None instead of False, so empty lines and False
can be used as values.
2020-02-14 17:54:15 +09:00
Erovia
e0df258b3a
MILC: Fix/complete attribute heritance
...
If an undefined attribute of a submodule is accessed, fall back to
same attribute of the submodule's parent.
2020-02-14 17:54:15 +09:00
skullY
244e46beb7
yapf and style
2020-02-14 17:54:15 +09:00
Erovia
c16d44306b
Make the udev rules easier to read and manage
2020-02-14 17:54:15 +09:00
Erovia
87683d36a5
Fix Pro Micro's and its bootloader's name
2020-02-14 17:54:15 +09:00
Erovia
0f63eb5f9c
CLI: Rework ModemManager check and add udev check
2020-02-14 17:54:15 +09:00