X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=converter%2Fpc98_usb%2Fconfig.h;h=9341708ffaa9c4080e959c2b88e317c12f2d862d;hb=0d279917314f05639b91b5032dcf1e98e30a1269;hp=b8d676e4cfacae5d5435fcedfe93005e94d37b50;hpb=53bd4a01be5c4327462e6c6620ea7670eddca6f2;p=max%2Ftmk_keyboard.git
diff --git a/converter/pc98_usb/config.h b/converter/pc98_usb/config.h
index b8d676e4..9341708f 100644
--- a/converter/pc98_usb/config.h
+++ b/converter/pc98_usb/config.h
@@ -32,10 +32,20 @@ along with this program. If not, see .
/* key combination for command */
#define IS_COMMAND() ( \
- host_get_first_key() == KC_CANCEL \
+ keyboard_report->keys[0] == KC_STOP || \
+ keyboard_report->mods == (MOD_BIT(KC_LALT) | MOD_BIT(KC_RALT)) \
)
+/* 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
@@ -47,7 +57,7 @@ along with this program. If not, see .
/* PC98 Retry Port */
#define PC98_RTY_DDR DDRD
#define PC98_RTY_PORT PORTD
-#define PC98_RTY_BIT 5
+#define PC98_RTY_BIT 1
/*
* PC98 Serial(USART) configuration
@@ -101,7 +111,7 @@ along with this program. If not, see .
/*
* Hardware Serial(UART)
*/
-#ifdef __AVR_ATmega32U4__
+#if defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega32U2__)
#define SERIAL_UART_BAUD 19200
#define SERIAL_UART_DATA UDR1
#define SERIAL_UART_UBRR ((F_CPU/(16UL*SERIAL_UART_BAUD))-1)
@@ -113,6 +123,7 @@ along with this program. If not, see .
UCSR1B |= (1<