diff options
author | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2016-11-26 13:55:41 +0700 |
---|---|---|
committer | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2016-11-26 13:55:41 +0700 |
commit | de1df639535817e17f1c01f07e7a629cec478526 (patch) | |
tree | 9186d51eeabd3b1555606ea16afcfae89a908789 | |
parent | bf23ac96f62be1cb36d414e76599523af3caf00f (diff) | |
download | qmk_firmware-de1df639535817e17f1c01f07e7a629cec478526.tar.gz qmk_firmware-de1df639535817e17f1c01f07e7a629cec478526.zip |
PS2 pins configuration belongs to each keyboards config.h
Each keyboard might have different pin configuration. And keeping this
here will trigger redefinition warning on keyboards that have PS2
defines.
-rw-r--r-- | quantum/config_common.h | 46 |
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 | |||