aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--quantum/config_common.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/quantum/config_common.h b/quantum/config_common.h
index 6b525fe1c..21960f1a0 100644
--- a/quantum/config_common.h
+++ b/quantum/config_common.h
@@ -78,49 +78,3 @@
78# error "USART configuration is needed." 78# error "USART configuration is needed."
79# endif 79# endif
80#endif 80#endif
81
82/*
83 * PS/2 Interrupt configuration
84 */
85#ifdef PS2_USE_INT
86/* uses INT1 for clock line(ATMega32U4) */
87#define PS2_CLOCK_PORT PORTD
88#define PS2_CLOCK_PIN PIND
89#define PS2_CLOCK_DDR DDRD
90#define PS2_CLOCK_BIT 1
91
92#define PS2_DATA_PORT PORTD
93#define PS2_DATA_PIN PIND
94#define PS2_DATA_DDR DDRD
95#define PS2_DATA_BIT 0
96
97#define PS2_INT_INIT() do { \
98 EICRA |= ((1<<ISC11) | \
99 (0<<ISC10)); \
100} while (0)
101#define PS2_INT_ON() do { \
102 EIMSK |= (1<<INT1); \
103} while (0)
104#define PS2_INT_OFF() do { \
105 EIMSK &= ~(1<<INT1); \
106} while (0)
107#define PS2_INT_VECT INT1_vect
108#endif
109
110/*
111 * PS/2 Busywait configuration
112 */
113#ifdef PS2_USE_BUSYWAIT
114#define PS2_CLOCK_PORT PORTD
115#define PS2_CLOCK_PIN PIND
116#define PS2_CLOCK_DDR DDRD
117#define PS2_CLOCK_BIT 1
118
119#define PS2_DATA_PORT PORTD
120#define PS2_DATA_PIN PIND
121#define PS2_DATA_DDR DDRD
122#define PS2_DATA_BIT 0
123#endif
124
125#endif
126