Browse Source

[Core] Remove matrix_is_modified() and debounce_is_active() (#15349)

pull/15352/head
Stefan Kerkmann 2 years ago
committed by GitHub
parent
commit
c1297ceb97
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
52 changed files with 0 additions and 298 deletions
  1. +0
    -6
      keyboards/40percentclub/ut47/matrix.c
  2. +0
    -5
      keyboards/ai03/orbit/matrix.c
  3. +0
    -6
      keyboards/amj96/matrix.c
  4. +0
    -7
      keyboards/angel64/alpha/matrix.c
  5. +0
    -7
      keyboards/angel64/rev1/matrix.c
  6. +0
    -7
      keyboards/bpiphany/kitten_paw/matrix.c
  7. +0
    -7
      keyboards/bpiphany/pegasushoof/2013/matrix.c
  8. +0
    -7
      keyboards/converter/palm_usb/matrix.c
  9. +0
    -7
      keyboards/converter/sun_usb/matrix.c
  10. +0
    -4
      keyboards/converter/usb_usb/custom_matrix.cpp
  11. +0
    -8
      keyboards/dc01/arrow/matrix.c
  12. +0
    -8
      keyboards/dc01/left/matrix.c
  13. +0
    -8
      keyboards/dc01/numpad/matrix.c
  14. +0
    -8
      keyboards/dc01/right/matrix.c
  15. +0
    -6
      keyboards/dm9records/ergoinu/matrix.c
  16. +0
    -6
      keyboards/duck/jetfire/matrix.c
  17. +0
    -4
      keyboards/ergodox_stm32/matrix.c
  18. +0
    -5
      keyboards/ergotaco/matrix.c
  19. +0
    -5
      keyboards/gboards/gergoplex/matrix.c
  20. +0
    -5
      keyboards/georgi/matrix.c
  21. +0
    -5
      keyboards/gergo/matrix.c
  22. +0
    -8
      keyboards/handwired/dactyl/matrix.c
  23. +0
    -6
      keyboards/handwired/frenchdev/matrix.c
  24. +0
    -6
      keyboards/handwired/not_so_minidox/matrix.c
  25. +0
    -8
      keyboards/handwired/promethium/matrix.c
  26. +0
    -8
      keyboards/handwired/pterodactyl/matrix.c
  27. +0
    -6
      keyboards/helix/pico/matrix.c
  28. +0
    -6
      keyboards/helix/rev1/matrix.c
  29. +0
    -6
      keyboards/helix/rev2/matrix.c
  30. +0
    -9
      keyboards/hhkb/ansi/matrix.c
  31. +0
    -9
      keyboards/hhkb/jp/matrix.c
  32. +0
    -6
      keyboards/hid_liber/matrix.c
  33. +0
    -6
      keyboards/kinesis/alvicstep/matrix.c
  34. +0
    -6
      keyboards/meira/matrix.c
  35. +0
    -8
      keyboards/nek_type_a/matrix.c
  36. +0
    -7
      keyboards/redscarf_iiplus/verb/matrix.c
  37. +0
    -7
      keyboards/redscarf_iiplus/verc/matrix.c
  38. +0
    -7
      keyboards/redscarf_iiplus/verd/matrix.c
  39. +0
    -4
      keyboards/sirius/unigo66/custom_matrix.cpp
  40. +0
    -5
      keyboards/sixkeyboard/matrix.c
  41. +0
    -8
      keyboards/sx60/matrix.c
  42. +0
    -7
      keyboards/thedogkeyboard/matrix.c
  43. +0
    -6
      keyboards/yosino58/rev1/matrix.c
  44. +0
    -2
      quantum/debounce.h
  45. +0
    -1
      quantum/debounce/asym_eager_defer_pk.c
  46. +0
    -2
      quantum/debounce/none.c
  47. +0
    -2
      quantum/debounce/sym_defer_g.c
  48. +0
    -1
      quantum/debounce/sym_defer_pk.c
  49. +0
    -1
      quantum/debounce/sym_eager_pk.c
  50. +0
    -1
      quantum/debounce/sym_eager_pr.c
  51. +0
    -2
      quantum/matrix.h
  52. +0
    -6
      quantum/matrix_common.c

+ 0
- 6
keyboards/40percentclub/ut47/matrix.c View File

@ -104,12 +104,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void)
{
if (debouncing) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 5
keyboards/ai03/orbit/matrix.c View File

@ -83,11 +83,6 @@ inline uint8_t matrix_rows(void) { return MATRIX_ROWS; }
inline uint8_t matrix_cols(void) { return MATRIX_COLS; }
bool matrix_is_modified(void) {
if (debounce_active()) return false;
return true;
}
inline bool matrix_is_on(uint8_t row, uint8_t col) { return (matrix[row] & ((matrix_row_t)1 << col)); }
inline matrix_row_t matrix_get_row(uint8_t row) { return matrix[row]; }


+ 0
- 6
keyboards/amj96/matrix.c View File

@ -108,12 +108,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void)
{
if (debouncing) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 7
keyboards/angel64/alpha/matrix.c View File

@ -90,13 +90,6 @@ uint8_t matrix_cols(void) {
return MATRIX_COLS;
}
//Deprecated.
bool matrix_is_modified(void)
{
if (debounce_active()) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 7
keyboards/angel64/rev1/matrix.c View File

@ -90,13 +90,6 @@ uint8_t matrix_cols(void) {
return MATRIX_COLS;
}
//Deprecated.
bool matrix_is_modified(void)
{
if (debounce_active()) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 7
keyboards/bpiphany/kitten_paw/matrix.c View File

@ -117,13 +117,6 @@ uint8_t matrix_scan(void) {
return 1;
}
bool matrix_is_modified(void) {
if (debouncing)
return false;
else
return true;
}
inline bool matrix_is_on(uint8_t row, uint8_t col) {
return (matrix[row] & ((matrix_row_t)1<<col));
}


+ 0
- 7
keyboards/bpiphany/pegasushoof/2013/matrix.c View File

@ -110,13 +110,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void)
{
if (debouncing)
return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 7
keyboards/converter/palm_usb/matrix.c View File

@ -58,8 +58,6 @@ static uint16_t disconnect_counter = 0;
#define COL(code) ((code & COL_MASK) )
#define KEYUP(code) ((code & KEY_MASK) >>7 )
static bool is_modified = false;
__attribute__ ((weak))
void matrix_init_kb(void) {
matrix_init_user();
@ -354,11 +352,6 @@ uint8_t matrix_scan(void)
return code;
}
bool matrix_is_modified(void)
{
return is_modified;
}
inline
bool matrix_has_ghost(void)
{


+ 0
- 7
keyboards/converter/sun_usb/matrix.c View File

@ -38,8 +38,6 @@ static uint8_t matrix[MATRIX_ROWS];
#define ROW(code) ((code>>3)&0xF)
#define COL(code) (code&0x07)
static bool is_modified = false;
__attribute__ ((weak))
void matrix_init_kb(void) {
matrix_init_user();
@ -154,11 +152,6 @@ uint8_t matrix_scan(void)
return code;
}
bool matrix_is_modified(void)
{
return is_modified;
}
inline
bool matrix_has_ghost(void)
{


+ 0
- 4
keyboards/converter/usb_usb/custom_matrix.cpp View File

@ -192,10 +192,6 @@ extern "C"
return 1;
}
bool matrix_is_modified(void) {
return matrix_is_mod;
}
bool matrix_is_on(uint8_t row, uint8_t col) {
uint8_t code = CODE(row, col);


+ 0
- 8
keyboards/dc01/arrow/matrix.c View File

@ -205,14 +205,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void)
{
#if (DEBOUNCE > 0)
if (debouncing) return false;
#endif
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 8
keyboards/dc01/left/matrix.c View File

@ -230,14 +230,6 @@ if (i2c_transaction(SLAVE_I2C_ADDRESS_NUMPAD, 0x1FFFF, 11)) {
return 1;
}
bool matrix_is_modified(void)
{
#if (DEBOUNCE > 0)
if (debouncing) return false;
#endif
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 8
keyboards/dc01/numpad/matrix.c View File

@ -205,14 +205,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void)
{
#if (DEBOUNCE > 0)
if (debouncing) return false;
#endif
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 8
keyboards/dc01/right/matrix.c View File

@ -206,14 +206,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void)
{
#if (DEBOUNCE > 0)
if (debouncing) return false;
#endif
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 6
keyboards/dm9records/ergoinu/matrix.c View File

@ -223,12 +223,6 @@ void matrix_slave_scan(void) {
}
}
bool matrix_is_modified(void)
{
if (debouncing) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 6
keyboards/duck/jetfire/matrix.c View File

@ -116,12 +116,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void)
{
if (debouncing) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 4
keyboards/ergodox_stm32/matrix.c View File

@ -119,10 +119,6 @@ uint8_t matrix_scan(void) {
return 0;
}
bool matrix_is_modified(void) {
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col) {
return (matrix[row] & (1 << col));


+ 0
- 5
keyboards/ergotaco/matrix.c View File

@ -199,11 +199,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void) // deprecated and evidently not called.
{
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 5
keyboards/gboards/gergoplex/matrix.c View File

@ -152,11 +152,6 @@ uint8_t matrix_scan(void) {
return 1;
}
bool matrix_is_modified(void) // deprecated and evidently not called.
{
return true;
}
inline bool matrix_is_on(uint8_t row, uint8_t col) { return (matrix[row] & ((matrix_row_t)1 << col)); }
inline matrix_row_t matrix_get_row(uint8_t row) { return matrix[row]; }


+ 0
- 5
keyboards/georgi/matrix.c View File

@ -220,11 +220,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void) // deprecated and evidently not called.
{
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 5
keyboards/gergo/matrix.c View File

@ -273,11 +273,6 @@ uint8_t matrix_scan(void) {
return 1;
}
bool matrix_is_modified(void) // deprecated and evidently not called.
{
return true;
}
inline bool matrix_is_on(uint8_t row, uint8_t col) { return (matrix[row] & ((matrix_row_t)1 << col)); }
inline matrix_row_t matrix_get_row(uint8_t row) { return matrix[row]; }


+ 0
- 8
keyboards/handwired/dactyl/matrix.c View File

@ -281,14 +281,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void) // deprecated and evidently not called.
{
#if (DEBOUNCE > 0)
if (debouncing) return false;
#endif
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 6
keyboards/handwired/frenchdev/matrix.c View File

@ -174,12 +174,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void)
{
if (debouncing) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 6
keyboards/handwired/not_so_minidox/matrix.c View File

@ -239,12 +239,6 @@ void matrix_slave_scan(void) {
#endif
}
bool matrix_is_modified(void)
{
if (debouncing) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 8
keyboards/handwired/promethium/matrix.c View File

@ -148,14 +148,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void)
{
#if (DEBOUNCE > 0)
if (debouncing) return false;
#endif
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)


+ 0
- 8
keyboards/handwired/pterodactyl/matrix.c View File

@ -282,14 +282,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void) // deprecated and evidently not called.
{
#if (DEBOUNCE > 0)
if (debouncing) return false;
#endif
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 6
keyboards/helix/pico/matrix.c View File

@ -273,12 +273,6 @@ void matrix_slave_scan(void) {
#endif
}
bool matrix_is_modified(void)
{
if (debouncing) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 6
keyboards/helix/rev1/matrix.c View File

@ -239,12 +239,6 @@ void matrix_slave_scan(void) {
#endif
}
bool matrix_is_modified(void)
{
if (debouncing) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 6
keyboards/helix/rev2/matrix.c View File

@ -287,12 +287,6 @@ void matrix_slave_scan(void) {
#endif
}
bool matrix_is_modified(void)
{
if (debouncing) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 9
keyboards/hhkb/ansi/matrix.c View File

@ -163,15 +163,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void)
{
for (uint8_t i = 0; i < MATRIX_ROWS; i++) {
if (matrix[i] != matrix_prev[i])
return true;
}
return false;
}
inline
bool matrix_has_ghost(void)
{


+ 0
- 9
keyboards/hhkb/jp/matrix.c View File

@ -164,15 +164,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void)
{
for (uint8_t i = 0; i < MATRIX_ROWS; i++) {
if (matrix[i] != matrix_prev[i])
return true;
}
return false;
}
inline
bool matrix_has_ghost(void)
{


+ 0
- 6
keyboards/hid_liber/matrix.c View File

@ -218,12 +218,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void)
{
// NOTE: no longer used
return true;
}
inline
bool matrix_has_ghost(void)
{


+ 0
- 6
keyboards/kinesis/alvicstep/matrix.c View File

@ -136,12 +136,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void)
{
if (debouncing) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 6
keyboards/meira/matrix.c View File

@ -161,12 +161,6 @@ uint8_t matrix_scan(void)
return ret;
}
bool matrix_is_modified(void)
{
if (debouncing) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 8
keyboards/nek_type_a/matrix.c View File

@ -205,14 +205,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void)
{
#if (DEBOUNCE > 0)
if (debouncing) return false;
#endif
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 7
keyboards/redscarf_iiplus/verb/matrix.c View File

@ -94,13 +94,6 @@ uint8_t matrix_cols(void) {
return MATRIX_COLS;
}
//Deprecated.
bool matrix_is_modified(void)
{
if (debounce_active()) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 7
keyboards/redscarf_iiplus/verc/matrix.c View File

@ -94,13 +94,6 @@ uint8_t matrix_cols(void) {
return MATRIX_COLS;
}
//Deprecated.
bool matrix_is_modified(void)
{
if (debounce_active()) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 7
keyboards/redscarf_iiplus/verd/matrix.c View File

@ -94,13 +94,6 @@ uint8_t matrix_cols(void) {
return MATRIX_COLS;
}
//Deprecated.
bool matrix_is_modified(void)
{
if (debounce_active()) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 4
keyboards/sirius/unigo66/custom_matrix.cpp View File

@ -172,10 +172,6 @@ extern "C"
return 1;
}
bool matrix_is_modified(void) {
return matrix_is_mod;
}
bool matrix_is_on(uint8_t row, uint8_t col) {
uint8_t code = CODE(row, col);


+ 0
- 5
keyboards/sixkeyboard/matrix.c View File

@ -114,11 +114,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void)
{
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 8
keyboards/sx60/matrix.c View File

@ -172,14 +172,6 @@ uint8_t matrix_scan(void)
return 1;
}
bool matrix_is_modified(void)
{
#if (DEBOUNCE > 0)
if (debouncing) return false;
#endif
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 7
keyboards/thedogkeyboard/matrix.c View File

@ -90,13 +90,6 @@ uint8_t matrix_cols(void) {
return MATRIX_COLS;
}
//Deprecated.
bool matrix_is_modified(void)
{
if (debounce_active()) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 6
keyboards/yosino58/rev1/matrix.c View File

@ -289,12 +289,6 @@ void matrix_slave_scan(void) {
#endif
}
bool matrix_is_modified(void)
{
if (debouncing) return false;
return true;
}
inline
bool matrix_is_on(uint8_t row, uint8_t col)
{


+ 0
- 2
quantum/debounce.h View File

@ -6,8 +6,6 @@
// changed is true if raw has changed since the last call
void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool changed);
bool debounce_active(void);
void debounce_init(uint8_t num_rows);
void debounce_free(void);

+ 0
- 1
quantum/debounce/asym_eager_defer_pk.c View File

@ -165,7 +165,6 @@ static void transfer_matrix_values(matrix_row_t raw[], matrix_row_t cooked[], ui
}
}
bool debounce_active(void) { return true; }
#else
# include "none.c"
#endif

+ 0
- 2
quantum/debounce/none.c View File

@ -26,6 +26,4 @@ void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool
}
}
bool debounce_active(void) { return false; }
void debounce_free(void) {}

+ 0
- 2
quantum/debounce/sym_defer_g.c View File

@ -44,8 +44,6 @@ void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool
}
}
bool debounce_active(void) { return debouncing; }
void debounce_free(void) {}
#else // no debouncing.
# include "none.c"


+ 0
- 1
quantum/debounce/sym_defer_pk.c View File

@ -134,7 +134,6 @@ static void start_debounce_counters(matrix_row_t raw[], matrix_row_t cooked[], u
}
}
bool debounce_active(void) { return true; }
#else
# include "none.c"
#endif

+ 0
- 1
quantum/debounce/sym_eager_pk.c View File

@ -140,7 +140,6 @@ static void transfer_matrix_values(matrix_row_t raw[], matrix_row_t cooked[], ui
}
}
bool debounce_active(void) { return true; }
#else
# include "none.c"
#endif

+ 0
- 1
quantum/debounce/sym_eager_pr.c View File

@ -132,7 +132,6 @@ static void transfer_matrix_values(matrix_row_t raw[], matrix_row_t cooked[], ui
}
}
bool debounce_active(void) { return true; }
#else
# include "none.c"
#endif

+ 0
- 2
quantum/matrix.h View File

@ -46,8 +46,6 @@ void matrix_setup(void);
void matrix_init(void);
/* scan all key states on matrix */
uint8_t matrix_scan(void);
/* whether modified from previous scan. used after matrix_scan. */
bool matrix_is_modified(void) __attribute__((deprecated));
/* whether a switch is on */
bool matrix_is_on(uint8_t row, uint8_t col);
/* matrix state on row */


+ 0
- 6
quantum/matrix_common.c View File

@ -45,12 +45,6 @@ inline matrix_row_t matrix_get_row(uint8_t row) {
#endif
}
// Deprecated.
bool matrix_is_modified(void) {
if (debounce_active()) return false;
return true;
}
#if (MATRIX_COLS <= 8)
# define print_matrix_header() print("\nr/c 01234567\n")
# define print_matrix_row(row) print_bin_reverse8(matrix_get_row(row))


Loading…
Cancel
Save