summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-08-30Use a macro to compute the size of arrays at compile time (#18044)Jeff Epler
* 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>
2022-08-30Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-30Expand on the differences between Caps Word and Caps Lock (#18139)precondition
* 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
2022-08-30Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-30Add boardsource/lulu RP2040 support (#18200)jack
by waffle87
2022-08-30Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-29[Keyboard] Kangaroo Rev2 (#18199)Xelus22
2022-08-29[Keyboard] jacky_studio/piggy60 refactor (#18197)Less/Rikki
2022-08-29Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-29Redefinition of MIN is avoided in midi.c (#18203)3araht
2022-08-29Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-29[Keyboard] Add sinanju WK (#17736)Felix Jen
Co-authored-by: Ryan <fauxpark@gmail.com>
2022-08-29Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-29[Keyboard] Add Peaker keyboard (#17920)Felix Jen
Co-authored-by: Ryan <fauxpark@gmail.com>
2022-08-29[Keyboard] Add Trailblazer Avalon (#17568)Felix Jen
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
2022-08-29Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-29[Keymap] Add csolje 42 keymap for the cantor (#18125)Christian Solje
Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Christian Solje <csolje@gn.com>
2022-08-29Fix incorrect `bluetooth.driver` rules.mk mapping (#18205)Ryan
2022-08-29[Core] Introduce pointing device specific debug messages (#17663)Stefan Kerkmann
2022-08-28Use `TAP_CODE_DELAY` for encoder mapping by default (#18098)Nick Brassel
2022-08-29Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-28[Keyboard] Add handwired Split 5x7 (#18128)Stefan
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
2022-08-28[Keyboard] add Nearfield, fix typo in Le Chiffre Readme (#17914)TJ
2022-08-29Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-28[Keyboard] Update dynamis keyboard (#17625)bbrfkr
Co-authored-by: Drashna Jaelre <drashna@live.com>
2022-08-29Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-28[Keyboard] Add chord/zero (#18190)Simon Hengel
2022-08-28Fix mouse report comparison failing on shared EP (#18060)Drzony
Co-authored-by: Dasky <32983009+daskygit@users.noreply.github.com>
2022-08-29Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-29Swap KC_VOLD and KC_VOLU on GMMK2 to correct places (#18193)NGatti1997
2022-08-29Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-29Expose Moonlander split detection to user code (#18040)biesigrr
2022-08-29Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-29Update junonum keymap: add AG_NORM recovery (#18170)Juno Nguyen
2022-08-28Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-28Add an ez_maker directpins for rp2040 (#17908)Jeff Epler
* 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>
2022-08-28Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-28Remove deprecated USBasp and bootloadHID bootloader types (#18195)Ryan
2022-08-28[Keymap] Add Miryoku keymap for Hillside 48 (#18191)Davide Masserut
2022-08-28Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-28kegen/gboy: add manufacturer string (#18196)Ryan
2022-08-28[Keymap] Drashna keymap updates for 0.18.0 (#18184)Drashna Jaelre
Co-authored-by: Ryan <fauxpark@gmail.com>
2022-08-28Handle escaping of manufacturer/product strings (#18194)Ryan
2022-08-28Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-28Clean up schema syntax (#18192)Ryan
2022-08-28Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-28[Keyboard] mechwild/bde cleanup and refactor (#18149)Less/Rikki
2022-08-28Merge remote-tracking branch 'origin/master' into developQMK Bot
2022-08-28[Keyboard] Add Kegen G-Boy (#18048)Matt Chan
Co-authored-by: Drashna Jaelre <drashna@live.com>
2022-08-28Merge remote-tracking branch 'origin/master' into developQMK Bot