aboutsummaryrefslogtreecommitdiff
path: root/keyboard/hhkb/matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/hhkb/matrix.c')
-rw-r--r--keyboard/hhkb/matrix.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/keyboard/hhkb/matrix.c b/keyboard/hhkb/matrix.c
index 350066b90..79d2d9873 100644
--- a/keyboard/hhkb/matrix.c
+++ b/keyboard/hhkb/matrix.c
@@ -68,8 +68,8 @@ static bool matrix_has_ghost_in_row(uint8_t row);
68// key: on: 0/off: 1 68// key: on: 0/off: 1
69// prev: unknown: output previous key state(negated)? 69// prev: unknown: output previous key state(negated)?
70 70
71#ifdef HOST_PJRC 71#if defined(__AVR_AT90USB1286__)
72// Ports for Teensy 72// Ports for Teensy++
73// row: PB0-2 73// row: PB0-2
74// col: PB3-5,6 74// col: PB3-5,6
75// key: PE6(pull-uped) 75// key: PE6(pull-uped)
@@ -90,7 +90,8 @@ static bool matrix_has_ghost_in_row(uint8_t row);
90#define KEY_PREV_OFF() (PORTE &= ~(1<<7)) 90#define KEY_PREV_OFF() (PORTE &= ~(1<<7))
91#define KEY_POWER_ON() 91#define KEY_POWER_ON()
92#define KEY_POWER_OFF() 92#define KEY_POWER_OFF()
93#else 93
94#elif defined(__AVR_ATmega328P__)
94// Ports for V-USB 95// Ports for V-USB
95// key: PB0(pull-uped) 96// key: PB0(pull-uped)
96// prev: PB1 97// prev: PB1
@@ -126,6 +127,9 @@ static bool matrix_has_ghost_in_row(uint8_t row);
126 DDRC &= ~0x0F; \ 127 DDRC &= ~0x0F; \
127 PORTC &= ~0x0F; \ 128 PORTC &= ~0x0F; \
128} while (0) 129} while (0)
130
131#else
132# error "define code for matrix scan"
129#endif 133#endif
130 134
131 135