X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=converter%2Fxt_usb%2Fconfig.h;h=917626f8192340a5064797ac3bc530d7def6241a;hb=791611add5818634109ee068f5391bb7f212fb19;hp=21e764007b34489908547fd8c5366a4ab02c9cad;hpb=3def1c3065a3b1f85a99cc7336f41f486d9ec67d;p=max%2Ftmk_keyboard.git
diff --git a/converter/xt_usb/config.h b/converter/xt_usb/config.h
index 21e76400..917626f8 100644
--- a/converter/xt_usb/config.h
+++ b/converter/xt_usb/config.h
@@ -45,8 +45,6 @@ along with this program. If not, see .
/*
* XT Pin interrupt
*/
-#ifdef XT_USE_INT
-/* uses INT1 for clock line(ATMega32U4) */
#define XT_CLOCK_PORT PORTD
#define XT_CLOCK_PIN PIND
#define XT_CLOCK_DDR DDRD
@@ -55,17 +53,32 @@ along with this program. If not, see .
#define XT_DATA_PIN PIND
#define XT_DATA_DDR DDRD
#define XT_DATA_BIT 0
+#define XT_RST_PORT PORTB
+#define XT_RST_PIN PINB
+#define XT_RST_DDR DDRB
+#define XT_RST_BIT 7
+
+/* hard reset: low pulse for 500ms and after that HiZ for safety */
+#define XT_RESET() do { \
+ XT_RST_PORT &= ~(1<