Browse Source

hhkb: Pin setting for power saving

master
tmk 7 years ago
parent
commit
f4a20304e4
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      keyboard/hhkb/hhkb_avr.h

+ 4
- 0
keyboard/hhkb/hhkb_avr.h View File

@@ -71,6 +71,10 @@ static inline void KEY_INIT(void)
/* row extention for HHKB JP */
DDRC |= (1<<6|1<<7);
PORTC |= (1<<6|1<<7);
#else
/* input with pull up to save power */
DDRC &= ~(1<<6|1<<7);
PORTC |= (1<<6|1<<7);
#endif
KEY_UNABLE();
KEY_PREV_OFF();

Loading…
Cancel
Save