Skip to content

Commit

Permalink
Remove quantum.h includes from keyboard custom matrix.cs (#23371)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark committed Mar 30, 2024
1 parent 76bd514 commit 2dd406f
Show file tree
Hide file tree
Showing 97 changed files with 104 additions and 244 deletions.
4 changes: 1 addition & 3 deletions keyboards/barleycorn_smd/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stdbool.h>
#include "matrix.h"
#include "wait.h"
#include "quantum.h"
#include "i2c_master.h"

static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
Expand Down
1 change: 0 additions & 1 deletion keyboards/bpiphany/ghost_squid/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/

#include "matrix.h"
#include "quantum.h"

matrix_row_t read_rows(void) {
return
Expand Down
1 change: 0 additions & 1 deletion keyboards/centromere/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include "quantum.h"
#include "matrix.h"
#include "uart.h"

Expand Down
3 changes: 0 additions & 3 deletions keyboards/converter/siemens_tastatur/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "quantum.h"
#include "timer.h"
#include "wait.h"
#include "print.h"
Expand Down
3 changes: 2 additions & 1 deletion keyboards/custommk/evo70_r2/matrix.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2023 David Hoelscher (@customMK)
// SPDX-License-Identifier: GPL-2.0-or-later
#include "quantum.h"
#include "matrix.h"
#include <string.h>

// Pin definitions
static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
Expand Down
3 changes: 0 additions & 3 deletions keyboards/dc01/right/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stdbool.h>
#if defined(__AVR__)
#include <avr/io.h>
#include <avr/wdt.h>
Expand All @@ -31,7 +29,6 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "timer.h"
#include "i2c_slave.h"
#include "lufa.h"
#include "quantum.h"

#define SLAVE_I2C_ADDRESS 0x32

Expand Down
5 changes: 4 additions & 1 deletion keyboards/dp60/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "matrix.h"
#include "print.h"
#include "bitwise.h"
#include "wait.h"

#ifndef DEBOUNCE
# define DEBOUNCE 5
Expand Down
5 changes: 4 additions & 1 deletion keyboards/duck/orion/v3/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include "quantum.h"
#include "matrix.h"
#include "debug.h"
#include "bitwise.h"
#include "wait.h"

#ifndef DEBOUNCE
# define DEBOUNCE 5
Expand Down
3 changes: 0 additions & 3 deletions keyboards/evyd13/wasdat/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include <stdint.h>
#include <stdbool.h>
#include "matrix.h"
#include "quantum.h"
#include "sn74x138.h"

static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
Expand Down
3 changes: 0 additions & 3 deletions keyboards/evyd13/wasdat_code/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include <stdint.h>
#include <stdbool.h>
#include "matrix.h"
#include "quantum.h"
#include "sn74x138.h"

static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
Expand Down
3 changes: 2 additions & 1 deletion keyboards/geistmaschine/macropod/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include "matrix.h"
#include "pca9555.h"
#include "quantum.h"
#include "timer.h"

// PCA9555 i2c address, 0x20: A0 = 0, A1 = 0, A2 = 0
#define IC1 0x20
Expand Down
1 change: 0 additions & 1 deletion keyboards/gl516/a52gl/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "matrix.h"
#include "quantum.h"

static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
Expand Down
1 change: 0 additions & 1 deletion keyboards/gl516/j73gl/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "matrix.h"
#include "quantum.h"

static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
Expand Down
1 change: 0 additions & 1 deletion keyboards/gl516/n51gl/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "matrix.h"
#include "quantum.h"

static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
Expand Down
1 change: 0 additions & 1 deletion keyboards/glenpickle/chimera_ergo/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include "quantum.h"
#include "matrix.h"
#include "uart.h"

Expand Down
1 change: 0 additions & 1 deletion keyboards/glenpickle/chimera_ls/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include "quantum.h"
#include "matrix.h"
#include "uart.h"

Expand Down
1 change: 0 additions & 1 deletion keyboards/glenpickle/chimera_ortho/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include "quantum.h"
#include "matrix.h"
#include "uart.h"

Expand Down
1 change: 0 additions & 1 deletion keyboards/glenpickle/chimera_ortho_plus/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include "quantum.h"
#include "matrix.h"
#include "uart.h"

Expand Down
9 changes: 3 additions & 6 deletions keyboards/gmmk/numpad/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@
/*
* scan matrix
*/
#include <stdint.h>
#include <stdbool.h>
#include "matrix.h"
#include <string.h>
#include "atomic_util.h"
#include "wait.h"
#include "print.h"
#include "debug.h"
#include "util.h"
#include "matrix.h"
#include "debounce.h"
#include "quantum.h"

/* matrix state(1:on, 0:off) */
extern matrix_row_t matrix[MATRIX_ROWS]; // debounced values
Expand Down
9 changes: 3 additions & 6 deletions keyboards/halfcliff/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stdbool.h>
#include "util.h"
#include "matrix.h"
#include "debounce.h"
#include "quantum.h"
#include "atomic_util.h"
#include "split_util.h"
#include "config.h"
#include "transport.h"
#include "debounce.h"
#include "wait.h"

#define ERROR_DISCONNECT_COUNT 5

Expand Down
7 changes: 0 additions & 7 deletions keyboards/handwired/dqz11n1g/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include <stdint.h>
#include <stdbool.h>
#include <string.h>

#include <avr/io.h>

#include "spi_master.h"
#include "quantum.h"
#include "matrix.h"

static pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
Expand Down
3 changes: 2 additions & 1 deletion keyboards/handwired/dygma/raise/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#include "matrix.h"
#include "i2c_master.h"
#include "wait.h"
#include <string.h>
#include "wire-protocol-constants.h"

Expand Down
3 changes: 0 additions & 3 deletions keyboards/handwired/symmetric70_proto/matrix_debug/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stdbool.h>
#include "util.h"
#include "matrix.h"
#include "debounce.h"
#include "quantum.h"
#ifndef readPort
# include "gpio_extr.h"
#endif
Expand Down
4 changes: 0 additions & 4 deletions keyboards/handwired/symmetric70_proto/matrix_fast/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,13 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// clang-format off
#include <stdint.h>
#include <stdbool.h>
#include <gpio.h>
#ifndef readPort
# include "gpio_extr.h"
#endif
#include "util.h"
#include "matrix.h"
#include "matrix_extr.h"
#include "debounce.h"
#include "quantum.h"

#define ALWAYS_INLINE inline __attribute__((always_inline))
#define NO_INLINE __attribute__((noinline))
Expand Down
9 changes: 4 additions & 5 deletions keyboards/hazel/bad_wings/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
// Copyright 2023 @jasonhazel (Jason Hazel)
// SPDX-License-Identifier: GPL-3.0-or-later

#include "quantum.h"
#include "spi_master.h"
#include <string.h> /* memset */
#include <unistd.h> /* close */
#include "quantum.h"
#include "matrix.h"
#include <string.h>
#include "spi_master.h"
#include "debug.h"
#include "wait.h"

#if (!defined(SHIFTREG_MATRIX_COL_CS))
# error Missing shift register I/O pin definitions
Expand Down
7 changes: 6 additions & 1 deletion keyboards/hhkb/yang/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include "quantum.h"
#include "matrix.h"
#include "debug.h"
#include "timer.h"
#include "wait.h"
#include "suspend.h"
#include <avr/interrupt.h>

#ifdef BLUETOOTH_ENABLE
# include "adafruit_ble.h"
Expand Down
3 changes: 0 additions & 3 deletions keyboards/hineybush/hbcp/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stdbool.h>
#include "util.h"
#include "matrix.h"
#include "debounce.h"
#include "quantum.h"

static const pin_t row_pins[] = MATRIX_ROW_PINS;
static const pin_t col_pins[] = MATRIX_COL_PINS;
Expand Down
3 changes: 0 additions & 3 deletions keyboards/ibm/model_m/mschwingen/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stdbool.h>
#include "util.h"
#include "matrix.h"
#include "debounce.h"
#include "quantum.h"
#include "spi_master.h"
#include "print.h"
#include "mschwingen.h"
Expand Down
3 changes: 0 additions & 3 deletions keyboards/jones/v03/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stdbool.h>
#include "matrix.h"
#include "quantum.h"

#define ROW_SHIFTER ((uint16_t)1)

Expand Down
3 changes: 0 additions & 3 deletions keyboards/jones/v03_1/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stdbool.h>
#include "matrix.h"
#include "quantum.h"

#define ROW_SHIFTER ((uint16_t)1)

Expand Down
3 changes: 0 additions & 3 deletions keyboards/joshajohnson/hub16/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stdbool.h>
#include "wait.h"
#include "util.h"
#include "matrix.h"
#include "quantum.h"

// Encoder things
#define SWITCH_1 F7
Expand Down
1 change: 0 additions & 1 deletion keyboards/kagizaraya/chidori/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include "quantum.h"
#include "matrix.h"
#include "board.h"

Expand Down
3 changes: 0 additions & 3 deletions keyboards/kakunpc/angel64/alpha/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stdbool.h>
#include "wait.h"
#include "print.h"
#include "debug.h"
#include "util.h"
#include "matrix.h"
#include "debounce.h"
#include "quantum.h"

#if (MATRIX_COLS <= 8)
# define print_matrix_header() print("\nr/c 01234567\n")
Expand Down
Loading

0 comments on commit 2dd406f

Please sign in to comment.