summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use a macro to compute the size of arrays at compile time (#18044)Jeff Epler2022-08-3091-165/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ARRAY_SIZE and CEILING utility macros * Apply a coccinelle patch to use ARRAY_SIZE * fix up some straggling items * Fix 'make test:secure' * Enhance ARRAY_SIZE macro to reject acting on pointers The previous definition would not produce a diagnostic for ``` int *p; size_t num_elem = ARRAY_SIZE(p) ``` but the new one will. * explicitly get definition of ARRAY_SIZE * Convert to ARRAY_SIZE when const is involved The following spatch finds additional instances where the array is const and the division is by the size of the type, not the size of the first element: ``` @ rule5a using "empty.iso" @ type T; const T[] E; @@ - (sizeof(E)/sizeof(T)) + ARRAY_SIZE(E) @ rule6a using "empty.iso" @ type T; const T[] E; @@ - sizeof(E)/sizeof(T) + ARRAY_SIZE(E) ``` * New instances of ARRAY_SIZE added since initial spatch run * Use `ARRAY_SIZE` in docs (found by grep) * Manually use ARRAY_SIZE hs_set is expected to be the same size as uint16_t, though it's made of two 8-bit integers * Just like char, sizeof(uint8_t) is guaranteed to be 1 This is at least true on any plausible system where qmk is actually used. Per my understanding it's universally true, assuming that uint8_t exists: https://stackoverflow.com/questions/48655310/can-i-assume-that-sizeofuint8-t-1 * Run qmk-format on core C files touched in this branch Co-authored-by: Stefan Kerkmann <karlk90@pm.me>
* Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-301-6/+16
|\
| * Expand on the differences between Caps Word and Caps Lock (#18139)precondition2022-08-301-6/+16
| | | | | | | | | | | | | | * Expand on the differences between Caps Word and Caps Lock * Add the equiv default KC_ next to intl alias * It's configurable so it's not a problem
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-3011-21/+81
|\|
| * Add boardsource/lulu RP2040 support (#18200)jack2022-08-3011-21/+81
| | | | | | by waffle87
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-3020-503/+600
|\|
| * [Keyboard] Kangaroo Rev2 (#18199)Xelus222022-08-2914-28/+118
| |
| * [Keyboard] jacky_studio/piggy60 refactor (#18197)Less/Rikki2022-08-296-475/+482
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-291-1/+3
|\|
| * Redefinition of MIN is avoided in midi.c (#18203)3araht2022-08-291-1/+3
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-299-0/+362
|\|
| * [Keyboard] Add sinanju WK (#17736)Felix Jen2022-08-299-0/+362
| | | | | | Co-authored-by: Ryan <fauxpark@gmail.com>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-2918-0/+717
|\|
| * [Keyboard] Add Peaker keyboard (#17920)Felix Jen2022-08-299-0/+364
| | | | | | Co-authored-by: Ryan <fauxpark@gmail.com>
| * [Keyboard] Add Trailblazer Avalon (#17568)Felix Jen2022-08-299-0/+353
| | | | | | | | Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-291-0/+107
|\|
| * [Keymap] Add csolje 42 keymap for the cantor (#18125)Christian Solje2022-08-291-0/+107
| | | | | | | | Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Christian Solje <csolje@gn.com>
* | Fix incorrect `bluetooth.driver` rules.mk mapping (#18205)Ryan2022-08-292-3/+2
| |
* | [Core] Introduce pointing device specific debug messages (#17663)Stefan Kerkmann2022-08-299-59/+50
| |
* | Use `TAP_CODE_DELAY` for encoder mapping by default (#18098)Nick Brassel2022-08-282-4/+18
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-2925-1/+1243
|\|
| * [Keyboard] Add handwired Split 5x7 (#18128)Stefan2022-08-2817-0/+699
| | | | | | | | Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
| * [Keyboard] add Nearfield, fix typo in Le Chiffre Readme (#17914)TJ2022-08-288-1/+544
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-297-110/+116
|\|
| * [Keyboard] Update dynamis keyboard (#17625)bbrfkr2022-08-287-110/+116
| | | | | | Co-authored-by: Drashna Jaelre <drashna@live.com>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-296-0/+133
|\|
| * [Keyboard] Add chord/zero (#18190)Simon Hengel2022-08-286-0/+133
| |
* | Fix mouse report comparison failing on shared EP (#18060)Drzony2022-08-281-5/+3
| | | | | | Co-authored-by: Dasky <32983009+daskygit@users.noreply.github.com>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-291-1/+1
|\|
| * Swap KC_VOLD and KC_VOLU on GMMK2 to correct places (#18193)NGatti19972022-08-291-1/+1
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-293-1/+21
|\|
| * Expose Moonlander split detection to user code (#18040)biesigrr2022-08-293-1/+21
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-291-1/+1
|\|
| * Update junonum keymap: add AG_NORM recovery (#18170)Juno Nguyen2022-08-291-1/+1
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-284-0/+109
|\|
| * Add an ez_maker directpins for rp2040 (#17908)Jeff Epler2022-08-284-0/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add an ez_maker directpins for rp2040 This allows all exposed pins on the Raspberry Pi Pico to be used as up to 26 individual keys. Keys use a common ground arrangement. The firmware is also expected to work on generic RP2040 boards, check manufacturer pinout diagrams or use trial and error to find out the GP#s of the pins. * Update keyboards/ez_maker/directpins/rp2040/info.json Co-authored-by: Joel Challis <git@zvecr.com> * Changes based on review comments Co-authored-by: Joel Challis <git@zvecr.com>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-282-0/+42
|\|
| * [Keymap] Add Miryoku keymap for Hillside 48 (#18191)Davide Masserut2022-08-282-0/+42
| |
* | Remove deprecated USBasp and bootloadHID bootloader types (#18195)Ryan2022-08-283-6/+4
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-2832-295/+714
|\|
| * [Keymap] Drashna keymap updates for 0.18.0 (#18184)Drashna Jaelre2022-08-2832-295/+714
| | | | | | Co-authored-by: Ryan <fauxpark@gmail.com>
* | kegen/gboy: add manufacturer string (#18196)Ryan2022-08-281-1/+2
| |
* | Handle escaping of manufacturer/product strings (#18194)Ryan2022-08-285-2/+6
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-283-14/+35
|\|
| * Clean up schema syntax (#18192)Ryan2022-08-283-14/+35
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-2842-509/+501
|\|
| * [Keyboard] mechwild/bde cleanup and refactor (#18149)Less/Rikki2022-08-2842-509/+501
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-289-0/+391
|\|
| * [Keyboard] Add Kegen G-Boy (#18048)Matt Chan2022-08-289-0/+391
| | | | | | Co-authored-by: Drashna Jaelre <drashna@live.com>
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2022-08-2811-69/+56
|\|