summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPriyadi Iman Nurcahyo <priyadi@priyadi.net>2016-11-26 13:55:41 +0700
committerPriyadi Iman Nurcahyo <priyadi@priyadi.net>2016-11-26 13:55:41 +0700
commitde1df639535817e17f1c01f07e7a629cec478526 (patch)
tree9186d51eeabd3b1555606ea16afcfae89a908789
parentbf23ac96f62be1cb36d414e76599523af3caf00f (diff)
downloadqmk_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.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/quantum/config_common.h b/quantum/config_common.h
index 6b525fe1c6..21960f1a05 100644
--- a/quantum/config_common.h
+++ b/quantum/config_common.h
@@ -78,49 +78,3 @@
# error "USART configuration is needed."
# endif
#endif
-
-/*
- * PS/2 Interrupt configuration
- */
-#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 0
-
-#define PS2_INT_INIT() do { \
- EICRA |= ((1<<ISC11) | \
- (0<<ISC10)); \
-} while (0)
-#define PS2_INT_ON() do { \
- EIMSK |= (1<<INT1); \
-} while (0)
-#define PS2_INT_OFF() do { \
- EIMSK &= ~(1<<INT1); \
-} while (0)
-#define PS2_INT_VECT INT1_vect
-#endif
-
-/*
- * PS/2 Busywait configuration
- */
-#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 0
-#endif
-
-#endif
-