From d5e622b979c54ddc8f9ad97116c302e29c6aed12 Mon Sep 17 00:00:00 2001
From: jack <0x6A73@pm.me>
Date: Sun, 5 Feb 2023 14:36:01 -0700
Subject: [PATCH] Remove `DEBOUNCE` macro usage (#19750)
---
keyboards/baguette/baguette.c | 4 ++++
keyboards/bpiphany/pegasushoof/2013/matrix.c | 4 ++++
keyboards/dp60/matrix.c | 4 ++++
keyboards/duck/eagle_viper/v2/matrix.c | 4 ++++
keyboards/duck/jetfire/matrix.c | 4 ++++
keyboards/duck/lightsaver/matrix.c | 4 ++++
keyboards/duck/octagon/v1/matrix.c | 4 ++++
keyboards/duck/octagon/v2/matrix.c | 4 ++++
keyboards/duck/orion/v3/matrix.c | 4 ++++
keyboards/duck/tcv3/matrix.c | 6 +++++-
keyboards/hs60/v1/v1.c | 4 ++++
keyboards/matrix/noah/matrix.c | 4 ++++
keyboards/planck/rev6_drop/matrix.c | 4 ++++
keyboards/preonic/rev3_drop/matrix.c | 4 ++++
14 files changed, 57 insertions(+), 1 deletion(-)
diff --git a/keyboards/baguette/baguette.c b/keyboards/baguette/baguette.c
index 99305cf2deba361f79b4fc5a4761ad97d8860c04..42c8435b66eae904cb3add769ff12712d2f57cd1 100644
--- a/keyboards/baguette/baguette.c
+++ b/keyboards/baguette/baguette.c
@@ -15,6 +15,10 @@
*/
#include "baguette.h"
+#ifndef DEBOUNCE
+# define DEBOUNCE 5
+#endif
+
void bootmagic_lite(void)
{
// The lite version of TMK's bootmagic made by Wilba.
diff --git a/keyboards/bpiphany/pegasushoof/2013/matrix.c b/keyboards/bpiphany/pegasushoof/2013/matrix.c
index ed56067dca66ddae0169b441f1b56298efa0abee..3250e71fe67890e6fa0c36b0115d30fb019c381f 100644
--- a/keyboards/bpiphany/pegasushoof/2013/matrix.c
+++ b/keyboards/bpiphany/pegasushoof/2013/matrix.c
@@ -26,6 +26,10 @@ along with this program. If not, see .
#include "util.h"
#include "matrix.h"
+#ifndef DEBOUNCE
+# define DEBOUNCE 5
+#endif
+
static uint8_t debouncing = DEBOUNCE;
static matrix_row_t matrix[MATRIX_ROWS];
static matrix_row_t matrix_debouncing[MATRIX_ROWS];
diff --git a/keyboards/dp60/matrix.c b/keyboards/dp60/matrix.c
index dbcc68056d4cb477ff0dbadbb13a2362a7298cfb..1803e0f94fad880c285a15fcac7ec6c345e5dd50 100644
--- a/keyboards/dp60/matrix.c
+++ b/keyboards/dp60/matrix.c
@@ -15,6 +15,10 @@
*/
#include "quantum.h"
+#ifndef DEBOUNCE
+# define DEBOUNCE 5
+#endif
+
static uint8_t debouncing = DEBOUNCE;
static matrix_row_t matrix[MATRIX_ROWS];
diff --git a/keyboards/duck/eagle_viper/v2/matrix.c b/keyboards/duck/eagle_viper/v2/matrix.c
index 0964493ac6c3bf606e8d1d4aa6d2a9ee48a01a0f..a673c536c2489642970e92781c3823d056087b4c 100644
--- a/keyboards/duck/eagle_viper/v2/matrix.c
+++ b/keyboards/duck/eagle_viper/v2/matrix.c
@@ -22,6 +22,10 @@ along with this program. If not, see .
#include "print.h"
#include "debug.h"
+#ifndef DEBOUNCE
+# define DEBOUNCE 5
+#endif
+
static uint8_t debouncing = DEBOUNCE;
/* matrix state(1:on, 0:off) */
diff --git a/keyboards/duck/jetfire/matrix.c b/keyboards/duck/jetfire/matrix.c
index 2b64885842e213b29f75c59edfe862a923ddee1e..762a98ae550c2a6562cc1115485501acdac144f7 100644
--- a/keyboards/duck/jetfire/matrix.c
+++ b/keyboards/duck/jetfire/matrix.c
@@ -21,6 +21,10 @@ along with this program. If not, see .
#include "util.h"
#include "matrix.h"
+#ifndef DEBOUNCE
+# define DEBOUNCE 5
+#endif
+
static uint8_t debouncing = DEBOUNCE;
/* matrix state(1:on, 0:off) */
diff --git a/keyboards/duck/lightsaver/matrix.c b/keyboards/duck/lightsaver/matrix.c
index c65b6aa6c453ee2edf0468f35a32bba0ea85fe3f..48861e08febed1c710c62ba220ad2818aa818c9a 100644
--- a/keyboards/duck/lightsaver/matrix.c
+++ b/keyboards/duck/lightsaver/matrix.c
@@ -22,6 +22,10 @@ along with this program. If not, see .
#include "print.h"
#include "debug.h"
+#ifndef DEBOUNCE
+# define DEBOUNCE 5
+#endif
+
static uint8_t debouncing = DEBOUNCE;
/* matrix state(1:on, 0:off) */
diff --git a/keyboards/duck/octagon/v1/matrix.c b/keyboards/duck/octagon/v1/matrix.c
index a2bea865bc3a0807393396b41850581a643d1634..c903e619aa362b5b37c8148cd69c9d7b42bb5b3c 100644
--- a/keyboards/duck/octagon/v1/matrix.c
+++ b/keyboards/duck/octagon/v1/matrix.c
@@ -22,6 +22,10 @@ along with this program. If not, see .
#include "print.h"
#include "debug.h"
+#ifndef DEBOUNCE
+# define DEBOUNCE 5
+#endif
+
static uint8_t debouncing = DEBOUNCE;
/* matrix state(1:on, 0:off) */
diff --git a/keyboards/duck/octagon/v2/matrix.c b/keyboards/duck/octagon/v2/matrix.c
index 25d1e45b0513bd586a596003b273fc0a8c911671..c70eb73747c9386bca0407a44eafb7cd9e25028a 100644
--- a/keyboards/duck/octagon/v2/matrix.c
+++ b/keyboards/duck/octagon/v2/matrix.c
@@ -22,6 +22,10 @@ along with this program. If not, see .
#include "print.h"
#include "debug.h"
+#ifndef DEBOUNCE
+# define DEBOUNCE 5
+#endif
+
static uint8_t debouncing = DEBOUNCE;
/* matrix state(1:on, 0:off) */
diff --git a/keyboards/duck/orion/v3/matrix.c b/keyboards/duck/orion/v3/matrix.c
index 84673bd44f0586a2c365d42f4894f4fdffb075d3..a5b522d78b2db85ca440119fe81f145780c74150 100644
--- a/keyboards/duck/orion/v3/matrix.c
+++ b/keyboards/duck/orion/v3/matrix.c
@@ -16,6 +16,10 @@ along with this program. If not, see .
#include "quantum.h"
+#ifndef DEBOUNCE
+# define DEBOUNCE 5
+#endif
+
static uint8_t debouncing = DEBOUNCE;
/* matrix state(1:on, 0:off) */
diff --git a/keyboards/duck/tcv3/matrix.c b/keyboards/duck/tcv3/matrix.c
index d2d90470a05f13528851eb6cf247b0ac390e911e..cc4ebeb5dc3918cdde6c812badae0051bb8ed8f8 100644
--- a/keyboards/duck/tcv3/matrix.c
+++ b/keyboards/duck/tcv3/matrix.c
@@ -22,6 +22,10 @@ along with this program. If not, see .
#include "print.h"
#include "debug.h"
+#ifndef DEBOUNCE
+# define DEBOUNCE 5
+#endif
+
static uint8_t debouncing = DEBOUNCE;
/* matrix state(1:on, 0:off) */
@@ -277,4 +281,4 @@ static void select_col(uint8_t col) {
PORTB |= 0b00100000;
break;
}
-}
\ No newline at end of file
+}
diff --git a/keyboards/hs60/v1/v1.c b/keyboards/hs60/v1/v1.c
index 466cfeeaf597d58c26f9bb66d6b663a41f83ca2e..21d6ac48740c86a4d8c8e46dc0d2c630111615a4 100644
--- a/keyboards/hs60/v1/v1.c
+++ b/keyboards/hs60/v1/v1.c
@@ -307,6 +307,10 @@ led_config_t g_led_config = { {
#endif
+#ifndef DEBOUNCE
+# define DEBOUNCE 5
+#endif
+
void bootmagic_lite(void)
{
// The lite version of TMK's bootmagic made by Wilba.
diff --git a/keyboards/matrix/noah/matrix.c b/keyboards/matrix/noah/matrix.c
index 17f7a2fb623655f01515168276a1aa2774598bd8..d5aca79cf6480e3e40560cf48f99f8def2c6a54c 100644
--- a/keyboards/matrix/noah/matrix.c
+++ b/keyboards/matrix/noah/matrix.c
@@ -13,6 +13,10 @@
#include "print.h"
#include "matrix.h"
+#ifndef DEBOUNCE
+# define DEBOUNCE 5
+#endif
+
/**
*
* Row pins are input with internal pull-down.
diff --git a/keyboards/planck/rev6_drop/matrix.c b/keyboards/planck/rev6_drop/matrix.c
index d10d94dcf867a654e2630b5de170dcf3ac70368a..7eaaf053f8ea958a7f2667df5be69a5df22e1235 100644
--- a/keyboards/planck/rev6_drop/matrix.c
+++ b/keyboards/planck/rev6_drop/matrix.c
@@ -17,6 +17,10 @@
#include "quantum.h"
+#ifndef DEBOUNCE
+# define DEBOUNCE 5
+#endif
+
/*
* col: { B11, B10, B2, B1, A7, B0 }
* row: { A10, A9, A8, B15, C13, C14, C15, A2 }
diff --git a/keyboards/preonic/rev3_drop/matrix.c b/keyboards/preonic/rev3_drop/matrix.c
index 82214e03d93a1d6b26126f133fb58e0201849a35..2477dfca1bc1b129dcb87fd1915a7067bceb7810 100644
--- a/keyboards/preonic/rev3_drop/matrix.c
+++ b/keyboards/preonic/rev3_drop/matrix.c
@@ -17,6 +17,10 @@
#include "quantum.h"
+#ifndef DEBOUNCE
+# define DEBOUNCE 5
+#endif
+
typedef uint16_t matrix_col_t;
/*