From 47e9e8022359033aa61b159532760e780694aaec Mon Sep 17 00:00:00 2001 From: tmk Date: Sat, 2 Jun 2018 19:52:50 +0900 Subject: [PATCH] pc98_usb: LED control code is disabled by default --- converter/pc98_usb/Makefile | 1 - converter/pc98_usb/config.h | 9 +++++++++ converter/pc98_usb/led.c | 33 --------------------------------- converter/pc98_usb/matrix.c | 15 +++++++++++++++ 4 files changed, 24 insertions(+), 34 deletions(-) delete mode 100644 converter/pc98_usb/led.c diff --git a/converter/pc98_usb/Makefile b/converter/pc98_usb/Makefile index 9892276d..ae6511cd 100644 --- a/converter/pc98_usb/Makefile +++ b/converter/pc98_usb/Makefile @@ -10,7 +10,6 @@ TARGET_DIR = . # keyboard dependent files SRC = keymap.c \ matrix.c \ - led.c \ protocol/serial_uart.c # protocol/serial_soft.c diff --git a/converter/pc98_usb/config.h b/converter/pc98_usb/config.h index b8d676e4..16a54ca5 100644 --- a/converter/pc98_usb/config.h +++ b/converter/pc98_usb/config.h @@ -36,6 +36,15 @@ along with this program. If not, see . ) +/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ +#define LOCKING_SUPPORT_ENABLE +/* Locking resynchronize hack */ +#define LOCKING_RESYNC_ENABLE + +/* Control LED indicatiors, which doesn't work well with locking support */ +//#define PC98_LED_CONTROL + + /* PC98 Reset Port shared with TXD */ #define PC98_RST_DDR DDRD #define PC98_RST_PORT PORTD diff --git a/converter/pc98_usb/led.c b/converter/pc98_usb/led.c deleted file mode 100644 index 48c3f1c2..00000000 --- a/converter/pc98_usb/led.c +++ /dev/null @@ -1,33 +0,0 @@ -/* -Copyright 2012 Jun Wako - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - -#include "stdint.h" -#include "serial.h" -#include "led.h" - - -void led_set(uint8_t usb_led) -{ - uint8_t sun_led = 0; - if (usb_led & (1<