From 504a9f42ff7cfecb94eb954124e48ff65d345008 Mon Sep 17 00:00:00 2001 From: tmk Date: Sun, 24 Feb 2013 20:38:43 +0900 Subject: Inhibit repeating key of PC98 --- converter/pc98_usb/matrix.c | 60 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 54 insertions(+), 6 deletions(-) (limited to 'converter/pc98_usb/matrix.c') diff --git a/converter/pc98_usb/matrix.c b/converter/pc98_usb/matrix.c index 2f1e821c5..18ad5bfe7 100644 --- a/converter/pc98_usb/matrix.c +++ b/converter/pc98_usb/matrix.c @@ -61,11 +61,42 @@ uint8_t matrix_cols(void) return MATRIX_COLS; } +static void pc98_inhibit_repeat(void) +{ + uint8_t code; + + while (serial_recv()) ; +RETRY: + PC98_RDY_PORT |= (1< Date: Mon, 25 Feb 2013 03:09:10 +0900 Subject: Add serial_uart.c and use it for PC98 --- converter/pc98_usb/matrix.c | 1 - 1 file changed, 1 deletion(-) (limited to 'converter/pc98_usb/matrix.c') diff --git a/converter/pc98_usb/matrix.c b/converter/pc98_usb/matrix.c index 18ad5bfe7..d03aaf10d 100644 --- a/converter/pc98_usb/matrix.c +++ b/converter/pc98_usb/matrix.c @@ -89,7 +89,6 @@ RETRY: while (!(code = serial_recv())) ; print("PC98: send 70: "); print_hex8(code); print("\n"); if (code != 0xFA) goto RETRY; - } void matrix_init(void) -- cgit v1.2.3