X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;ds=inline;f=converter%2Fpc98_usb%2Fmatrix.c;h=b44d3ef55cd6271d7aab2dcd95a2a232be35a417;hb=7f7b7ffdc21361a9760fdc006b070787b1aaaa00;hp=19cfb0c0845556d66958d6c02c1672fd0db4712a;hpb=f699291e2adf0eb8fb4e7dd64e6b0157b0378f04;p=max%2Ftmk_keyboard.git
diff --git a/converter/pc98_usb/matrix.c b/converter/pc98_usb/matrix.c
index 19cfb0c0..b44d3ef5 100644
--- a/converter/pc98_usb/matrix.c
+++ b/converter/pc98_usb/matrix.c
@@ -22,6 +22,7 @@ along with this program. If not, see .
#include "print.h"
#include "util.h"
#include "matrix.h"
+#include "led.h"
#include "debug.h"
#include "protocol/serial.h"
@@ -47,33 +48,51 @@ 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< 13us
+ PC98_RST_PORT |= (1<