19 Commits (051401175d98e777a6633445a0275b54ed36e97a)

Author SHA1 Message Date
Drashna Jaelre 051401175d
[Keymap] Drashna updates for 0.20.0 (#19960) 3 years ago
Joel Challis 961f0b7b2d
Reallocate SAFE_RANGE (#19909) 3 years ago
Ryan 043d8e1140
Remove deprecated Quantum keycodes (#19712) 3 years ago
Ryan 1978007fae
Tap Dance: remove `qk_` prefix (#19313) 3 years ago
precondition 515dd18c28
Remove IGNORE_MOD_TAP_INTERRUPT_PER_KEY in favour of HOLD_ON_OTHER_KEY_PRESS_PER_KEY (#15741) 3 years ago
Albert Y cbabc8dbe6
[Core] Replace Tapping Force Hold feature with Quick Tap Term (#17007)
* Replace Tapping Force Hold feature with Quick Tap Term

* Replace keyboard level TAPPING_FORCE_HOLD with QUICK_TAP_TERM 0

* Deprecate force hold in info_config.json

* Before and after quick tap term unit tests

* Quick tap unit tests iteration

* Keymap config.h correction

* Remove TAPPING_FORCE_HOLD_PER_KEY macros that were missed

* Add two more test cases for quick tap

* Replace TAPPING_FORCE_HOLD with QUICK_TAP_TERM in configs #2

* Replace TAPPING_FORCE_HOLD_PER_KEY with QUICK_TAP_TERM_PER_KEY in configs #2

* Add function declaration for get_quick_tap_term

Co-authored-by: Stefan Kerkmann <karlk90@pm.me>
3 years ago
Drashna Jaelre 4a87af0e9a
[Keymap] Drashna updates for 0.19 (#19175)
* Fix up bastardkb boards since blackpill support is officially added.
  * Check for blackpill version, not elite c.
  * Add checks in chibiOS config since multiple ARM controllers supported.
  * Rework rules.mk for keymaps to better handle arm vs avr support
* Start moving away from `matrix_*_*` functions.
  * `housekeeping_task_*` instead of `matrix_scan_*`
  * `keyboard_(pre|post)_init_*` instead of `matrix_init_*` 
* Add ℂℴmⅈℂ unicode input method.
* Clean up unicode code to be more compact and flexible.
* Remove/move Pro Micro LED commands to userspace and better filter them
* Fixup OLED code
  * Use newer quantum keycode functions/preprocessors rather than manual bit manipulation
  * Make unicode mode render much more compact/simple.
* Make qmk secrets more self contained
* Remove custom implementation of split watchdog
3 years ago
Ryan 2ff1d85290
Normalise Autocorrect keycodes (#18893) 3 years ago
Ryan 90f6b75873
Remove `KC_DELT` (#18882) 3 years ago
Drashna Jaelre 5abb125b02
[Keymap] develop updates for Drashna Keymaps (#18472) 3 years ago
Jeff Epler 9632360caa
Use a macro to compute the size of arrays at compile time (#18044)
* 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>
3 years ago
Drashna Jaelre fa08cb2478
[Keymap] Drashna keymap updates for 0.18.0 (#18184)
Co-authored-by: Ryan <fauxpark@gmail.com>
3 years ago
Drashna Jaelre 1c43410e26
[Keymap] Updates to drashna Keymaps and Userspace (#17543) 3 years ago
Drashna Jaelre cda343acbe
[Keymap] Drashna update for post Q2 merge (#17241) 4 years ago
Drashna Jaelre ff6c70415c
[Keymap] Drashna Mouse keys and oled updates (#16556) 4 years ago
Drashna Jaelre 941b1d35b8
[Keymap] Add oled improvements and cnano keymap for drashna (#16133) 4 years ago
Drashna Jaelre b090ff03ed
[Keymap] Drashna's OLED rewrite (#15981) 4 years ago
Drashna Jaelre c4551d7ef1
[Keymap] Reorganization, cleanup and readmes for drashna code (#15617) 4 years ago
Drashna Jaelre 3fa592a402
[Keymap] Unicode and Pointing Device and Autocorect for drashna keymaps (#15415) 4 years ago