From: tmk Date: Sat, 2 Jun 2018 10:52:50 +0000 (+0900) Subject: pc98_usb: LED control code is disabled by default X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=47e9e8022359033aa61b159532760e780694aaec;p=max%2Ftmk_keyboard.git pc98_usb: LED control code is disabled by default --- 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<