X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;ds=sidebyside;f=converter%2Fibmpc_usb%2Fconfig.h;h=d821445f37b9831375bac5f4b869623a7690dca8;hb=3e8289b53ce929484651fc065fb5f718e4e3ae21;hp=fc545f691c8bb98ee73649edf00f4f313510ec44;hpb=2ac00aa8a1cf0cfefb3fe5979c82ffc446b1ccb1;p=max%2Ftmk_keyboard.git
diff --git a/converter/ibmpc_usb/config.h b/converter/ibmpc_usb/config.h
index fc545f69..d821445f 100644
--- a/converter/ibmpc_usb/config.h
+++ b/converter/ibmpc_usb/config.h
@@ -39,43 +39,55 @@ along with this program. If not, see .
keyboard_report->mods == (MOD_BIT(KC_LALT) | MOD_BIT(KC_RALT)) \
)
+// G80-2551 terminal keyboard support
+#define G80_2551_SUPPORT
+
/*
* Pin and interrupt configuration
*/
#if defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega32U2__) || defined(__AVR_AT90USB1286__)
-/* uses INT1 for clock line */
+/* clock line */
#define IBMPC_CLOCK_PORT PORTD
#define IBMPC_CLOCK_PIN PIND
#define IBMPC_CLOCK_DDR DDRD
#define IBMPC_CLOCK_BIT 1
+/* data line */
#define IBMPC_DATA_PORT PORTD
#define IBMPC_DATA_PIN PIND
#define IBMPC_DATA_DDR DDRD
#define IBMPC_DATA_BIT 0
+/* reset line */
#define IBMPC_RST_PORT PORTB
#define IBMPC_RST_PIN PINB
#define IBMPC_RST_DDR DDRB
#define IBMPC_RST_BIT1 6
#define IBMPC_RST_BIT2 7
-/* reset for XT keyboard: low pulse for 500ms and after that HiZ for safety */
-#define IBMPC_RESET() do { \
+/* reset for XT Type-1 keyboard: low pulse for 500ms */
+#define IBMPC_RST_HIZ() do { \
+ IBMPC_RST_PORT &= ~(1<