summaryrefslogtreecommitdiff
path: root/quantum/matrix.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/matrix.h')
-rw-r--r--quantum/matrix.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/quantum/matrix.h b/quantum/matrix.h
index d968efeb0f..a5b628fc59 100644
--- a/quantum/matrix.h
+++ b/quantum/matrix.h
@@ -19,6 +19,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <stdint.h>
#include <stdbool.h>
+#include "gpio.h"
+
+/* diode directions */
+#define COL2ROW 0
+#define ROW2COL 1
#if (MATRIX_COLS <= 8)
typedef uint8_t matrix_row_t;
@@ -46,6 +51,8 @@ void matrix_setup(void);
void matrix_init(void);
/* scan all key states on matrix */
uint8_t matrix_scan(void);
+/* whether matrix scanning operations should be executed */
+bool matrix_can_read(void);
/* whether a switch is on */
bool matrix_is_on(uint8_t row, uint8_t col);
/* matrix state on row */
@@ -62,10 +69,6 @@ void matrix_io_delay(void);
void matrix_power_up(void);
void matrix_power_down(void);
-/* executes code for Quantum */
-void matrix_init_quantum(void);
-void matrix_scan_quantum(void);
-
void matrix_init_kb(void);
void matrix_scan_kb(void);