Skip to content

Commit

Permalink
Remove DEBOUNCE macro usage (qmk#19750)
Browse files Browse the repository at this point in the history
  • Loading branch information
waffle87 authored Feb 5, 2023
1 parent a5f36b1 commit d5e622b
Show file tree
Hide file tree
Showing 14 changed files with 57 additions and 1 deletion.
4 changes: 4 additions & 0 deletions keyboards/baguette/baguette.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions keyboards/bpiphany/pegasushoof/2013/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#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];
Expand Down
4 changes: 4 additions & 0 deletions keyboards/dp60/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
4 changes: 4 additions & 0 deletions keyboards/duck/eagle_viper/v2/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "print.h"
#include "debug.h"

#ifndef DEBOUNCE
# define DEBOUNCE 5
#endif

static uint8_t debouncing = DEBOUNCE;

/* matrix state(1:on, 0:off) */
Expand Down
4 changes: 4 additions & 0 deletions keyboards/duck/jetfire/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "util.h"
#include "matrix.h"

#ifndef DEBOUNCE
# define DEBOUNCE 5
#endif

static uint8_t debouncing = DEBOUNCE;

/* matrix state(1:on, 0:off) */
Expand Down
4 changes: 4 additions & 0 deletions keyboards/duck/lightsaver/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "print.h"
#include "debug.h"

#ifndef DEBOUNCE
# define DEBOUNCE 5
#endif

static uint8_t debouncing = DEBOUNCE;

/* matrix state(1:on, 0:off) */
Expand Down
4 changes: 4 additions & 0 deletions keyboards/duck/octagon/v1/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "print.h"
#include "debug.h"

#ifndef DEBOUNCE
# define DEBOUNCE 5
#endif

static uint8_t debouncing = DEBOUNCE;

/* matrix state(1:on, 0:off) */
Expand Down
4 changes: 4 additions & 0 deletions keyboards/duck/octagon/v2/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "print.h"
#include "debug.h"

#ifndef DEBOUNCE
# define DEBOUNCE 5
#endif

static uint8_t debouncing = DEBOUNCE;

/* matrix state(1:on, 0:off) */
Expand Down
4 changes: 4 additions & 0 deletions keyboards/duck/orion/v3/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#include "quantum.h"

#ifndef DEBOUNCE
# define DEBOUNCE 5
#endif

static uint8_t debouncing = DEBOUNCE;

/* matrix state(1:on, 0:off) */
Expand Down
6 changes: 5 additions & 1 deletion keyboards/duck/tcv3/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "print.h"
#include "debug.h"

#ifndef DEBOUNCE
# define DEBOUNCE 5
#endif

static uint8_t debouncing = DEBOUNCE;

/* matrix state(1:on, 0:off) */
Expand Down Expand Up @@ -277,4 +281,4 @@ static void select_col(uint8_t col) {
PORTB |= 0b00100000;
break;
}
}
}
4 changes: 4 additions & 0 deletions keyboards/hs60/v1/v1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions keyboards/matrix/noah/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
#include "print.h"
#include "matrix.h"

#ifndef DEBOUNCE
# define DEBOUNCE 5
#endif

/**
*
* Row pins are input with internal pull-down.
Expand Down
4 changes: 4 additions & 0 deletions keyboards/planck/rev6_drop/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
4 changes: 4 additions & 0 deletions keyboards/preonic/rev3_drop/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@

#include "quantum.h"

#ifndef DEBOUNCE
# define DEBOUNCE 5
#endif

typedef uint16_t matrix_col_t;

/*
Expand Down

0 comments on commit d5e622b

Please sign in to comment.