X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=converter%2Fpc98_usb%2Fmatrix.c;h=39afb43c727d513ff84c314e054fa6ea05dd0c46;hb=ffb52ab0c98540f6305a7c1d82b50c8d6611a727;hp=b3c11dc210edfa78cc5d82c7adae48626f222449;hpb=f68c5bf0d30dc1300c71dabc63d2c2970f7337c9;p=max%2Ftmk_keyboard.git diff --git a/converter/pc98_usb/matrix.c b/converter/pc98_usb/matrix.c index b3c11dc2..39afb43c 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,26 +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<