X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=converter%2Fxt_usb%2Fconfig.h;h=917626f8192340a5064797ac3bc530d7def6241a;hb=6b71d88150f143b767b6ede7bd9008332d8ae181;hp=a9f44ca8cdbb9f9f9255a6eef761e0e231b307e4;hpb=5cbc226addd2983076aae47611491c96b92d0344;p=max%2Ftmk_keyboard.git
diff --git a/converter/xt_usb/config.h b/converter/xt_usb/config.h
index a9f44ca8..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<