summaryrefslogtreecommitdiffstats
path: root/keyboard/onekey/config.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-11-21 13:00:08 +0900
committertmk <nobody@nowhere>2013-11-21 13:00:08 +0900
commita9c3f4750b3d703b8bbbc90db2566afd2aab0ec9 (patch)
treefdc02b6f2d5a64ef1d25566084081329a004b023 /keyboard/onekey/config.h
parentccbc1dd8e74e89624b6ac4ce6cf474ce6e9fc7ed (diff)
Configure PS/2 mouse build options to onekey
Diffstat (limited to 'keyboard/onekey/config.h')
-rw-r--r--keyboard/onekey/config.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/keyboard/onekey/config.h b/keyboard/onekey/config.h
index e99a64850c..1d2e052bf0 100644
--- a/keyboard/onekey/config.h
+++ b/keyboard/onekey/config.h
@@ -73,7 +73,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
# define PS2_CLOCK_PORT PORTD
# define PS2_CLOCK_PIN PIND
# define PS2_CLOCK_DDR DDRD
-# define PS2_CLOCK_BIT 1
+# define PS2_CLOCK_BIT 5
# define PS2_DATA_PORT PORTD
# define PS2_DATA_PIN PIND
# define PS2_DATA_DDR DDRD
@@ -81,12 +81,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#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_CLOCK_BIT 5
#define PS2_DATA_PORT PORTD
#define PS2_DATA_PIN PIND
#define PS2_DATA_DDR DDRD
@@ -106,6 +107,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#endif
+/* PS/2 mouse USART version */
#ifdef PS2_USE_USART
#if defined(__AVR_ATmega16U4__) || defined(__AVR_ATmega32U4__)
/* XCK for clock line and RXD for data line */