From d6c1643edfc19fe366006d916ed41d991b93e022 Mon Sep 17 00:00:00 2001 From: tmk Date: Sat, 2 Jun 2018 20:40:08 +0900 Subject: [PATCH] pc98_usb: Update protocol commands --- converter/pc98_usb/config.h | 1 + converter/pc98_usb/matrix.c | 60 +++++++++++++++++-------------------- 2 files changed, 29 insertions(+), 32 deletions(-) diff --git a/converter/pc98_usb/config.h b/converter/pc98_usb/config.h index 6793c794..9341708f 100644 --- a/converter/pc98_usb/config.h +++ b/converter/pc98_usb/config.h @@ -123,6 +123,7 @@ along with this program. If not, see . UCSR1B |= (1<. #include "print.h" #include "util.h" #include "matrix.h" +#include "led.h" #include "debug.h" #include "protocol/serial.h" @@ -47,38 +48,46 @@ static uint8_t matrix[MATRIX_ROWS]; #define COL(code) (code&0x07) -static void pc98_inhibit_repeat(void) +static void pc98_send(uint8_t data) { - uint8_t code; - - while (serial_recv()) ; -RETRY: PC98_RDY_PORT |= (1<