X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=converter%2Fpc98_usb%2Fmatrix.c;h=84a29382d52665a3c9d544b568db670596f9e4db;hb=d0b91ca319074de9e9640977c7dfae336adfba3e;hp=2f1e821c5ddac7a5c9d0b6e7ee445e8fc023d59c;hpb=79b1f129085425c72b72bee28ed065bf243c0a0b;p=max%2Ftmk_keyboard.git diff --git a/converter/pc98_usb/matrix.c b/converter/pc98_usb/matrix.c index 2f1e821c..84a29382 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" @@ -46,27 +47,58 @@ static uint8_t matrix[MATRIX_ROWS]; #define ROW(code) ((code>>3)&0xF) #define COL(code) (code&0x07) -static bool is_modified = false; +static void pc98_send(uint8_t data) +{ + PC98_RDY_PORT |= (1< 13us + PC98_RST_PORT |= (1<