X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=keyboard%2Fhid_liber%2Fmatrix.c;h=adf6ac8c428573bfadb558a74a0683e7ffcff084;hb=79cfa894afbc0a94ac642f57de905d9afc068ce7;hp=6798b36d7e1ef1ce50232a4d83bc04be6b7cb803;hpb=2ea4ee0ce6bc29aaadf20b3202838850522f7e14;p=max%2Ftmk_keyboard.git diff --git a/keyboard/hid_liber/matrix.c b/keyboard/hid_liber/matrix.c index 6798b36d..adf6ac8c 100644 --- a/keyboard/hid_liber/matrix.c +++ b/keyboard/hid_liber/matrix.c @@ -19,15 +19,13 @@ #ifndef DEBOUNCE -# define DEBOUNCE 0 +# define DEBOUNCE 0 #endif static uint8_t debouncing = DEBOUNCE; // bit array of key state(1:on, 0:off) -static matrix_row_t *matrix; -static matrix_row_t *matrix_debounced; -static matrix_row_t _matrix0[MATRIX_ROWS]; -static matrix_row_t _matrix1[MATRIX_ROWS]; +static matrix_row_t matrix[MATRIX_ROWS]; +static matrix_row_t matrix_debouncing[MATRIX_ROWS]; #define _DDRA (uint8_t *const)&DDRA @@ -142,36 +140,30 @@ void matrix_init(void) // To use PORTF disable JTAG with writing JTD bit twice within four cycles. MCUCR |= (1<