X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=converter%2Fpc98_usb%2Fmatrix.c;h=19cfb0c0845556d66958d6c02c1672fd0db4712a;hb=785bad10b9410863904869c9092e7aaeb15dad3c;hp=b3c11dc210edfa78cc5d82c7adae48626f222449;hpb=f68c5bf0d30dc1300c71dabc63d2c2970f7337c9;p=max%2Ftmk_keyboard.git diff --git a/converter/pc98_usb/matrix.c b/converter/pc98_usb/matrix.c index b3c11dc2..19cfb0c0 100644 --- a/converter/pc98_usb/matrix.c +++ b/converter/pc98_usb/matrix.c @@ -46,26 +46,39 @@ static uint8_t matrix[MATRIX_ROWS]; #define ROW(code) ((code>>3)&0xF) #define COL(code) (code&0x07) -static bool is_modified = false; - -inline -uint8_t matrix_rows(void) +static void pc98_inhibit_repeat(void) { - return MATRIX_ROWS; -} + uint8_t code; -inline -uint8_t matrix_cols(void) -{ - return MATRIX_COLS; + while (serial_recv()) ; +RETRY: + PC98_RDY_PORT |= (1<