X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;ds=sidebyside;f=converter%2Fpc98_usb%2Fconfig.h;h=b8d676e4cfacae5d5435fcedfe93005e94d37b50;hb=9818d54d26e2900bf91b288bc6f268adc8e0b8fd;hp=aa0476e3e8e94b68dff9d65e63872f939ae6e256;hpb=fea6792f1636a716e799539b072930461bfcba67;p=max%2Ftmk_keyboard.git
diff --git a/converter/pc98_usb/config.h b/converter/pc98_usb/config.h
index aa0476e3..b8d676e4 100644
--- a/converter/pc98_usb/config.h
+++ b/converter/pc98_usb/config.h
@@ -27,27 +27,15 @@ along with this program. If not, see .
/* matrix size */
-#define MATRIX_ROWS 16
-#define MATRIX_COLS 8
-
-/* To use new keymap framework */
-#define USE_KEYMAP_V2
+#define MATRIX_ROWS 16
+#define MATRIX_COLS 8
/* key combination for command */
-#define IS_COMMAND() ( \
+#define IS_COMMAND() ( \
host_get_first_key() == KC_CANCEL \
)
-/* PC98 Serial(USART) configuration
- * asynchronous, positive logic, 19200baud, bit order: LSB first
- * 1-start bit, 8-data bit, odd parity, 1-stop bit
- */
-#define SERIAL_BAUD 19200
-#define SERIAL_PARITY_ODD
-#define SERIAL_BIT_ORDER_LSB
-#define SERIAL_LOGIC_POSITIVE
-
/* PC98 Reset Port shared with TXD */
#define PC98_RST_DDR DDRD
#define PC98_RST_PORT PORTD
@@ -61,50 +49,75 @@ along with this program. If not, see .
#define PC98_RTY_PORT PORTD
#define PC98_RTY_BIT 5
+/*
+ * 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
+ */
+#define SERIAL_SOFT_BAUD 19200
+#define SERIAL_SOFT_PARITY_ODD
+#define SERIAL_SOFT_BIT_ORDER_LSB
+#define SERIAL_SOFT_LOGIC_POSITIVE
/* RXD Port */
-#define SERIAL_RXD_DDR DDRD
-#define SERIAL_RXD_PORT PORTD
-#define SERIAL_RXD_PIN PIND
-#define SERIAL_RXD_BIT 2
-#ifdef SERIAL_LOGIC_NEGATIVE
-#define SERIAL_RXD_READ() ~(SERIAL_RXD_PIN&(1<>8); /* baud rate */ \
+ UCSR1B |= (1<