From f441ad07ccbb7ed0a6fbe7068f89aacd6dc6ff3d Mon Sep 17 00:00:00 2001
From: tmk <nobody@nowhere>
Date: Mon, 28 Jul 2014 15:12:00 +0900
Subject: [PATCH] Add initial setting of Linked pin

---
 keyboard/hhkb_rn42/rn42/rn42.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/keyboard/hhkb_rn42/rn42/rn42.c b/keyboard/hhkb_rn42/rn42/rn42.c
index e7d8ba4..556c61a 100644
--- a/keyboard/hhkb_rn42/rn42/rn42.c
+++ b/keyboard/hhkb_rn42/rn42/rn42.c
@@ -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);
-- 
2.39.5