From 2dd406f08fc5d9877c8fd2642e94975eae37e86f Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 31 Mar 2024 01:07:19 +1100 Subject: [PATCH] Remove `quantum.h` includes from keyboard custom `matrix.c`s (#23371) --- keyboards/barleycorn_smd/matrix.c | 4 +--- keyboards/bpiphany/ghost_squid/matrix.c | 1 - keyboards/centromere/matrix.c | 1 - keyboards/converter/siemens_tastatur/matrix.c | 3 --- keyboards/custommk/evo70_r2/matrix.c | 3 ++- keyboards/dc01/right/matrix.c | 3 --- keyboards/dp60/matrix.c | 5 ++++- keyboards/duck/orion/v3/matrix.c | 5 ++++- keyboards/evyd13/wasdat/matrix.c | 3 --- keyboards/evyd13/wasdat_code/matrix.c | 3 --- keyboards/geistmaschine/macropod/matrix.c | 3 ++- keyboards/gl516/a52gl/matrix.c | 1 - keyboards/gl516/j73gl/matrix.c | 1 - keyboards/gl516/n51gl/matrix.c | 1 - keyboards/glenpickle/chimera_ergo/matrix.c | 1 - keyboards/glenpickle/chimera_ls/matrix.c | 1 - keyboards/glenpickle/chimera_ortho/matrix.c | 1 - .../glenpickle/chimera_ortho_plus/matrix.c | 1 - keyboards/gmmk/numpad/matrix.c | 9 +++------ keyboards/halfcliff/matrix.c | 9 +++------ keyboards/handwired/dqz11n1g/matrix.c | 7 ------- keyboards/handwired/dygma/raise/matrix.c | 3 ++- .../symmetric70_proto/matrix_debug/matrix.c | 3 --- .../symmetric70_proto/matrix_fast/matrix.c | 4 ---- keyboards/hazel/bad_wings/matrix.c | 9 ++++----- keyboards/hhkb/yang/matrix.c | 7 ++++++- keyboards/hineybush/hbcp/matrix.c | 3 --- keyboards/ibm/model_m/mschwingen/matrix.c | 3 --- keyboards/jones/v03/matrix.c | 3 --- keyboards/jones/v03_1/matrix.c | 3 --- keyboards/joshajohnson/hub16/matrix.c | 3 --- keyboards/kagizaraya/chidori/matrix.c | 1 - keyboards/kakunpc/angel64/alpha/matrix.c | 3 --- keyboards/kakunpc/angel64/rev1/matrix.c | 3 --- keyboards/kakunpc/choc_taro/matrix.c | 3 --- keyboards/kakunpc/thedogkeyboard/matrix.c | 3 --- keyboards/kbdmania/kmac/matrix.c | 3 --- keyboards/kbdmania/kmac_pad/matrix.c | 1 - keyboards/keyboardio/model01/matrix.c | 2 +- keyboards/keychron/c2_pro/matrix.c | 4 +++- keyboards/keychron/q10/matrix.c | 3 ++- keyboards/keychron/q12/matrix.c | 3 ++- keyboards/keychron/q1v2/matrix.c | 4 +++- keyboards/keychron/q3/matrix.c | 3 ++- keyboards/keychron/q5/matrix.c | 3 ++- keyboards/keychron/q6/matrix.c | 3 ++- keyboards/keychron/q65/matrix.c | 3 ++- keyboards/keychron/v1/matrix.c | 3 ++- keyboards/keychron/v10/matrix.c | 3 ++- keyboards/keychron/v3/matrix.c | 3 ++- keyboards/keychron/v5/matrix.c | 3 ++- keyboards/keychron/v6/matrix.c | 3 ++- keyboards/kinesis/nguyenvietyen/matrix.c | 2 -- keyboards/matrix/abelx/matrix.c | 4 ---- keyboards/matrix/m12og/rev1/matrix.c | 3 --- keyboards/matrix/m20add/matrix.c | 4 ---- keyboards/matrix/noah/matrix.c | 18 ++++++------------ .../adelais/standard_led/avr/rev1/matrix.c | 3 --- keyboards/mechlovin/infinity87/rev2/matrix.c | 3 --- keyboards/mechlovin/infinity875/matrix.c | 3 --- keyboards/mechlovin/olly/jf/rev1/matrix.c | 3 --- keyboards/mechlovin/serratus/matrix.c | 3 --- keyboards/mexsistor/ludmila/matrix.c | 3 --- keyboards/miiiw/blackio83/matrix.c | 2 +- keyboards/mitosis/matrix.c | 1 - keyboards/moon/matrix.c | 3 --- keyboards/mt/split75/matrix.c | 4 +--- keyboards/nullbitsco/nibble/matrix.c | 3 ++- keyboards/nullbitsco/snap/matrix.c | 7 ++----- keyboards/oddforge/vea/matrix.c | 4 +--- keyboards/om60/matrix.c | 3 ++- keyboards/pierce/matrix.c | 2 +- keyboards/planck/rev6_drop/matrix.c | 3 ++- keyboards/planck/rev7/matrix.c | 7 +++---- keyboards/preonic/rev3_drop/matrix.c | 5 ++++- keyboards/qvex/lynepad2/matrix.c | 7 +------ keyboards/rate/pistachio_pro/matrix.c | 4 +--- keyboards/redox/wireless/matrix.c | 1 - keyboards/redscarf_iiplus/verb/matrix.c | 3 --- keyboards/redscarf_iiplus/verc/matrix.c | 3 --- keyboards/redscarf_iiplus/verd/matrix.c | 3 --- keyboards/ryanskidmore/rskeys100/matrix.c | 2 -- keyboards/satt/comet46/matrix.c | 1 - keyboards/sirius/uni660/rev1/matrix.c | 1 - keyboards/sirius/uni660/rev2/matrix.c | 1 - keyboards/spiderisland/split78/matrix.c | 4 +--- keyboards/sthlmkb/lagom/matrix.c | 3 ++- keyboards/switchplate/southpaw_65/matrix.c | 7 ------- keyboards/telophase/matrix.c | 1 - keyboards/touchpad/matrix.c | 13 +++++++------ keyboards/viktus/sp111/matrix.c | 4 +++- keyboards/xiudi/xd84/matrix.c | 7 ------- keyboards/xiudi/xd96/matrix.c | 8 +------- keyboards/ydkb/grape/matrix.c | 3 --- keyboards/yiancardesigns/barleycorn/matrix.c | 4 +--- keyboards/yiancardesigns/gingham/matrix.c | 4 +--- keyboards/yiancardesigns/seigaiha/matrix.c | 4 +--- 97 files changed, 104 insertions(+), 244 deletions(-) diff --git a/keyboards/barleycorn_smd/matrix.c b/keyboards/barleycorn_smd/matrix.c index 315093c8a98304fc689ec8c8726b3065f7438623..d8880364b6654724dcf411398816773318555171 100644 --- a/keyboards/barleycorn_smd/matrix.c +++ b/keyboards/barleycorn_smd/matrix.c @@ -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 . */ -#include -#include +#include "matrix.h" #include "wait.h" -#include "quantum.h" #include "i2c_master.h" static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; diff --git a/keyboards/bpiphany/ghost_squid/matrix.c b/keyboards/bpiphany/ghost_squid/matrix.c index b0ad6075554a45e47b3cc17839907628f6809c2a..802d365cb890f8b00d6cab9b5ab853774eee4f02 100644 --- a/keyboards/bpiphany/ghost_squid/matrix.c +++ b/keyboards/bpiphany/ghost_squid/matrix.c @@ -17,7 +17,6 @@ */ #include "matrix.h" -#include "quantum.h" matrix_row_t read_rows(void) { return diff --git a/keyboards/centromere/matrix.c b/keyboards/centromere/matrix.c index 0218adf39b4e9e63390d2b977dbccdd4f82b234a..387d31ee07601e6b7c108d51246119b44204882f 100644 --- a/keyboards/centromere/matrix.c +++ b/keyboards/centromere/matrix.c @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "quantum.h" #include "matrix.h" #include "uart.h" diff --git a/keyboards/converter/siemens_tastatur/matrix.c b/keyboards/converter/siemens_tastatur/matrix.c index ea1aa2287e06bf80ccd4b01771ec588c346dd177..78054ee0face7869f7bf7443e2ba4077d7ac92ec 100644 --- a/keyboards/converter/siemens_tastatur/matrix.c +++ b/keyboards/converter/siemens_tastatur/matrix.c @@ -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 . */ -#include -#include #include -#include "quantum.h" #include "timer.h" #include "wait.h" #include "print.h" diff --git a/keyboards/custommk/evo70_r2/matrix.c b/keyboards/custommk/evo70_r2/matrix.c index 99a23a4542e4f4aa6c938f6545dd293717a909c2..99c3428d80293a7afd4522fb36b17e2b8232f104 100644 --- a/keyboards/custommk/evo70_r2/matrix.c +++ b/keyboards/custommk/evo70_r2/matrix.c @@ -1,6 +1,7 @@ // Copyright 2023 David Hoelscher (@customMK) // SPDX-License-Identifier: GPL-2.0-or-later -#include "quantum.h" +#include "matrix.h" +#include // Pin definitions static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; diff --git a/keyboards/dc01/right/matrix.c b/keyboards/dc01/right/matrix.c index 04a6d03804ee58c9326f9922c19b4cb2c85d588f..f9b67381455831448f3fffed48ed55cd9f89df52 100644 --- a/keyboards/dc01/right/matrix.c +++ b/keyboards/dc01/right/matrix.c @@ -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 . */ -#include -#include #if defined(__AVR__) #include #include @@ -31,7 +29,6 @@ along with this program. If not, see . #include "timer.h" #include "i2c_slave.h" #include "lufa.h" -#include "quantum.h" #define SLAVE_I2C_ADDRESS 0x32 diff --git a/keyboards/dp60/matrix.c b/keyboards/dp60/matrix.c index e32c9a58f94bdbb62958bc716d6cb5b85843fd51..22156745f1737a4f96e01f4b98e2087a381780c5 100644 --- a/keyboards/dp60/matrix.c +++ b/keyboards/dp60/matrix.c @@ -13,7 +13,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "quantum.h" +#include "matrix.h" +#include "print.h" +#include "bitwise.h" +#include "wait.h" #ifndef DEBOUNCE # define DEBOUNCE 5 diff --git a/keyboards/duck/orion/v3/matrix.c b/keyboards/duck/orion/v3/matrix.c index c82d5dd9994439f55ed006dd849b04d44d01adb3..f392b9b19099c3c44d72600255331441c0d89840 100644 --- a/keyboards/duck/orion/v3/matrix.c +++ b/keyboards/duck/orion/v3/matrix.c @@ -14,7 +14,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "quantum.h" +#include "matrix.h" +#include "debug.h" +#include "bitwise.h" +#include "wait.h" #ifndef DEBOUNCE # define DEBOUNCE 5 diff --git a/keyboards/evyd13/wasdat/matrix.c b/keyboards/evyd13/wasdat/matrix.c index 60a1ea235a8b5af9e2026d551d78df4f2d69b316..ae4bb6cb3a36836e07584e6233ad9f203e5199c6 100644 --- a/keyboards/evyd13/wasdat/matrix.c +++ b/keyboards/evyd13/wasdat/matrix.c @@ -15,10 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include -#include #include "matrix.h" -#include "quantum.h" #include "sn74x138.h" static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; diff --git a/keyboards/evyd13/wasdat_code/matrix.c b/keyboards/evyd13/wasdat_code/matrix.c index f30ea3355a1b5812952de2bdd9725a0d87b1ead5..d392a31d7c7f811021321ca877818f14292c14f7 100644 --- a/keyboards/evyd13/wasdat_code/matrix.c +++ b/keyboards/evyd13/wasdat_code/matrix.c @@ -15,10 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include -#include #include "matrix.h" -#include "quantum.h" #include "sn74x138.h" static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; diff --git a/keyboards/geistmaschine/macropod/matrix.c b/keyboards/geistmaschine/macropod/matrix.c index ebc10e2e5addc2706c7c043025db29981b00f3ed..98796133f128425f0cb5ec51aecdf623e734c025 100644 --- a/keyboards/geistmaschine/macropod/matrix.c +++ b/keyboards/geistmaschine/macropod/matrix.c @@ -14,8 +14,9 @@ * along with this program. If not, see . */ +#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 diff --git a/keyboards/gl516/a52gl/matrix.c b/keyboards/gl516/a52gl/matrix.c index 1a97fdfd614e816338df82b666fd23e416840b80..af13768b08edda21e95e4f3ed94df524f1b3085a 100644 --- a/keyboards/gl516/a52gl/matrix.c +++ b/keyboards/gl516/a52gl/matrix.c @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ #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; diff --git a/keyboards/gl516/j73gl/matrix.c b/keyboards/gl516/j73gl/matrix.c index 1a97fdfd614e816338df82b666fd23e416840b80..af13768b08edda21e95e4f3ed94df524f1b3085a 100644 --- a/keyboards/gl516/j73gl/matrix.c +++ b/keyboards/gl516/j73gl/matrix.c @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ #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; diff --git a/keyboards/gl516/n51gl/matrix.c b/keyboards/gl516/n51gl/matrix.c index 1a97fdfd614e816338df82b666fd23e416840b80..af13768b08edda21e95e4f3ed94df524f1b3085a 100644 --- a/keyboards/gl516/n51gl/matrix.c +++ b/keyboards/gl516/n51gl/matrix.c @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ #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; diff --git a/keyboards/glenpickle/chimera_ergo/matrix.c b/keyboards/glenpickle/chimera_ergo/matrix.c index 32d7b09310ad3bd69ff69eab2607c84249ec2996..47c3c61e27f2653a7175e24d0e739273b5610bf1 100644 --- a/keyboards/glenpickle/chimera_ergo/matrix.c +++ b/keyboards/glenpickle/chimera_ergo/matrix.c @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "quantum.h" #include "matrix.h" #include "uart.h" diff --git a/keyboards/glenpickle/chimera_ls/matrix.c b/keyboards/glenpickle/chimera_ls/matrix.c index 9a69724eb78af4621eedeb8d1ea156545c5edd7c..15a29c5a8659549150440ba34d2afa0ab5f97919 100644 --- a/keyboards/glenpickle/chimera_ls/matrix.c +++ b/keyboards/glenpickle/chimera_ls/matrix.c @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "quantum.h" #include "matrix.h" #include "uart.h" diff --git a/keyboards/glenpickle/chimera_ortho/matrix.c b/keyboards/glenpickle/chimera_ortho/matrix.c index 9a69724eb78af4621eedeb8d1ea156545c5edd7c..15a29c5a8659549150440ba34d2afa0ab5f97919 100644 --- a/keyboards/glenpickle/chimera_ortho/matrix.c +++ b/keyboards/glenpickle/chimera_ortho/matrix.c @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "quantum.h" #include "matrix.h" #include "uart.h" diff --git a/keyboards/glenpickle/chimera_ortho_plus/matrix.c b/keyboards/glenpickle/chimera_ortho_plus/matrix.c index 32d7b09310ad3bd69ff69eab2607c84249ec2996..47c3c61e27f2653a7175e24d0e739273b5610bf1 100644 --- a/keyboards/glenpickle/chimera_ortho_plus/matrix.c +++ b/keyboards/glenpickle/chimera_ortho_plus/matrix.c @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "quantum.h" #include "matrix.h" #include "uart.h" diff --git a/keyboards/gmmk/numpad/matrix.c b/keyboards/gmmk/numpad/matrix.c index 99adb38f1843287dbceda73fa18f39dcfc5a6428..68d4ab65242fdb4c38370fbd053b356bef737879 100644 --- a/keyboards/gmmk/numpad/matrix.c +++ b/keyboards/gmmk/numpad/matrix.c @@ -4,15 +4,12 @@ /* * scan matrix */ -#include -#include +#include "matrix.h" +#include +#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 diff --git a/keyboards/halfcliff/matrix.c b/keyboards/halfcliff/matrix.c index fd18fd27bdab1713d5594fefd781d1a25af71305..99598dc1b78a213d0efbf370477e7907bfbeb6eb 100644 --- a/keyboards/halfcliff/matrix.c +++ b/keyboards/halfcliff/matrix.c @@ -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 . */ -#include -#include -#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 diff --git a/keyboards/handwired/dqz11n1g/matrix.c b/keyboards/handwired/dqz11n1g/matrix.c index d93dd853b6a8e134d4f16076a56d18303b6f7e9c..398f961aa5f5a8356bf5283724fa49908871a784 100644 --- a/keyboards/handwired/dqz11n1g/matrix.c +++ b/keyboards/handwired/dqz11n1g/matrix.c @@ -15,14 +15,7 @@ along with this program. If not, see . */ -#include -#include -#include - -#include - #include "spi_master.h" -#include "quantum.h" #include "matrix.h" static pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; diff --git a/keyboards/handwired/dygma/raise/matrix.c b/keyboards/handwired/dygma/raise/matrix.c index bbcf697a594359b01636cae3240497c92cd2121b..3f241e8973dec28bb6de4d91e7c80b3972a46696 100644 --- a/keyboards/handwired/dygma/raise/matrix.c +++ b/keyboards/handwired/dygma/raise/matrix.c @@ -13,8 +13,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#include "quantum.h" +#include "matrix.h" #include "i2c_master.h" +#include "wait.h" #include #include "wire-protocol-constants.h" diff --git a/keyboards/handwired/symmetric70_proto/matrix_debug/matrix.c b/keyboards/handwired/symmetric70_proto/matrix_debug/matrix.c index 8a303714cf0704fae14b441af0f29b7b9ed9fe79..22d92dd99a1b8518f826d39eb8c76653aa84d21c 100644 --- a/keyboards/handwired/symmetric70_proto/matrix_debug/matrix.c +++ b/keyboards/handwired/symmetric70_proto/matrix_debug/matrix.c @@ -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 . */ -#include -#include #include "util.h" #include "matrix.h" #include "debounce.h" -#include "quantum.h" #ifndef readPort # include "gpio_extr.h" #endif diff --git a/keyboards/handwired/symmetric70_proto/matrix_fast/matrix.c b/keyboards/handwired/symmetric70_proto/matrix_fast/matrix.c index 2bc97bd9e81b75da9fc3c72d46fb4e833819f0eb..3acbdfbeda6bff3c233ee332525d79f3c8dfbaad 100644 --- a/keyboards/handwired/symmetric70_proto/matrix_fast/matrix.c +++ b/keyboards/handwired/symmetric70_proto/matrix_fast/matrix.c @@ -15,9 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ // clang-format off -#include -#include -#include #ifndef readPort # include "gpio_extr.h" #endif @@ -25,7 +22,6 @@ along with this program. If not, see . #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)) diff --git a/keyboards/hazel/bad_wings/matrix.c b/keyboards/hazel/bad_wings/matrix.c index 496bebd58f9cf9f75c9f659119005e70db91cb29..8a56a927c15c3cfc8bdea117d4ae6a5c347dfd85 100644 --- a/keyboards/hazel/bad_wings/matrix.c +++ b/keyboards/hazel/bad_wings/matrix.c @@ -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 /* memset */ -#include /* close */ -#include "quantum.h" #include "matrix.h" +#include +#include "spi_master.h" +#include "debug.h" +#include "wait.h" #if (!defined(SHIFTREG_MATRIX_COL_CS)) # error Missing shift register I/O pin definitions diff --git a/keyboards/hhkb/yang/matrix.c b/keyboards/hhkb/yang/matrix.c index f0eccc899dc74cb5bb5d60b6d905ff8366ffcab4..c82c77bed3463fd0acf0a755f002d38dc89b8683 100644 --- a/keyboards/hhkb/yang/matrix.c +++ b/keyboards/hhkb/yang/matrix.c @@ -16,7 +16,12 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "quantum.h" +#include "matrix.h" +#include "debug.h" +#include "timer.h" +#include "wait.h" +#include "suspend.h" +#include #ifdef BLUETOOTH_ENABLE # include "adafruit_ble.h" diff --git a/keyboards/hineybush/hbcp/matrix.c b/keyboards/hineybush/hbcp/matrix.c index d493a7e9ef651614841545f18e6b1671c60af4a3..69ae6ab7b789435828861c8b15c18abcbd18c34f 100644 --- a/keyboards/hineybush/hbcp/matrix.c +++ b/keyboards/hineybush/hbcp/matrix.c @@ -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 . */ -#include -#include #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; diff --git a/keyboards/ibm/model_m/mschwingen/matrix.c b/keyboards/ibm/model_m/mschwingen/matrix.c index 361803edec422bd6ca66cd7fe82cf76a0659e079..85df5e5d6fabeb66ad829488247db5d6024aa383 100644 --- a/keyboards/ibm/model_m/mschwingen/matrix.c +++ b/keyboards/ibm/model_m/mschwingen/matrix.c @@ -14,12 +14,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#include -#include #include "util.h" #include "matrix.h" #include "debounce.h" -#include "quantum.h" #include "spi_master.h" #include "print.h" #include "mschwingen.h" diff --git a/keyboards/jones/v03/matrix.c b/keyboards/jones/v03/matrix.c index efcd7043e64c86b8b6bffbfc96a703ebce35543c..445c1acdc0715c59c3f3ea998658133cce839243 100644 --- a/keyboards/jones/v03/matrix.c +++ b/keyboards/jones/v03/matrix.c @@ -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 . */ -#include -#include #include "matrix.h" -#include "quantum.h" #define ROW_SHIFTER ((uint16_t)1) diff --git a/keyboards/jones/v03_1/matrix.c b/keyboards/jones/v03_1/matrix.c index efcd7043e64c86b8b6bffbfc96a703ebce35543c..445c1acdc0715c59c3f3ea998658133cce839243 100644 --- a/keyboards/jones/v03_1/matrix.c +++ b/keyboards/jones/v03_1/matrix.c @@ -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 . */ -#include -#include #include "matrix.h" -#include "quantum.h" #define ROW_SHIFTER ((uint16_t)1) diff --git a/keyboards/joshajohnson/hub16/matrix.c b/keyboards/joshajohnson/hub16/matrix.c index 4f32070e66edfce461c9ebd8c07f4ba9ea7f0262..0fe1d41dad83f26e5560cede0c5a80da7d1fa921 100644 --- a/keyboards/joshajohnson/hub16/matrix.c +++ b/keyboards/joshajohnson/hub16/matrix.c @@ -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 . */ -#include -#include #include "wait.h" #include "util.h" #include "matrix.h" -#include "quantum.h" // Encoder things #define SWITCH_1 F7 diff --git a/keyboards/kagizaraya/chidori/matrix.c b/keyboards/kagizaraya/chidori/matrix.c index 6228125d923184b40a2a31948b326458bf916e27..e506916f389326edbb23e25f72970cbce66782b9 100644 --- a/keyboards/kagizaraya/chidori/matrix.c +++ b/keyboards/kagizaraya/chidori/matrix.c @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "quantum.h" #include "matrix.h" #include "board.h" diff --git a/keyboards/kakunpc/angel64/alpha/matrix.c b/keyboards/kakunpc/angel64/alpha/matrix.c index 7abc50005b65b1cda0ede04724b51a753f50cd24..5d731b10683a8220821cf027038cfc7b0872b697 100644 --- a/keyboards/kakunpc/angel64/alpha/matrix.c +++ b/keyboards/kakunpc/angel64/alpha/matrix.c @@ -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 . */ -#include -#include #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") diff --git a/keyboards/kakunpc/angel64/rev1/matrix.c b/keyboards/kakunpc/angel64/rev1/matrix.c index 7abc50005b65b1cda0ede04724b51a753f50cd24..5d731b10683a8220821cf027038cfc7b0872b697 100644 --- a/keyboards/kakunpc/angel64/rev1/matrix.c +++ b/keyboards/kakunpc/angel64/rev1/matrix.c @@ -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 . */ -#include -#include #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") diff --git a/keyboards/kakunpc/choc_taro/matrix.c b/keyboards/kakunpc/choc_taro/matrix.c index 02421551da5549ea9dbb29194058e7694acf6996..4547f1a04790ca11c0df68aa0ca72a32e44faccf 100644 --- a/keyboards/kakunpc/choc_taro/matrix.c +++ b/keyboards/kakunpc/choc_taro/matrix.c @@ -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 . */ -#include -#include #include "matrix.h" -#include "quantum.h" #if (MATRIX_COLS <= 8) # define ROW_SHIFTER ((uint8_t)1) diff --git a/keyboards/kakunpc/thedogkeyboard/matrix.c b/keyboards/kakunpc/thedogkeyboard/matrix.c index 7abc50005b65b1cda0ede04724b51a753f50cd24..5d731b10683a8220821cf027038cfc7b0872b697 100644 --- a/keyboards/kakunpc/thedogkeyboard/matrix.c +++ b/keyboards/kakunpc/thedogkeyboard/matrix.c @@ -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 . */ -#include -#include #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") diff --git a/keyboards/kbdmania/kmac/matrix.c b/keyboards/kbdmania/kmac/matrix.c index 65698670325ee9d092d2c74d218e370caa3821bd..1843d19fd295e3040d3a5b8a2ea7655f30833ab4 100644 --- a/keyboards/kbdmania/kmac/matrix.c +++ b/keyboards/kbdmania/kmac/matrix.c @@ -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 . */ -#include -#include #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") diff --git a/keyboards/kbdmania/kmac_pad/matrix.c b/keyboards/kbdmania/kmac_pad/matrix.c index 476e40f514417db98787c763ae991897abc6ac0d..ad7919e33cf76484f433b0a12e4547297283eb66 100644 --- a/keyboards/kbdmania/kmac_pad/matrix.c +++ b/keyboards/kbdmania/kmac_pad/matrix.c @@ -17,7 +17,6 @@ along with this program. If not, see . #include "wait.h" #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; diff --git a/keyboards/keyboardio/model01/matrix.c b/keyboards/keyboardio/model01/matrix.c index 4b788d2812896e8662967ada659ba0696b27365f..20359ca971812ee3be48e3093aab1129d52500a6 100644 --- a/keyboards/keyboardio/model01/matrix.c +++ b/keyboards/keyboardio/model01/matrix.c @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#include "quantum.h" +#include "matrix.h" #include "i2c_master.h" #include #include "model01.h" diff --git a/keyboards/keychron/c2_pro/matrix.c b/keyboards/keychron/c2_pro/matrix.c index 5065f97aa7d4b9f1dc21010222c88ca221a7024c..8c954c73d08ca8942f16e8c6878e6db638808be2 100644 --- a/keyboards/keychron/c2_pro/matrix.c +++ b/keyboards/keychron/c2_pro/matrix.c @@ -14,7 +14,9 @@ * along with this program. If not, see . */ -#include "quantum.h" +#include "matrix.h" +#include "atomic_util.h" +#include #ifndef SHIFT_COL_START # define SHIFT_COL_START 8 diff --git a/keyboards/keychron/q10/matrix.c b/keyboards/keychron/q10/matrix.c index 5c035b0e42ec7561ee0d0e8fec9317b7f11b6ddd..2c2d2ccc378e49a5197411a0460e78985d90ad08 100644 --- a/keyboards/keychron/q10/matrix.c +++ b/keyboards/keychron/q10/matrix.c @@ -15,7 +15,8 @@ */ #include "matrix.h" -#include "quantum.h" +#include "atomic_util.h" +#include // Pin connected to DS of 74HC595 #define DATA_PIN A7 diff --git a/keyboards/keychron/q12/matrix.c b/keyboards/keychron/q12/matrix.c index 8229517fd9ce3f7f534a517fcd2ea00c858355be..cf8361bd23ecb57e3bca76f489d88c5f8b1875f1 100644 --- a/keyboards/keychron/q12/matrix.c +++ b/keyboards/keychron/q12/matrix.c @@ -15,7 +15,8 @@ */ #include "matrix.h" -#include "quantum.h" +#include "atomic_util.h" +#include // Pin connected to DS of 74HC595 #define DATA_PIN C15 diff --git a/keyboards/keychron/q1v2/matrix.c b/keyboards/keychron/q1v2/matrix.c index d008a7938414d992cd284d87fa08636d618a3b37..2bdf4bdec7bc6ec95d3ac1854376fe53d312f3df 100644 --- a/keyboards/keychron/q1v2/matrix.c +++ b/keyboards/keychron/q1v2/matrix.c @@ -14,7 +14,9 @@ * along with this program. If not, see . */ -#include "quantum.h" +#include "matrix.h" +#include "atomic_util.h" +#include // Pin connected to DS of 74HC595 #define DATA_PIN A7 diff --git a/keyboards/keychron/q3/matrix.c b/keyboards/keychron/q3/matrix.c index 26830780ffe4ddeb9caa7b6bce9f408c3ab5fdbc..188156789b3cfc7314f63bdf8307715c8cb35cda 100644 --- a/keyboards/keychron/q3/matrix.c +++ b/keyboards/keychron/q3/matrix.c @@ -15,7 +15,8 @@ */ #include "matrix.h" -#include "quantum.h" +#include "atomic_util.h" +#include // Pin connected to DS of 74HC595 #define DATA_PIN A7 diff --git a/keyboards/keychron/q5/matrix.c b/keyboards/keychron/q5/matrix.c index 28ef877504a88cd1b210dcbd40ff729e303b75d7..4809b20677c14b56c98f0d03bf53a98bbd09f98d 100644 --- a/keyboards/keychron/q5/matrix.c +++ b/keyboards/keychron/q5/matrix.c @@ -15,7 +15,8 @@ */ #include "matrix.h" -#include "quantum.h" +#include "atomic_util.h" +#include // Pin connected to DS of 74HC595 #define DATA_PIN C15 diff --git a/keyboards/keychron/q6/matrix.c b/keyboards/keychron/q6/matrix.c index 11f3432e6b185b07e475c66321d24c7267c08e1a..c59b229cfa6c45a97221eb493e6a0a3bb8b7c675 100644 --- a/keyboards/keychron/q6/matrix.c +++ b/keyboards/keychron/q6/matrix.c @@ -15,7 +15,8 @@ */ #include "matrix.h" -#include "quantum.h" +#include "atomic_util.h" +#include // Pin connected to DS of 74HC595 #define DATA_PIN C15 diff --git a/keyboards/keychron/q65/matrix.c b/keyboards/keychron/q65/matrix.c index 5785f5d5709bf57e3512b0fb6c3ea396f42ef388..206e3012267714787ad171cffc4fc7205ac185d0 100644 --- a/keyboards/keychron/q65/matrix.c +++ b/keyboards/keychron/q65/matrix.c @@ -15,7 +15,8 @@ */ #include "matrix.h" -#include "quantum.h" +#include "atomic_util.h" +#include // Pin connected to DS of 74HC595 #define DATA_PIN C15 diff --git a/keyboards/keychron/v1/matrix.c b/keyboards/keychron/v1/matrix.c index 82a883834f822cf4d743fd08ee79aecdabcc760c..7b9136d49048fd93cac657025a9dfecdd21cf655 100644 --- a/keyboards/keychron/v1/matrix.c +++ b/keyboards/keychron/v1/matrix.c @@ -15,7 +15,8 @@ */ #include "matrix.h" -#include "quantum.h" +#include "atomic_util.h" +#include // Pin connected to DS of 74HC595 #define DATA_PIN A7 diff --git a/keyboards/keychron/v10/matrix.c b/keyboards/keychron/v10/matrix.c index 9269fed8d6691af3d0f8a95f8ee4535ef7edb524..87cda1774adf36cf576d3892e0de470221f73b26 100644 --- a/keyboards/keychron/v10/matrix.c +++ b/keyboards/keychron/v10/matrix.c @@ -15,7 +15,8 @@ */ #include "matrix.h" -#include "quantum.h" +#include "atomic_util.h" +#include #ifndef PIN_USED_74HC595 # define PIN_USED_74HC595 8 diff --git a/keyboards/keychron/v3/matrix.c b/keyboards/keychron/v3/matrix.c index 44a1676afa99fef133ffe0eef51ae4aed5364f5d..c0c39d5b5fd6867fc9f059a5d28dded046ae1988 100644 --- a/keyboards/keychron/v3/matrix.c +++ b/keyboards/keychron/v3/matrix.c @@ -15,7 +15,8 @@ */ #include "matrix.h" -#include "quantum.h" +#include "atomic_util.h" +#include // Pin connected to DS of 74HC595 #define DATA_PIN A7 diff --git a/keyboards/keychron/v5/matrix.c b/keyboards/keychron/v5/matrix.c index ced844288188b02c65383082ea6e656cb68810ef..fc3a1c4c2c4e683ed53391e7c007c27e719cc4cd 100644 --- a/keyboards/keychron/v5/matrix.c +++ b/keyboards/keychron/v5/matrix.c @@ -15,7 +15,8 @@ */ #include "matrix.h" -#include "quantum.h" +#include "atomic_util.h" +#include // Pin connected to DS of 74HC595 #define DATA_PIN C15 diff --git a/keyboards/keychron/v6/matrix.c b/keyboards/keychron/v6/matrix.c index 9269fed8d6691af3d0f8a95f8ee4535ef7edb524..87cda1774adf36cf576d3892e0de470221f73b26 100644 --- a/keyboards/keychron/v6/matrix.c +++ b/keyboards/keychron/v6/matrix.c @@ -15,7 +15,8 @@ */ #include "matrix.h" -#include "quantum.h" +#include "atomic_util.h" +#include #ifndef PIN_USED_74HC595 # define PIN_USED_74HC595 8 diff --git a/keyboards/kinesis/nguyenvietyen/matrix.c b/keyboards/kinesis/nguyenvietyen/matrix.c index d6ea67da681b9c7b504d1587965fa28eac9132ac..4e4ca6f55cc3ba22ddb57b449a40ba0aaa416d79 100644 --- a/keyboards/kinesis/nguyenvietyen/matrix.c +++ b/keyboards/kinesis/nguyenvietyen/matrix.c @@ -3,8 +3,6 @@ #include "matrix.h" -#include "quantum.h" - static matrix_row_t read_row(uint8_t row) { matrix_io_delay(); // without this wait read unstable value. diff --git a/keyboards/matrix/abelx/matrix.c b/keyboards/matrix/abelx/matrix.c index d8d87b7d895d1225a003a08a5178c4d2e5be91f2..d74ed957751ffc986c53d7011a0d1d6bb42cc04a 100644 --- a/keyboards/matrix/abelx/matrix.c +++ b/keyboards/matrix/abelx/matrix.c @@ -17,10 +17,6 @@ * along with this program. If not, see . */ -#include -#include -#include -#include "quantum.h" #include "matrix.h" #include "tca6424.h" #include "abelx.h" diff --git a/keyboards/matrix/m12og/rev1/matrix.c b/keyboards/matrix/m12og/rev1/matrix.c index 9c36153da106861f05b7b2989a89f5db125da3c3..c127aa35b902fb02e122817a1f96c4f965004d2d 100644 --- a/keyboards/matrix/m12og/rev1/matrix.c +++ b/keyboards/matrix/m12og/rev1/matrix.c @@ -14,12 +14,9 @@ * along with this program. If not, see . */ -#include -#include #include "util.h" #include "matrix.h" #include "debounce.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; diff --git a/keyboards/matrix/m20add/matrix.c b/keyboards/matrix/m20add/matrix.c index e9ddbdff62b4121fc20fcbfb7285c617489808bf..85f5863725b4384ac24858c9f478a9e7677e106a 100644 --- a/keyboards/matrix/m20add/matrix.c +++ b/keyboards/matrix/m20add/matrix.c @@ -2,10 +2,6 @@ * matrix.c */ -#include -#include -#include -#include "quantum.h" #include "matrix.h" #include "tca6424.h" #include "m20add.h" diff --git a/keyboards/matrix/noah/matrix.c b/keyboards/matrix/noah/matrix.c index 90e7006b7859e427129ca30c283cc195b9a7c100..14e8188cb584774cc69515e5f4883a1828132a2f 100644 --- a/keyboards/matrix/noah/matrix.c +++ b/keyboards/matrix/noah/matrix.c @@ -2,16 +2,10 @@ * matrix.c */ -#include -#include -#include -#include -#include -#include "quantum.h" +#include "matrix.h" #include "timer.h" #include "wait.h" #include "print.h" -#include "matrix.h" #ifndef DEBOUNCE # define DEBOUNCE 5 @@ -167,16 +161,16 @@ matrix_row_t matrix_get_row(uint8_t row) { return matrix[row]; } void matrix_print(void) { - printf("\nr/c 01234567\n"); + xprintf("\nr/c 01234567\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - printf("%X0: ", row); + xprintf("%X0: ", row); matrix_row_t data = matrix_get_row(row); for (int col = 0; col < MATRIX_COLS; col++) { if (data & (1<. */ -#include -#include #include "wait.h" #include "util.h" #include "matrix.h" #include "debounce.h" -#include "quantum.h" #ifdef DIRECT_PINS static pin_t direct_pins[MATRIX_ROWS][MATRIX_COLS] = DIRECT_PINS; diff --git a/keyboards/mechlovin/infinity87/rev2/matrix.c b/keyboards/mechlovin/infinity87/rev2/matrix.c index b1b0d20654c80a58d1a9577e801a829cf19829eb..62a56f687cb20f52e3ec261e826def0872df7dde 100644 --- a/keyboards/mechlovin/infinity87/rev2/matrix.c +++ b/keyboards/mechlovin/infinity87/rev2/matrix.c @@ -16,13 +16,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include -#include #include "wait.h" #include "util.h" #include "matrix.h" #include "debounce.h" -#include "quantum.h" #ifdef DIRECT_PINS static pin_t direct_pins[MATRIX_ROWS][MATRIX_COLS] = DIRECT_PINS; diff --git a/keyboards/mechlovin/infinity875/matrix.c b/keyboards/mechlovin/infinity875/matrix.c index b1b0d20654c80a58d1a9577e801a829cf19829eb..62a56f687cb20f52e3ec261e826def0872df7dde 100644 --- a/keyboards/mechlovin/infinity875/matrix.c +++ b/keyboards/mechlovin/infinity875/matrix.c @@ -16,13 +16,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include -#include #include "wait.h" #include "util.h" #include "matrix.h" #include "debounce.h" -#include "quantum.h" #ifdef DIRECT_PINS static pin_t direct_pins[MATRIX_ROWS][MATRIX_COLS] = DIRECT_PINS; diff --git a/keyboards/mechlovin/olly/jf/rev1/matrix.c b/keyboards/mechlovin/olly/jf/rev1/matrix.c index c01879c9a54d77600bca21c2132f911a6afc54b6..2abda55d0e88fb504ca512d4d411a8f7e9750e7a 100644 --- a/keyboards/mechlovin/olly/jf/rev1/matrix.c +++ b/keyboards/mechlovin/olly/jf/rev1/matrix.c @@ -16,13 +16,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include -#include #include "wait.h" #include "util.h" #include "matrix.h" #include "debounce.h" -#include "quantum.h" #ifdef DIRECT_PINS static pin_t direct_pins[MATRIX_ROWS][MATRIX_COLS] = DIRECT_PINS; diff --git a/keyboards/mechlovin/serratus/matrix.c b/keyboards/mechlovin/serratus/matrix.c index b1b0d20654c80a58d1a9577e801a829cf19829eb..62a56f687cb20f52e3ec261e826def0872df7dde 100644 --- a/keyboards/mechlovin/serratus/matrix.c +++ b/keyboards/mechlovin/serratus/matrix.c @@ -16,13 +16,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include -#include #include "wait.h" #include "util.h" #include "matrix.h" #include "debounce.h" -#include "quantum.h" #ifdef DIRECT_PINS static pin_t direct_pins[MATRIX_ROWS][MATRIX_COLS] = DIRECT_PINS; diff --git a/keyboards/mexsistor/ludmila/matrix.c b/keyboards/mexsistor/ludmila/matrix.c index 338286a7db676e269f5fbd5df20ce06abb09cd23..5d27ec683fae4a16351aba74cb300e76981a6a45 100644 --- a/keyboards/mexsistor/ludmila/matrix.c +++ b/keyboards/mexsistor/ludmila/matrix.c @@ -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 . */ -#include -#include #include "wait.h" #include "util.h" #include "matrix.h" -#include "quantum.h" // Encoder things #define ENC_SW F7 diff --git a/keyboards/miiiw/blackio83/matrix.c b/keyboards/miiiw/blackio83/matrix.c index 841ff3c16e69b6266238088411edd3da4f6fd9f1..ab252f919b2293d0add1a676736f8df67e0972e7 100644 --- a/keyboards/miiiw/blackio83/matrix.c +++ b/keyboards/miiiw/blackio83/matrix.c @@ -14,8 +14,8 @@ * along with this program. If not, see . */ -#include "quantum.h" #include "matrix.h" +#include "wait.h" #include "common/shift_register.h" static uint8_t read_rows(void); diff --git a/keyboards/mitosis/matrix.c b/keyboards/mitosis/matrix.c index e5389bb113d6370eed327e645e53ecc6293d15f4..f122b9895705935b7300ad0c585d1efbfbd4b8f1 100644 --- a/keyboards/mitosis/matrix.c +++ b/keyboards/mitosis/matrix.c @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "quantum.h" #include "matrix.h" #include "uart.h" diff --git a/keyboards/moon/matrix.c b/keyboards/moon/matrix.c index 8c9b6214dbaa4e3fc7b6b4a0fe9ed4142eb67ab6..1cb9590e9f9085e302bd0143978fee6d4b358b1a 100644 --- a/keyboards/moon/matrix.c +++ b/keyboards/moon/matrix.c @@ -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 . */ -#include -#include #include "wait.h" #include "print.h" #include "debug.h" #include "util.h" #include "matrix.h" #include "debounce.h" -#include "quantum.h" #include "pca9555.h" /* diff --git a/keyboards/mt/split75/matrix.c b/keyboards/mt/split75/matrix.c index 196a543faafb802539164b6461a533bfd4c07cf0..df5e9c056b5eb79bfd011f2c126bd1b89cc75c87 100644 --- a/keyboards/mt/split75/matrix.c +++ b/keyboards/mt/split75/matrix.c @@ -15,9 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include -#include -#include "quantum.h" +#include "matrix.h" #include "i2c_master.h" #define RIGHT_HALF diff --git a/keyboards/nullbitsco/nibble/matrix.c b/keyboards/nullbitsco/nibble/matrix.c index 496c5dbe322fbfdccf5d0c6c9e59f4e1dd58862c..6508b704e9ca4b62fb1f198442a6bfb127603ca0 100644 --- a/keyboards/nullbitsco/nibble/matrix.c +++ b/keyboards/nullbitsco/nibble/matrix.c @@ -13,7 +13,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#include "quantum.h" +#include "matrix.h" +#include "wait.h" #define COL_SHIFTER ((uint32_t)1) diff --git a/keyboards/nullbitsco/snap/matrix.c b/keyboards/nullbitsco/snap/matrix.c index ceb9cd89841bf99fa0c50248965841646c5c0c8b..3cd3f5c37e397bfc76fed47c8684321443453517 100644 --- a/keyboards/nullbitsco/snap/matrix.c +++ b/keyboards/nullbitsco/snap/matrix.c @@ -13,13 +13,10 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#include -#include -#include -#include "util.h" #include "matrix.h" +#include #include "split_util.h" -#include "quantum.h" +#include "wait.h" #define VIRT_COLS_PER_HAND 1 #define PHYS_COLS_PER_HAND (MATRIX_COLS - VIRT_COLS_PER_HAND) diff --git a/keyboards/oddforge/vea/matrix.c b/keyboards/oddforge/vea/matrix.c index 8b054ccbe04d87a12646f5dc79f43ad80d0a5831..36d4d3d353a5fc9f62f2d4d5772d992acbea6e98 100644 --- a/keyboards/oddforge/vea/matrix.c +++ b/keyboards/oddforge/vea/matrix.c @@ -15,9 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include -#include -#include "quantum.h" +#include "matrix.h" #include "i2c_master.h" #define RIGHT_HALF diff --git a/keyboards/om60/matrix.c b/keyboards/om60/matrix.c index 368678046895b402b07611100a239ea546c7c00e..b0e252ec458730cce0d836663ea89ff49f1f9326 100644 --- a/keyboards/om60/matrix.c +++ b/keyboards/om60/matrix.c @@ -15,7 +15,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 . */ -#include "quantum.h" +#include "matrix.h" +#include "wait.h" #if (MATRIX_COLS <= 8) # define ROW_SHIFTER ((uint8_t)1) diff --git a/keyboards/pierce/matrix.c b/keyboards/pierce/matrix.c index 5023024b8b5aa6480d27494573d90b064caaa9cb..bcc88f7aa9957ce135e342f401b6b649129cb642 100644 --- a/keyboards/pierce/matrix.c +++ b/keyboards/pierce/matrix.c @@ -14,7 +14,7 @@ * along with this program. If not, see . */ -#include "quantum.h" +#include "matrix.h" #include "i2c_slave.h" #define MY_I2C_ADDRESS (0x20U << 1) diff --git a/keyboards/planck/rev6_drop/matrix.c b/keyboards/planck/rev6_drop/matrix.c index e31e473ae2517a198a3bc80891213676a78971cf..d140356738843c8462955b5d8fb2e19593cc4c21 100644 --- a/keyboards/planck/rev6_drop/matrix.c +++ b/keyboards/planck/rev6_drop/matrix.c @@ -15,7 +15,8 @@ * along with this program. If not, see . */ -#include "quantum.h" +#include "matrix.h" +#include "wait.h" /* matrix state(1:on, 0:off) */ static pin_t matrix_row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; diff --git a/keyboards/planck/rev7/matrix.c b/keyboards/planck/rev7/matrix.c index 350ce93ce049c80f8a0764542526b9c66acd2ffa..8cadfa5e8d5acbff97fb7a8a55884115aeecd648 100644 --- a/keyboards/planck/rev7/matrix.c +++ b/keyboards/planck/rev7/matrix.c @@ -15,11 +15,10 @@ * along with this program. If not, see . */ -#include "gpio.h" -#include "hal_pal.h" -#include "hal_pal_lld.h" -#include "quantum.h" +#include "matrix.h" +#include #include +#include "wait.h" // STM32-specific watchdog config calculations // timeout = 31.25us * PR * (RL + 1) diff --git a/keyboards/preonic/rev3_drop/matrix.c b/keyboards/preonic/rev3_drop/matrix.c index 60718caaba899e67acc8de771cb4844b31976a9f..1d9ab5e8118be840c782ae354937d33837a99fd3 100644 --- a/keyboards/preonic/rev3_drop/matrix.c +++ b/keyboards/preonic/rev3_drop/matrix.c @@ -15,7 +15,10 @@ * along with this program. If not, see . */ -#include "quantum.h" +#include "matrix.h" +#include "debug.h" +#include "timer.h" +#include "wait.h" #ifndef DEBOUNCE # define DEBOUNCE 5 diff --git a/keyboards/qvex/lynepad2/matrix.c b/keyboards/qvex/lynepad2/matrix.c index 878ee6e2f72485bf2374634491fd4c536704d0a8..89c56b8d406244bdd6530393465378914c8f6631 100644 --- a/keyboards/qvex/lynepad2/matrix.c +++ b/keyboards/qvex/lynepad2/matrix.c @@ -14,13 +14,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include -#include -#include -#include "util.h" #include "matrix.h" -#include "debounce.h" -#include "quantum.h" +#include "wait.h" static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS; diff --git a/keyboards/rate/pistachio_pro/matrix.c b/keyboards/rate/pistachio_pro/matrix.c index 6cbfb6dfea18e4e507a5fd845478b60c7de2e6e1..bb962c76e2239917c0074b92b63d3e25cff14d77 100644 --- a/keyboards/rate/pistachio_pro/matrix.c +++ b/keyboards/rate/pistachio_pro/matrix.c @@ -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 . */ -#include -#include #include "matrix.h" -#include "quantum.h" +#include "atomic_util.h" static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS; diff --git a/keyboards/redox/wireless/matrix.c b/keyboards/redox/wireless/matrix.c index 9c50c9ceceadfb1a6f6e0db2e829b6aca65bcf96..92960b916dfcd098f17e98c009833cb489b72ada 100644 --- a/keyboards/redox/wireless/matrix.c +++ b/keyboards/redox/wireless/matrix.c @@ -14,7 +14,6 @@ * along with this program. If not, see . */ -#include "quantum.h" #include "matrix.h" #include "uart.h" diff --git a/keyboards/redscarf_iiplus/verb/matrix.c b/keyboards/redscarf_iiplus/verb/matrix.c index aa2cd8e51079aec074af549df349574d7a7683ff..391a923f16576ad6177cc91d13a847c6b5cfe446 100755 --- a/keyboards/redscarf_iiplus/verb/matrix.c +++ b/keyboards/redscarf_iiplus/verb/matrix.c @@ -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 . */ -#include -#include #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") diff --git a/keyboards/redscarf_iiplus/verc/matrix.c b/keyboards/redscarf_iiplus/verc/matrix.c index aa2cd8e51079aec074af549df349574d7a7683ff..391a923f16576ad6177cc91d13a847c6b5cfe446 100755 --- a/keyboards/redscarf_iiplus/verc/matrix.c +++ b/keyboards/redscarf_iiplus/verc/matrix.c @@ -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 . */ -#include -#include #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") diff --git a/keyboards/redscarf_iiplus/verd/matrix.c b/keyboards/redscarf_iiplus/verd/matrix.c index 382847e9419999b2d31e3e6ca1be33abafba2464..b2046db2cef83a33396bb00738999a6ecf1a8edb 100644 --- a/keyboards/redscarf_iiplus/verd/matrix.c +++ b/keyboards/redscarf_iiplus/verd/matrix.c @@ -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 . */ -#include -#include #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") diff --git a/keyboards/ryanskidmore/rskeys100/matrix.c b/keyboards/ryanskidmore/rskeys100/matrix.c index faefb29c84e0252c6b136ce151ea9a3c04d250d8..2ab9eafd7f5649c69a3d922cd261c5487a942ac9 100644 --- a/keyboards/ryanskidmore/rskeys100/matrix.c +++ b/keyboards/ryanskidmore/rskeys100/matrix.c @@ -17,10 +17,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include #include "matrix.h" #include -#include "quantum.h" static const uint32_t col_values[24] = SHR_COLS; diff --git a/keyboards/satt/comet46/matrix.c b/keyboards/satt/comet46/matrix.c index 9a69724eb78af4621eedeb8d1ea156545c5edd7c..15a29c5a8659549150440ba34d2afa0ab5f97919 100644 --- a/keyboards/satt/comet46/matrix.c +++ b/keyboards/satt/comet46/matrix.c @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "quantum.h" #include "matrix.h" #include "uart.h" diff --git a/keyboards/sirius/uni660/rev1/matrix.c b/keyboards/sirius/uni660/rev1/matrix.c index f65bf0f26a0f35958b5f6e336d4a27e91564f67a..3fe3563c21171d36c305b5bf19cfacca479c9d18 100644 --- a/keyboards/sirius/uni660/rev1/matrix.c +++ b/keyboards/sirius/uni660/rev1/matrix.c @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "quantum.h" #include "matrix.h" #include "uart.h" diff --git a/keyboards/sirius/uni660/rev2/matrix.c b/keyboards/sirius/uni660/rev2/matrix.c index f65bf0f26a0f35958b5f6e336d4a27e91564f67a..3fe3563c21171d36c305b5bf19cfacca479c9d18 100644 --- a/keyboards/sirius/uni660/rev2/matrix.c +++ b/keyboards/sirius/uni660/rev2/matrix.c @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "quantum.h" #include "matrix.h" #include "uart.h" diff --git a/keyboards/spiderisland/split78/matrix.c b/keyboards/spiderisland/split78/matrix.c index 31ee29eaab641e5ea6c373c6e2188b0cb474fa6e..23b37453517d4648fd0b42362a34a69f1fdf36b2 100644 --- a/keyboards/spiderisland/split78/matrix.c +++ b/keyboards/spiderisland/split78/matrix.c @@ -15,9 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include -#include -#include "quantum.h" +#include "matrix.h" #include "i2c_master.h" #define RIGHT_HALF diff --git a/keyboards/sthlmkb/lagom/matrix.c b/keyboards/sthlmkb/lagom/matrix.c index d3dc0cb12aac361cfeca267d0adcc244f6914d19..6a16722ad082b9692ad2882b71a555fdd8e30bb6 100644 --- a/keyboards/sthlmkb/lagom/matrix.c +++ b/keyboards/sthlmkb/lagom/matrix.c @@ -13,7 +13,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#include "quantum.h" +#include "matrix.h" +#include "wait.h" #define COL_SHIFTER ((uint32_t)1) diff --git a/keyboards/switchplate/southpaw_65/matrix.c b/keyboards/switchplate/southpaw_65/matrix.c index a7008e9c7d0c32eca3172bab99ca86c2139ebb65..059934bf441469ada7274092d3974f72160beea5 100644 --- a/keyboards/switchplate/southpaw_65/matrix.c +++ b/keyboards/switchplate/southpaw_65/matrix.c @@ -13,15 +13,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#include -#include -#include -#include #include "matrix.h" #include "pca9555.h" -#include "quantum.h" - -#include "debug.h" // PCA9555 slave addresses #define IC1 0x20 diff --git a/keyboards/telophase/matrix.c b/keyboards/telophase/matrix.c index a18a2b20eddefdb0e7356a9588f949d1afea0382..c74ba0d7c708cd0eca34753f2dfc33c157f1e257 100644 --- a/keyboards/telophase/matrix.c +++ b/keyboards/telophase/matrix.c @@ -16,7 +16,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "quantum.h" #include "matrix.h" #include "uart.h" diff --git a/keyboards/touchpad/matrix.c b/keyboards/touchpad/matrix.c index 87944cb7cc65c4f85e3971a7e8090c9694bbc6e9..7929e0969b5660ac5b89aec4e0cb26812cabf6b3 100644 --- a/keyboards/touchpad/matrix.c +++ b/keyboards/touchpad/matrix.c @@ -23,7 +23,8 @@ SOFTWARE. #include "matrix.h" #include "i2c_master.h" -#include "quantum.h" +#include "print.h" +#include #define VIBRATE_LENGTH 50 //Defines number of interrupts motor will vibrate for, must be bigger than 8 for correct operation volatile uint8_t vibrate = 0; //Trigger vibration in interrupt @@ -276,16 +277,16 @@ matrix_row_t matrix_get_row(uint8_t row) { } void matrix_print(void) { - printf("\nr/c 01234567\n"); + xprintf("\nr/c 01234567\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - printf("%X0: ", row); + xprintf("%X0: ", row); matrix_row_t data = matrix_get_row(row); for (int col = 0; col < MATRIX_COLS; col++) { if (data & (1<. */ +#include "matrix.h" #include "mcp23018.h" -#include "quantum.h" +#include "print.h" +#include "wait.h" // Optimize scanning code for speed as a slight mitigation for the port expander #pragma GCC push_options diff --git a/keyboards/xiudi/xd84/matrix.c b/keyboards/xiudi/xd84/matrix.c index d92ac83b4a70fde9f2717d81e466c24141be764c..ea1b4f55b40803f2592fac26584d3d988237db4c 100644 --- a/keyboards/xiudi/xd84/matrix.c +++ b/keyboards/xiudi/xd84/matrix.c @@ -13,15 +13,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#include -#include -#include -#include #include "matrix.h" #include "pca9555.h" -#include "quantum.h" - -#include "debug.h" // PCA9555 slave addresses #define IC1 0x20 diff --git a/keyboards/xiudi/xd96/matrix.c b/keyboards/xiudi/xd96/matrix.c index 641202ca2c995cd654d290b6cfd4770e00d4df73..2c433f02b8a0c0dcf721ca4daeb9641797562852 100644 --- a/keyboards/xiudi/xd96/matrix.c +++ b/keyboards/xiudi/xd96/matrix.c @@ -13,15 +13,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#include -#include -#include -#include #include "matrix.h" #include "pca9555.h" -#include "quantum.h" - -#include "debug.h" +#include "wait.h" // PCA9555 slave addresses #define IC1 0x20 diff --git a/keyboards/ydkb/grape/matrix.c b/keyboards/ydkb/grape/matrix.c index 700761fa4484824fd79e25404fc59a0a3edb2f0a..3e070f8d7d561454fc18341060f3ec1f6663532a 100644 --- a/keyboards/ydkb/grape/matrix.c +++ b/keyboards/ydkb/grape/matrix.c @@ -15,10 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include -#include #include "matrix.h" -#include "quantum.h" #include "sn74x138.h" static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS; diff --git a/keyboards/yiancardesigns/barleycorn/matrix.c b/keyboards/yiancardesigns/barleycorn/matrix.c index 9ef29265662bf5d44844e232f578a9f72af78bc8..008f096266ddf63e0055b5ec38976afdf00d2474 100644 --- a/keyboards/yiancardesigns/barleycorn/matrix.c +++ b/keyboards/yiancardesigns/barleycorn/matrix.c @@ -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 . */ -#include -#include +#include "matrix.h" #include "wait.h" -#include "quantum.h" #include "i2c_master.h" static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; diff --git a/keyboards/yiancardesigns/gingham/matrix.c b/keyboards/yiancardesigns/gingham/matrix.c index d17518b4940af359d3e0c361c5df7f910c736a85..4e6319b52bcd4960b6da344ff4d1e9aac59b2f14 100644 --- a/keyboards/yiancardesigns/gingham/matrix.c +++ b/keyboards/yiancardesigns/gingham/matrix.c @@ -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 . */ -#include -#include +#include "matrix.h" #include "wait.h" -#include "quantum.h" #include "i2c_master.h" static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; diff --git a/keyboards/yiancardesigns/seigaiha/matrix.c b/keyboards/yiancardesigns/seigaiha/matrix.c index 55ee239db4c91f15277e87ed0a9b3744014a9987..dc80c4becf9e5912244e0d5244d29fa616eec478 100644 --- a/keyboards/yiancardesigns/seigaiha/matrix.c +++ b/keyboards/yiancardesigns/seigaiha/matrix.c @@ -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 . */ -#include -#include +#include "matrix.h" #include "wait.h" -#include "quantum.h" #include "i2c_master.h" static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;