diff options
| author | tmk <nobody@nowhere> | 2014-07-28 15:12:00 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2014-07-30 14:38:27 +0900 |
| commit | f441ad07ccbb7ed0a6fbe7068f89aacd6dc6ff3d (patch) | |
| tree | d9f2cce4da45fdecb93aa83acba59417c5781f44 | |
| parent | ae28b16fc630cc8219676f1bfb9cee41f0b36a79 (diff) | |
| download | qmk_firmware-f441ad07ccbb7ed0a6fbe7068f89aacd6dc6ff3d.tar.gz qmk_firmware-f441ad07ccbb7ed0a6fbe7068f89aacd6dc6ff3d.zip | |
Add initial setting of Linked pin
| -rw-r--r-- | keyboard/hhkb_rn42/rn42/rn42.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/keyboard/hhkb_rn42/rn42/rn42.c b/keyboard/hhkb_rn42/rn42/rn42.c index e7d8ba45c..556c61af9 100644 --- a/keyboard/hhkb_rn42/rn42/rn42.c +++ b/keyboard/hhkb_rn42/rn42/rn42.c | |||
| @@ -25,12 +25,17 @@ host_driver_t rn42_driver = { | |||
| 25 | 25 | ||
| 26 | void rn42_init(void) | 26 | void rn42_init(void) |
| 27 | { | 27 | { |
| 28 | // PF7: BT connection control(HiZ: connect, low: disconnect) | ||
| 29 | // JTAG disable for PORT F. write JTD bit twice within four cycles. | 28 | // JTAG disable for PORT F. write JTD bit twice within four cycles. |
| 30 | MCUCR |= (1<<JTD); | 29 | MCUCR |= (1<<JTD); |
| 31 | MCUCR |= (1<<JTD); | 30 | MCUCR |= (1<<JTD); |
| 31 | |||
| 32 | // PF7: BT connection control(high: connect, low: disconnect) | ||
| 32 | rn42_autoconnect(); | 33 | rn42_autoconnect(); |
| 33 | 34 | ||
| 35 | // PF6: linked(input without pull-up) | ||
| 36 | DDRF &= ~(1<<6); | ||
| 37 | PORTF &= ~(1<<6); | ||
| 38 | |||
| 34 | // PF1: RTS(low: allowed to send, high: not allowed) | 39 | // PF1: RTS(low: allowed to send, high: not allowed) |
| 35 | DDRF &= ~(1<<1); | 40 | DDRF &= ~(1<<1); |
| 36 | PORTF &= ~(1<<1); | 41 | PORTF &= ~(1<<1); |
