From 45d4a7a89883c3433604d4e011b665796a583008 Mon Sep 17 00:00:00 2001 From: tmk Date: Fri, 29 Oct 2010 15:17:18 +0900 Subject: improve layer switching --- hhkb/matrix.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'hhkb/matrix.c') diff --git a/hhkb/matrix.c b/hhkb/matrix.c index d95ee1135..cf5e8a0ef 100644 --- a/hhkb/matrix.c +++ b/hhkb/matrix.c @@ -5,9 +5,10 @@ #include #include #include -#include "matrix.h" #include "print.h" #include "util.h" +#include "controller.h" +#include "matrix_skel.h" // matrix is active low. (key on: 0/key off: 1) // @@ -27,8 +28,8 @@ #define KEY_ON ((PINE&(1<<6)) ? false : true) // matrix state buffer -uint8_t *matrix; -uint8_t *matrix_prev; +static uint8_t *matrix; +static uint8_t *matrix_prev; static uint8_t _matrix0[MATRIX_ROWS]; static uint8_t _matrix1[MATRIX_ROWS]; -- cgit v1.2.3