X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=converter%2Fpc98_usb%2Fconfig.h;h=aa0476e3e8e94b68dff9d65e63872f939ae6e256;hb=fea6792f1636a716e799539b072930461bfcba67;hp=6ef2c6ac30b71816379103ceae433b8d5130e4bb;hpb=79b1f129085425c72b72bee28ed065bf243c0a0b;p=tmk_firmware.git
diff --git a/converter/pc98_usb/config.h b/converter/pc98_usb/config.h
index 6ef2c6a..aa0476e 100644
--- a/converter/pc98_usb/config.h
+++ b/converter/pc98_usb/config.h
@@ -30,12 +30,12 @@ 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() ( \
- keyboard_report->mods == (MOD_BIT(KC_LALT) | MOD_BIT(KC_RALT)) || \
- keyboard_report->mods == (MOD_BIT(KC_LGUI) | MOD_BIT(KC_RGUI)) || \
- keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
+ host_get_first_key() == KC_CANCEL \
)
@@ -46,11 +46,12 @@ along with this program. If not, see .
#define SERIAL_BAUD 19200
#define SERIAL_PARITY_ODD
#define SERIAL_BIT_ORDER_LSB
+#define SERIAL_LOGIC_POSITIVE
-/* PC98 Reset Port */
+/* PC98 Reset Port shared with TXD */
#define PC98_RST_DDR DDRD
#define PC98_RST_PORT PORTD
-#define PC98_RST_BIT 1
+#define PC98_RST_BIT 3
/* PC98 Ready Port */
#define PC98_RDY_DDR DDRD
#define PC98_RDY_PORT PORTD
@@ -65,7 +66,11 @@ along with this program. If not, see .
#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<.
/* enable interrupt: INT2(falling edge) */ \
EICRA |= ((1<.
EIFR = (1<