M keyboards/barleycorn_smd/matrix.c => keyboards/barleycorn_smd/matrix.c +1 -3
@@ 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 <http://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;
M keyboards/bpiphany/ghost_squid/matrix.c => keyboards/bpiphany/ghost_squid/matrix.c +0 -1
@@ 17,7 17,6 @@
*/
#include "matrix.h"
-#include "quantum.h"
matrix_row_t read_rows(void) {
return
M keyboards/centromere/matrix.c => keyboards/centromere/matrix.c +0 -1
@@ 16,7 16,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
#include "matrix.h"
#include "uart.h"
M keyboards/converter/siemens_tastatur/matrix.c => keyboards/converter/siemens_tastatur/matrix.c +0 -3
@@ 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 <http://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"
M keyboards/custommk/evo70_r2/matrix.c => keyboards/custommk/evo70_r2/matrix.c +2 -1
@@ 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;
M keyboards/dc01/right/matrix.c => keyboards/dc01/right/matrix.c +0 -3
@@ 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 <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
#if defined(__AVR__)
#include <avr/io.h>
#include <avr/wdt.h>
@@ 31,7 29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "timer.h"
#include "i2c_slave.h"
#include "lufa.h"
-#include "quantum.h"
#define SLAVE_I2C_ADDRESS 0x32
M keyboards/dp60/matrix.c => keyboards/dp60/matrix.c +4 -1
@@ 13,7 13,10 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
+#include "matrix.h"
+#include "print.h"
+#include "bitwise.h"
+#include "wait.h"
#ifndef DEBOUNCE
# define DEBOUNCE 5
M keyboards/duck/orion/v3/matrix.c => keyboards/duck/orion/v3/matrix.c +4 -1
@@ 14,7 14,10 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
+#include "matrix.h"
+#include "debug.h"
+#include "bitwise.h"
+#include "wait.h"
#ifndef DEBOUNCE
# define DEBOUNCE 5
M keyboards/evyd13/wasdat/matrix.c => keyboards/evyd13/wasdat/matrix.c +0 -3
@@ 15,10 15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://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;
M keyboards/evyd13/wasdat_code/matrix.c => keyboards/evyd13/wasdat_code/matrix.c +0 -3
@@ 15,10 15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://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;
M keyboards/geistmaschine/macropod/matrix.c => keyboards/geistmaschine/macropod/matrix.c +2 -1
@@ 14,8 14,9 @@
* along with this program. If not, see <http://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
M keyboards/gl516/a52gl/matrix.c => keyboards/gl516/a52gl/matrix.c +0 -1
@@ 15,7 15,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://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;
M keyboards/gl516/j73gl/matrix.c => keyboards/gl516/j73gl/matrix.c +0 -1
@@ 15,7 15,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://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;
M keyboards/gl516/n51gl/matrix.c => keyboards/gl516/n51gl/matrix.c +0 -1
@@ 15,7 15,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://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;
M keyboards/glenpickle/chimera_ergo/matrix.c => keyboards/glenpickle/chimera_ergo/matrix.c +0 -1
@@ 16,7 16,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
#include "matrix.h"
#include "uart.h"
M keyboards/glenpickle/chimera_ls/matrix.c => keyboards/glenpickle/chimera_ls/matrix.c +0 -1
@@ 16,7 16,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
#include "matrix.h"
#include "uart.h"
M keyboards/glenpickle/chimera_ortho/matrix.c => keyboards/glenpickle/chimera_ortho/matrix.c +0 -1
@@ 16,7 16,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
#include "matrix.h"
#include "uart.h"
M keyboards/glenpickle/chimera_ortho_plus/matrix.c => keyboards/glenpickle/chimera_ortho_plus/matrix.c +0 -1
@@ 16,7 16,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
#include "matrix.h"
#include "uart.h"
M keyboards/gmmk/numpad/matrix.c => keyboards/gmmk/numpad/matrix.c +3 -6
@@ 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
M keyboards/halfcliff/matrix.c => keyboards/halfcliff/matrix.c +3 -6
@@ 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 <http://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
M keyboards/handwired/dqz11n1g/matrix.c => keyboards/handwired/dqz11n1g/matrix.c +0 -7
@@ 15,14 15,7 @@
along with this program. If not, see <http://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;
M keyboards/handwired/dygma/raise/matrix.c => keyboards/handwired/dygma/raise/matrix.c +2 -1
@@ 13,8 13,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://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"
M keyboards/handwired/symmetric70_proto/matrix_debug/matrix.c => keyboards/handwired/symmetric70_proto/matrix_debug/matrix.c +0 -3
@@ 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 <http://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
M keyboards/handwired/symmetric70_proto/matrix_fast/matrix.c => keyboards/handwired/symmetric70_proto/matrix_fast/matrix.c +0 -4
@@ 15,9 15,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// clang-format off
-#include <stdint.h>
-#include <stdbool.h>
-#include <gpio.h>
#ifndef readPort
# include "gpio_extr.h"
#endif
@@ 25,7 22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#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))
M keyboards/hazel/bad_wings/matrix.c => keyboards/hazel/bad_wings/matrix.c +4 -5
@@ 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
M keyboards/hhkb/yang/matrix.c => keyboards/hhkb/yang/matrix.c +6 -1
@@ 16,7 16,12 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://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"
M keyboards/hineybush/hbcp/matrix.c => keyboards/hineybush/hbcp/matrix.c +0 -3
@@ 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 <http://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;
M keyboards/ibm/model_m/mschwingen/matrix.c => keyboards/ibm/model_m/mschwingen/matrix.c +0 -3
@@ 14,12 14,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://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"
M keyboards/jones/v03/matrix.c => keyboards/jones/v03/matrix.c +0 -3
@@ 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 <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
#include "matrix.h"
-#include "quantum.h"
#define ROW_SHIFTER ((uint16_t)1)
M keyboards/jones/v03_1/matrix.c => keyboards/jones/v03_1/matrix.c +0 -3
@@ 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 <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
#include "matrix.h"
-#include "quantum.h"
#define ROW_SHIFTER ((uint16_t)1)
M keyboards/joshajohnson/hub16/matrix.c => keyboards/joshajohnson/hub16/matrix.c +0 -3
@@ 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 <http://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
M keyboards/kagizaraya/chidori/matrix.c => keyboards/kagizaraya/chidori/matrix.c +0 -1
@@ 15,7 15,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
#include "matrix.h"
#include "board.h"
M keyboards/kakunpc/angel64/alpha/matrix.c => keyboards/kakunpc/angel64/alpha/matrix.c +0 -3
@@ 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 <http://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")
M keyboards/kakunpc/angel64/rev1/matrix.c => keyboards/kakunpc/angel64/rev1/matrix.c +0 -3
@@ 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 <http://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")
M keyboards/kakunpc/choc_taro/matrix.c => keyboards/kakunpc/choc_taro/matrix.c +0 -3
@@ 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 <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
#include "matrix.h"
-#include "quantum.h"
#if (MATRIX_COLS <= 8)
# define ROW_SHIFTER ((uint8_t)1)
M keyboards/kakunpc/thedogkeyboard/matrix.c => keyboards/kakunpc/thedogkeyboard/matrix.c +0 -3
@@ 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 <http://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")
M keyboards/kbdmania/kmac/matrix.c => keyboards/kbdmania/kmac/matrix.c +0 -3
@@ 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 <http://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")
M keyboards/kbdmania/kmac_pad/matrix.c => keyboards/kbdmania/kmac_pad/matrix.c +0 -1
@@ 17,7 17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#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;
M keyboards/keyboardio/model01/matrix.c => keyboards/keyboardio/model01/matrix.c +1 -1
@@ 13,7 13,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
+#include "matrix.h"
#include "i2c_master.h"
#include <string.h>
#include "model01.h"
M keyboards/keychron/c2_pro/matrix.c => keyboards/keychron/c2_pro/matrix.c +3 -1
@@ 14,7 14,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
+#include "matrix.h"
+#include "atomic_util.h"
+#include <string.h>
#ifndef SHIFT_COL_START
# define SHIFT_COL_START 8
M keyboards/keychron/q10/matrix.c => keyboards/keychron/q10/matrix.c +2 -1
@@ 15,7 15,8 @@
*/
#include "matrix.h"
-#include "quantum.h"
+#include "atomic_util.h"
+#include <string.h>
// Pin connected to DS of 74HC595
#define DATA_PIN A7
M keyboards/keychron/q12/matrix.c => keyboards/keychron/q12/matrix.c +2 -1
@@ 15,7 15,8 @@
*/
#include "matrix.h"
-#include "quantum.h"
+#include "atomic_util.h"
+#include <string.h>
// Pin connected to DS of 74HC595
#define DATA_PIN C15
M keyboards/keychron/q1v2/matrix.c => keyboards/keychron/q1v2/matrix.c +3 -1
@@ 14,7 14,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
+#include "matrix.h"
+#include "atomic_util.h"
+#include <string.h>
// Pin connected to DS of 74HC595
#define DATA_PIN A7
M keyboards/keychron/q3/matrix.c => keyboards/keychron/q3/matrix.c +2 -1
@@ 15,7 15,8 @@
*/
#include "matrix.h"
-#include "quantum.h"
+#include "atomic_util.h"
+#include <string.h>
// Pin connected to DS of 74HC595
#define DATA_PIN A7
M keyboards/keychron/q5/matrix.c => keyboards/keychron/q5/matrix.c +2 -1
@@ 15,7 15,8 @@
*/
#include "matrix.h"
-#include "quantum.h"
+#include "atomic_util.h"
+#include <string.h>
// Pin connected to DS of 74HC595
#define DATA_PIN C15
M keyboards/keychron/q6/matrix.c => keyboards/keychron/q6/matrix.c +2 -1
@@ 15,7 15,8 @@
*/
#include "matrix.h"
-#include "quantum.h"
+#include "atomic_util.h"
+#include <string.h>
// Pin connected to DS of 74HC595
#define DATA_PIN C15
M keyboards/keychron/q65/matrix.c => keyboards/keychron/q65/matrix.c +2 -1
@@ 15,7 15,8 @@
*/
#include "matrix.h"
-#include "quantum.h"
+#include "atomic_util.h"
+#include <string.h>
// Pin connected to DS of 74HC595
#define DATA_PIN C15
M keyboards/keychron/v1/matrix.c => keyboards/keychron/v1/matrix.c +2 -1
@@ 15,7 15,8 @@
*/
#include "matrix.h"
-#include "quantum.h"
+#include "atomic_util.h"
+#include <string.h>
// Pin connected to DS of 74HC595
#define DATA_PIN A7
M keyboards/keychron/v10/matrix.c => keyboards/keychron/v10/matrix.c +2 -1
@@ 15,7 15,8 @@
*/
#include "matrix.h"
-#include "quantum.h"
+#include "atomic_util.h"
+#include <string.h>
#ifndef PIN_USED_74HC595
# define PIN_USED_74HC595 8
M keyboards/keychron/v3/matrix.c => keyboards/keychron/v3/matrix.c +2 -1
@@ 15,7 15,8 @@
*/
#include "matrix.h"
-#include "quantum.h"
+#include "atomic_util.h"
+#include <string.h>
// Pin connected to DS of 74HC595
#define DATA_PIN A7
M keyboards/keychron/v5/matrix.c => keyboards/keychron/v5/matrix.c +2 -1
@@ 15,7 15,8 @@
*/
#include "matrix.h"
-#include "quantum.h"
+#include "atomic_util.h"
+#include <string.h>
// Pin connected to DS of 74HC595
#define DATA_PIN C15
M keyboards/keychron/v6/matrix.c => keyboards/keychron/v6/matrix.c +2 -1
@@ 15,7 15,8 @@
*/
#include "matrix.h"
-#include "quantum.h"
+#include "atomic_util.h"
+#include <string.h>
#ifndef PIN_USED_74HC595
# define PIN_USED_74HC595 8
M keyboards/kinesis/nguyenvietyen/matrix.c => keyboards/kinesis/nguyenvietyen/matrix.c +0 -2
@@ 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.
M keyboards/matrix/abelx/matrix.c => keyboards/matrix/abelx/matrix.c +0 -4
@@ 17,10 17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
-#include <string.h>
-#include "quantum.h"
#include "matrix.h"
#include "tca6424.h"
#include "abelx.h"
M keyboards/matrix/m12og/rev1/matrix.c => keyboards/matrix/m12og/rev1/matrix.c +0 -3
@@ 14,12 14,9 @@
* along with this program. If not, see <http://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_ROWS] = MATRIX_ROW_PINS;
static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
M keyboards/matrix/m20add/matrix.c => keyboards/matrix/m20add/matrix.c +0 -4
@@ 2,10 2,6 @@
* matrix.c
*/
-#include <stdint.h>
-#include <stdbool.h>
-#include <string.h>
-#include "quantum.h"
#include "matrix.h"
#include "tca6424.h"
#include "m20add.h"
M keyboards/matrix/noah/matrix.c => keyboards/matrix/noah/matrix.c +6 -12
@@ 2,16 2,10 @@
* matrix.c
*/
-#include <stdint.h>
-#include <stdio.h>
-#include <stdbool.h>
-#include <string.h>
-#include <hal.h>
-#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<<col))
- printf("1");
+ xprintf("1");
else
- printf("0");
+ xprintf("0");
}
- printf("\n");
+ xprintf("\n");
}
}
M keyboards/mechlovin/adelais/standard_led/avr/rev1/matrix.c => keyboards/mechlovin/adelais/standard_led/avr/rev1/matrix.c +0 -3
@@ 16,13 16,10 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
#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;
M keyboards/mechlovin/infinity87/rev2/matrix.c => keyboards/mechlovin/infinity87/rev2/matrix.c +0 -3
@@ 16,13 16,10 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
#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;
M keyboards/mechlovin/infinity875/matrix.c => keyboards/mechlovin/infinity875/matrix.c +0 -3
@@ 16,13 16,10 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
#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;
M keyboards/mechlovin/olly/jf/rev1/matrix.c => keyboards/mechlovin/olly/jf/rev1/matrix.c +0 -3
@@ 16,13 16,10 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
#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;
M keyboards/mechlovin/serratus/matrix.c => keyboards/mechlovin/serratus/matrix.c +0 -3
@@ 16,13 16,10 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
#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;
M keyboards/mexsistor/ludmila/matrix.c => keyboards/mexsistor/ludmila/matrix.c +0 -3
@@ 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 <http://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 ENC_SW F7
M keyboards/miiiw/blackio83/matrix.c => keyboards/miiiw/blackio83/matrix.c +1 -1
@@ 14,8 14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
#include "matrix.h"
+#include "wait.h"
#include "common/shift_register.h"
static uint8_t read_rows(void);
M keyboards/mitosis/matrix.c => keyboards/mitosis/matrix.c +0 -1
@@ 16,7 16,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
#include "matrix.h"
#include "uart.h"
M keyboards/moon/matrix.c => keyboards/moon/matrix.c +0 -3
@@ 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 <http://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"
#include "pca9555.h"
/*
M keyboards/mt/split75/matrix.c => keyboards/mt/split75/matrix.c +1 -3
@@ 15,9 15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <string.h>
-#include <stdio.h>
-#include "quantum.h"
+#include "matrix.h"
#include "i2c_master.h"
#define RIGHT_HALF
M keyboards/nullbitsco/nibble/matrix.c => keyboards/nullbitsco/nibble/matrix.c +2 -1
@@ 13,7 13,8 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
+#include "matrix.h"
+#include "wait.h"
#define COL_SHIFTER ((uint32_t)1)
M keyboards/nullbitsco/snap/matrix.c => keyboards/nullbitsco/snap/matrix.c +2 -5
@@ 13,13 13,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
-#include <string.h>
-#include "util.h"
#include "matrix.h"
+#include <string.h>
#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)
M keyboards/oddforge/vea/matrix.c => keyboards/oddforge/vea/matrix.c +1 -3
@@ 15,9 15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <string.h>
-#include <stdio.h>
-#include "quantum.h"
+#include "matrix.h"
#include "i2c_master.h"
#define RIGHT_HALF
M keyboards/om60/matrix.c => keyboards/om60/matrix.c +2 -1
@@ 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 <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
+#include "matrix.h"
+#include "wait.h"
#if (MATRIX_COLS <= 8)
# define ROW_SHIFTER ((uint8_t)1)
M keyboards/pierce/matrix.c => keyboards/pierce/matrix.c +1 -1
@@ 14,7 14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
+#include "matrix.h"
#include "i2c_slave.h"
#define MY_I2C_ADDRESS (0x20U << 1)
M keyboards/planck/rev6_drop/matrix.c => keyboards/planck/rev6_drop/matrix.c +2 -1
@@ 15,7 15,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#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;
M keyboards/planck/rev7/matrix.c => keyboards/planck/rev7/matrix.c +3 -4
@@ 15,11 15,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "gpio.h"
-#include "hal_pal.h"
-#include "hal_pal_lld.h"
-#include "quantum.h"
+#include "matrix.h"
+#include <hal_pal.h>
#include <math.h>
+#include "wait.h"
// STM32-specific watchdog config calculations
// timeout = 31.25us * PR * (RL + 1)
M keyboards/preonic/rev3_drop/matrix.c => keyboards/preonic/rev3_drop/matrix.c +4 -1
@@ 15,7 15,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
+#include "matrix.h"
+#include "debug.h"
+#include "timer.h"
+#include "wait.h"
#ifndef DEBOUNCE
# define DEBOUNCE 5
M keyboards/qvex/lynepad2/matrix.c => keyboards/qvex/lynepad2/matrix.c +1 -6
@@ 14,13 14,8 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
-#include <string.h>
-#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;
M keyboards/rate/pistachio_pro/matrix.c => keyboards/rate/pistachio_pro/matrix.c +1 -3
@@ 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 <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
#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;
M keyboards/redox/wireless/matrix.c => keyboards/redox/wireless/matrix.c +0 -1
@@ 14,7 14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
#include "matrix.h"
#include "uart.h"
M keyboards/redscarf_iiplus/verb/matrix.c => keyboards/redscarf_iiplus/verb/matrix.c +0 -3
@@ 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 <http://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")
M keyboards/redscarf_iiplus/verc/matrix.c => keyboards/redscarf_iiplus/verc/matrix.c +0 -3
@@ 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 <http://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")
M keyboards/redscarf_iiplus/verd/matrix.c => keyboards/redscarf_iiplus/verd/matrix.c +0 -3
@@ 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 <http://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")
M keyboards/ryanskidmore/rskeys100/matrix.c => keyboards/ryanskidmore/rskeys100/matrix.c +0 -2
@@ 17,10 17,8 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdbool.h>
#include "matrix.h"
#include <util/delay.h>
-#include "quantum.h"
static const uint32_t col_values[24] = SHR_COLS;
M keyboards/satt/comet46/matrix.c => keyboards/satt/comet46/matrix.c +0 -1
@@ 16,7 16,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
#include "matrix.h"
#include "uart.h"
M keyboards/sirius/uni660/rev1/matrix.c => keyboards/sirius/uni660/rev1/matrix.c +0 -1
@@ 16,7 16,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
#include "matrix.h"
#include "uart.h"
M keyboards/sirius/uni660/rev2/matrix.c => keyboards/sirius/uni660/rev2/matrix.c +0 -1
@@ 16,7 16,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
#include "matrix.h"
#include "uart.h"
M keyboards/spiderisland/split78/matrix.c => keyboards/spiderisland/split78/matrix.c +1 -3
@@ 15,9 15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <string.h>
-#include <stdio.h>
-#include "quantum.h"
+#include "matrix.h"
#include "i2c_master.h"
#define RIGHT_HALF
M keyboards/sthlmkb/lagom/matrix.c => keyboards/sthlmkb/lagom/matrix.c +2 -1
@@ 13,7 13,8 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
+#include "matrix.h"
+#include "wait.h"
#define COL_SHIFTER ((uint32_t)1)
M keyboards/switchplate/southpaw_65/matrix.c => keyboards/switchplate/southpaw_65/matrix.c +0 -7
@@ 13,15 13,8 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
-#include <avr/io.h>
-#include <string.h>
#include "matrix.h"
#include "pca9555.h"
-#include "quantum.h"
-
-#include "debug.h"
// PCA9555 slave addresses
#define IC1 0x20
M keyboards/telophase/matrix.c => keyboards/telophase/matrix.c +0 -1
@@ 16,7 16,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
#include "matrix.h"
#include "uart.h"
M keyboards/touchpad/matrix.c => keyboards/touchpad/matrix.c +7 -6
@@ 23,7 23,8 @@ SOFTWARE.
#include "matrix.h"
#include "i2c_master.h"
-#include "quantum.h"
+#include "print.h"
+#include <string.h>
#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<<col))
- printf("1");
+ xprintf("1");
else
- printf("0");
+ xprintf("0");
}
- printf("\n");
+ xprintf("\n");
}
}
M keyboards/viktus/sp111/matrix.c => keyboards/viktus/sp111/matrix.c +3 -1
@@ 13,8 13,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#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
M keyboards/xiudi/xd84/matrix.c => keyboards/xiudi/xd84/matrix.c +0 -7
@@ 13,15 13,8 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
-#include <avr/io.h>
-#include <string.h>
#include "matrix.h"
#include "pca9555.h"
-#include "quantum.h"
-
-#include "debug.h"
// PCA9555 slave addresses
#define IC1 0x20
M keyboards/xiudi/xd96/matrix.c => keyboards/xiudi/xd96/matrix.c +1 -7
@@ 13,15 13,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
-#include <avr/io.h>
-#include <string.h>
#include "matrix.h"
#include "pca9555.h"
-#include "quantum.h"
-
-#include "debug.h"
+#include "wait.h"
// PCA9555 slave addresses
#define IC1 0x20
M keyboards/ydkb/grape/matrix.c => keyboards/ydkb/grape/matrix.c +0 -3
@@ 15,10 15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
#include "matrix.h"
-#include "quantum.h"
#include "sn74x138.h"
static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
M keyboards/yiancardesigns/barleycorn/matrix.c => keyboards/yiancardesigns/barleycorn/matrix.c +1 -3
@@ 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 <http://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;
M keyboards/yiancardesigns/gingham/matrix.c => keyboards/yiancardesigns/gingham/matrix.c +1 -3
@@ 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 <http://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;
M keyboards/yiancardesigns/seigaiha/matrix.c => keyboards/yiancardesigns/seigaiha/matrix.c +1 -3
@@ 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 <http://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;