X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;ds=inline;f=converter%2Fpc98_usb%2Fconfig.h;h=c6315d00b4c71f63536dcc4f8f571430de36a707;hb=effdef418747406b81e3b4545fa3e911d0931d2f;hp=04ee5b1101bbc1627fd2f79be6a566c1520443ab;hpb=ea1ede83c36272ccaeb5e4d80efc3885edbb9209;p=max%2Ftmk_keyboard.git
diff --git a/converter/pc98_usb/config.h b/converter/pc98_usb/config.h
index 04ee5b11..c6315d00 100644
--- a/converter/pc98_usb/config.h
+++ b/converter/pc98_usb/config.h
@@ -30,15 +30,22 @@ along with this program. If not, see .
#define MATRIX_ROWS 16
#define MATRIX_COLS 8
-/* To use new keymap framework */
-#define USE_KEYMAP_V2
-
/* 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
@@ -50,15 +57,17 @@ 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
* asynchronous, positive logic, 19200baud, bit order: LSB first
* 1-start bit, 8-data bit, odd parity, 1-stop bit
*/
+
/*
* Software Serial
+ * Add protocol/serial_soft.c to SRC in Makefile
*/
#define SERIAL_SOFT_BAUD 19200
#define SERIAL_SOFT_PARITY_ODD
@@ -69,11 +78,7 @@ along with this program. If not, see .
#define SERIAL_SOFT_RXD_PORT PORTD
#define SERIAL_SOFT_RXD_PIN PIND
#define SERIAL_SOFT_RXD_BIT 2
-#ifdef SERIAL_SOFT_LOGIC_NEGATIVE
- #define SERIAL_SOFT_RXD_READ() ~(SERIAL_SOFT_RXD_PIN&(1<.
#define SERIAL_SOFT_TXD_PORT PORTD
#define SERIAL_SOFT_TXD_PIN PIND
#define SERIAL_SOFT_TXD_BIT 3
-#ifdef SERIAL_SOFT_LOGIC_NEGATIVE
- #define SERIAL_SOFT_TXD_ON() do { \
- SERIAL_SOFT_TXD_PORT &= ~(1<.
/*
* Hardware Serial(UART)
+ * Add protocol/serial_uart.c to SRC in Makefile
*/
-#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)
@@ -133,6 +126,7 @@ along with this program. If not, see .
UCSR1B |= (1<