Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use a macro to compute the size of arrays at compile time (#18044) | Jeff Epler | 2022-08-30 | 60 | -93/+95 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 develop | QMK Bot | 2022-08-30 | 11 | -21/+81 |
|\ | |||||
| * | Add boardsource/lulu RP2040 support (#18200) | jack | 2022-08-30 | 11 | -21/+81 |
| | | | | | | by waffle87 | ||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-30 | 20 | -503/+600 |
|\| | |||||
| * | [Keyboard] Kangaroo Rev2 (#18199) | Xelus22 | 2022-08-29 | 14 | -28/+118 |
| | | |||||
| * | [Keyboard] jacky_studio/piggy60 refactor (#18197) | Less/Rikki | 2022-08-29 | 6 | -475/+482 |
| | | |||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-29 | 9 | -0/+362 |
|\| | |||||
| * | [Keyboard] Add sinanju WK (#17736) | Felix Jen | 2022-08-29 | 9 | -0/+362 |
| | | | | | | Co-authored-by: Ryan <fauxpark@gmail.com> | ||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-29 | 18 | -0/+717 |
|\| | |||||
| * | [Keyboard] Add Peaker keyboard (#17920) | Felix Jen | 2022-08-29 | 9 | -0/+364 |
| | | | | | | Co-authored-by: Ryan <fauxpark@gmail.com> | ||||
| * | [Keyboard] Add Trailblazer Avalon (#17568) | Felix Jen | 2022-08-29 | 9 | -0/+353 |
| | | | | | | | | Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com> | ||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-29 | 1 | -0/+107 |
|\| | |||||
| * | [Keymap] Add csolje 42 keymap for the cantor (#18125) | Christian Solje | 2022-08-29 | 1 | -0/+107 |
| | | | | | | | | Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Christian Solje <csolje@gn.com> | ||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-29 | 25 | -1/+1243 |
|\| | |||||
| * | [Keyboard] Add handwired Split 5x7 (#18128) | Stefan | 2022-08-28 | 17 | -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) | TJ | 2022-08-28 | 8 | -1/+544 |
| | | |||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-29 | 7 | -110/+116 |
|\| | |||||
| * | [Keyboard] Update dynamis keyboard (#17625) | bbrfkr | 2022-08-28 | 7 | -110/+116 |
| | | | | | | Co-authored-by: Drashna Jaelre <drashna@live.com> | ||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-29 | 6 | -0/+133 |
|\| | |||||
| * | [Keyboard] Add chord/zero (#18190) | Simon Hengel | 2022-08-28 | 6 | -0/+133 |
| | | |||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-29 | 1 | -1/+1 |
|\| | |||||
| * | Swap KC_VOLD and KC_VOLU on GMMK2 to correct places (#18193) | NGatti1997 | 2022-08-29 | 1 | -1/+1 |
| | | |||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-29 | 3 | -1/+21 |
|\| | |||||
| * | Expose Moonlander split detection to user code (#18040) | biesigrr | 2022-08-29 | 3 | -1/+21 |
| | | |||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-28 | 4 | -0/+109 |
|\| | |||||
| * | Add an ez_maker directpins for rp2040 (#17908) | Jeff Epler | 2022-08-28 | 4 | -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 develop | QMK Bot | 2022-08-28 | 2 | -0/+42 |
|\| | |||||
| * | [Keymap] Add Miryoku keymap for Hillside 48 (#18191) | Davide Masserut | 2022-08-28 | 2 | -0/+42 |
| | | |||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-28 | 12 | -20/+222 |
|\| | |||||
| * | [Keymap] Drashna keymap updates for 0.18.0 (#18184) | Drashna Jaelre | 2022-08-28 | 12 | -20/+222 |
| | | | | | | Co-authored-by: Ryan <fauxpark@gmail.com> | ||||
* | | kegen/gboy: add manufacturer string (#18196) | Ryan | 2022-08-28 | 1 | -1/+2 |
| | | |||||
* | | Handle escaping of manufacturer/product strings (#18194) | Ryan | 2022-08-28 | 3 | -0/+3 |
| | | |||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-28 | 42 | -509/+501 |
|\| | |||||
| * | [Keyboard] mechwild/bde cleanup and refactor (#18149) | Less/Rikki | 2022-08-28 | 42 | -509/+501 |
| | | |||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-28 | 9 | -0/+391 |
|\| | |||||
| * | [Keyboard] Add Kegen G-Boy (#18048) | Matt Chan | 2022-08-28 | 9 | -0/+391 |
| | | | | | | Co-authored-by: Drashna Jaelre <drashna@live.com> | ||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-28 | 3 | -43/+29 |
|\| | |||||
| * | More spidey3 userspace cleanup (#18049) | Joshua Diamond | 2022-08-28 | 3 | -43/+29 |
| | | |||||
* | | Switch over MANUFACTURER and PRODUCT to string literals (#18183) | Ryan | 2022-08-28 | 47 | -890/+80 |
|/ | |||||
* | Clean-up of `#define _ADJUST 16` instances (#18182) | James Young | 2022-08-27 | 20 | -101/+140 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * enum layer_names: 40percentclub/nori default keymap * enum layer_names: ergotravel default keymap * enum layer_names: handwired/atreus50 default keymap * enum layer_names: handwired/ortho5x13 default keymap * enum layer_names: keebio/levinson default keymap * enum layer_names: keebio/nyquist default keymap * enum layer_names: keebio/rorschach default keymap * enum layer_names: keebio/viterbi default keymap * enum layer_names: keebio/wavelet default keymap * enum layer_names: lets_split default keymap * enum layer_names: maple_computing/launchpad reference keymaps Update `default` and `default_rgb` keymaps. * enum layer_names: maple_computing/minidox default keymap * enum layer_names: miniaxe reference keymaps Update `default` and `underglow` keymaps. * enum layer_names: omkbd/ergodash/mini default keymap * enum layer_names: omkbd/ergodash/rev1 default keymap * enum layer_names: orthodox default keymap * enum layer_names: unikeyboard/divergetm2 default keymap * enum layer_names: woodkeys/scarletbandana default keymap * add _Static_assert to keymap_introspection.c | ||||
* | Add eeprom defaults for tinyuf2 bootloader (#18042) | Joel Challis | 2022-08-25 | 18 | -568/+0 |
| | |||||
* | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-24 | 6 | -55/+55 |
|\ | |||||
| * | Refactor pianoforte for configurator (#18159) | Joel Challis | 2022-08-24 | 6 | -55/+55 |
| | | |||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-24 | 3 | -2/+3 |
|\| | |||||
| * | Fix use of encoder map in mechlovin/zed65/retro66 (#18158) | Joel Challis | 2022-08-24 | 3 | -2/+3 |
| | | |||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-24 | 3 | -2/+3 |
|\| | |||||
| * | Fix use of encoder map in mechlovin/foundation (#18157) | Joel Challis | 2022-08-24 | 3 | -2/+3 |
| | | |||||
* | | Merge remote-tracking branch 'origin/master' into develop | QMK Bot | 2022-08-24 | 3 | -1/+2 |
|\| | |||||
| * | Fix use of encoder map in mechwild/clunker (#18156) | Joel Challis | 2022-08-24 | 3 | -1/+2 |
| | | |||||
* | | Move keyboard USB IDs and strings to data driven: develop (#18152) | Ryan | 2022-08-24 | 17 | -70/+38 |
| | | | | | | | | | | * Move keyboard USB IDs and strings to data driven: develop * Also do new onekeys |