From: tmk Date: Sat, 2 Jun 2018 11:40:08 +0000 (+0900) Subject: pc98_usb: Update protocol commands X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=d6c1643edfc19fe366006d916ed41d991b93e022;p=max%2Ftmk_keyboard.git pc98_usb: Update protocol commands --- 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<