aboutsummaryrefslogtreecommitdiff
path: root/keyboard/onekey
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/onekey')
-rw-r--r--keyboard/onekey/Makefile.lufa2
-rw-r--r--keyboard/onekey/Makefile.pjrc4
-rw-r--r--keyboard/onekey/config.h6
3 files changed, 7 insertions, 5 deletions
diff --git a/keyboard/onekey/Makefile.lufa b/keyboard/onekey/Makefile.lufa
index 2a97aa63a..60a84ba00 100644
--- a/keyboard/onekey/Makefile.lufa
+++ b/keyboard/onekey/Makefile.lufa
@@ -93,7 +93,7 @@ ARCH = AVR8
93F_USB = $(F_CPU) 93F_USB = $(F_CPU)
94 94
95# Interrupt driven control endpoint task(+60) 95# Interrupt driven control endpoint task(+60)
96#OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT 96OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
97 97
98 98
99# Boot Section Size in *bytes* 99# Boot Section Size in *bytes*
diff --git a/keyboard/onekey/Makefile.pjrc b/keyboard/onekey/Makefile.pjrc
index 0f0f70972..24ade3350 100644
--- a/keyboard/onekey/Makefile.pjrc
+++ b/keyboard/onekey/Makefile.pjrc
@@ -87,8 +87,8 @@ CONSOLE_ENABLE = yes # Console for debug
87#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend 87#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
88#NKRO_ENABLE = yes # USB Nkey Rollover(+500) 88#NKRO_ENABLE = yes # USB Nkey Rollover(+500)
89 89
90#PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support 90PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support
91#PS2_USE_BUSYWAIT = yes # uses primitive reference code 91PS2_USE_BUSYWAIT = yes # uses primitive reference code
92#PS2_USE_INT = yes # uses external interrupt for falling edge of PS/2 clock pin 92#PS2_USE_INT = yes # uses external interrupt for falling edge of PS/2 clock pin
93#PS2_USE_USART = yes # uses hardware USART engine for PS/2 signal receive(recomened) 93#PS2_USE_USART = yes # uses hardware USART engine for PS/2 signal receive(recomened)
94 94
diff --git a/keyboard/onekey/config.h b/keyboard/onekey/config.h
index e99a64850..1d2e052bf 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/>.
73# define PS2_CLOCK_PORT PORTD 73# define PS2_CLOCK_PORT PORTD
74# define PS2_CLOCK_PIN PIND 74# define PS2_CLOCK_PIN PIND
75# define PS2_CLOCK_DDR DDRD 75# define PS2_CLOCK_DDR DDRD
76# define PS2_CLOCK_BIT 1 76# define PS2_CLOCK_BIT 5
77# define PS2_DATA_PORT PORTD 77# define PS2_DATA_PORT PORTD
78# define PS2_DATA_PIN PIND 78# define PS2_DATA_PIN PIND
79# define PS2_DATA_DDR DDRD 79# define PS2_DATA_DDR DDRD
@@ -81,12 +81,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
81#endif 81#endif
82 82
83 83
84/* PS/2 mouse interrupt version */
84#ifdef PS2_USE_INT 85#ifdef PS2_USE_INT
85/* uses INT1 for clock line(ATMega32U4) */ 86/* uses INT1 for clock line(ATMega32U4) */
86#define PS2_CLOCK_PORT PORTD 87#define PS2_CLOCK_PORT PORTD
87#define PS2_CLOCK_PIN PIND 88#define PS2_CLOCK_PIN PIND
88#define PS2_CLOCK_DDR DDRD 89#define PS2_CLOCK_DDR DDRD
89#define PS2_CLOCK_BIT 1 90#define PS2_CLOCK_BIT 5
90#define PS2_DATA_PORT PORTD 91#define PS2_DATA_PORT PORTD
91#define PS2_DATA_PIN PIND 92#define PS2_DATA_PIN PIND
92#define PS2_DATA_DDR DDRD 93#define PS2_DATA_DDR DDRD
@@ -106,6 +107,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
106#endif 107#endif
107 108
108 109
110/* PS/2 mouse USART version */
109#ifdef PS2_USE_USART 111#ifdef PS2_USE_USART
110#if defined(__AVR_ATmega16U4__) || defined(__AVR_ATmega32U4__) 112#if defined(__AVR_ATmega16U4__) || defined(__AVR_ATmega32U4__)
111/* XCK for clock line and RXD for data line */ 113/* XCK for clock line and RXD for data line */