X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=keyboard%2Fonekey%2Fconfig.h;h=bf1d2b1ed3aaee62b087ae5eea3ef7e83429c13e;hb=c5d3988e7ace6a7c940f543ab2539be8ef15bd7d;hp=c5bc64de9c807cb50c16d5b1b6c24c4bcce4c608;hpb=b6677f10e33bfa49557dfebd0226928477ede56a;p=max%2Ftmk_keyboard.git
diff --git a/keyboard/onekey/config.h b/keyboard/onekey/config.h
index c5bc64de..bf1d2b1e 100644
--- a/keyboard/onekey/config.h
+++ b/keyboard/onekey/config.h
@@ -67,4 +67,90 @@ along with this program. If not, see .
//#define NO_ACTION_MACRO
//#define NO_ACTION_FUNCTION
+
+/* PS/2 mouse */
+#ifdef PS2_USE_BUSYWAIT
+# define PS2_CLOCK_PORT PORTD
+# define PS2_CLOCK_PIN PIND
+# define PS2_CLOCK_DDR DDRD
+# define PS2_CLOCK_BIT 1
+# define PS2_DATA_PORT PORTD
+# define PS2_DATA_PIN PIND
+# define PS2_DATA_DDR DDRD
+# define PS2_DATA_BIT 2
+#endif
+
+
+/* PS/2 mouse interrupt version */
+#ifdef PS2_USE_INT
+/* uses INT1 for clock line(ATMega32U4) */
+#define PS2_CLOCK_PORT PORTD
+#define PS2_CLOCK_PIN PIND
+#define PS2_CLOCK_DDR DDRD
+#define PS2_CLOCK_BIT 1
+#define PS2_DATA_PORT PORTD
+#define PS2_DATA_PIN PIND
+#define PS2_DATA_DDR DDRD
+#define PS2_DATA_BIT 2
+
+#define PS2_INT_INIT() do { \
+ EICRA |= ((1<