1
0

hhkb: Pin setting for power saving

This commit is contained in:
tmk 2016-12-21 13:53:20 +09:00
parent 1713aaa6ff
commit f4a20304e4

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();