From: tmk Date: Wed, 21 Dec 2016 04:53:20 +0000 (+0900) Subject: hhkb: Pin setting for power saving X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=f4a20304e46d71e67c730bd57f7de201934adb35;p=max%2Ftmk_keyboard.git hhkb: Pin setting for power saving --- diff --git a/keyboard/hhkb/hhkb_avr.h b/keyboard/hhkb/hhkb_avr.h index 7ea6322c..5cb1d0d7 100644 --- a/keyboard/hhkb/hhkb_avr.h +++ b/keyboard/hhkb/hhkb_avr.h @@ -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();