]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Add initial setting of Linked pin
authortmk <nobody@nowhere>
Mon, 28 Jul 2014 06:12:00 +0000 (15:12 +0900)
committertmk <nobody@nowhere>
Wed, 30 Jul 2014 05:38:27 +0000 (14:38 +0900)
keyboard/hhkb_rn42/rn42/rn42.c

index e7d8ba45cc23a0bea7d115b10dfc2d0bb4d7622c..556c61af9589e7e971a11e621d46d37e4a3a6a2a 100644 (file)
@@ -25,12 +25,17 @@ host_driver_t rn42_driver = {
 
 void rn42_init(void)
 {
-    // PF7: BT connection control(HiZ: connect, low: disconnect)
     // JTAG disable for PORT F. write JTD bit twice within four cycles.
     MCUCR |= (1<<JTD);
     MCUCR |= (1<<JTD);
+
+    // PF7: BT connection control(high: connect, low: disconnect)
     rn42_autoconnect();
 
+    // PF6: linked(input without pull-up)
+    DDRF  &= ~(1<<6);
+    PORTF &= ~(1<<6);
+
     // PF1: RTS(low: allowed to send, high: not allowed)
     DDRF &= ~(1<<1);
     PORTF &= ~(1<<1);