]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
hhkb: Pin setting for power saving
authortmk <hasu@tmk-kbd.com>
Wed, 21 Dec 2016 04:53:20 +0000 (13:53 +0900)
committertmk <hasu@tmk-kbd.com>
Wed, 21 Dec 2016 04:53:20 +0000 (13:53 +0900)
keyboard/hhkb/hhkb_avr.h

index 7ea6322c738ef371e931a43901e0ae467de50dcc..5cb1d0d7d8365d594450b0ddcde0704c650767ee 100644 (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();