Add initial setting of Linked pin
This commit is contained in:
parent
ae28b16fc6
commit
f441ad07cc
|
@ -25,12 +25,17 @@ host_driver_t rn42_driver = {
|
||||||
|
|
||||||
void rn42_init(void)
|
void rn42_init(void)
|
||||||
{
|
{
|
||||||
// PF7: BT connection control(HiZ: connect, low: disconnect)
|
|
||||||
// JTAG disable for PORT F. write JTD bit twice within four cycles.
|
// JTAG disable for PORT F. write JTD bit twice within four cycles.
|
||||||
MCUCR |= (1<<JTD);
|
MCUCR |= (1<<JTD);
|
||||||
MCUCR |= (1<<JTD);
|
MCUCR |= (1<<JTD);
|
||||||
|
|
||||||
|
// PF7: BT connection control(high: connect, low: disconnect)
|
||||||
rn42_autoconnect();
|
rn42_autoconnect();
|
||||||
|
|
||||||
|
// PF6: linked(input without pull-up)
|
||||||
|
DDRF &= ~(1<<6);
|
||||||
|
PORTF &= ~(1<<6);
|
||||||
|
|
||||||
// PF1: RTS(low: allowed to send, high: not allowed)
|
// PF1: RTS(low: allowed to send, high: not allowed)
|
||||||
DDRF &= ~(1<<1);
|
DDRF &= ~(1<<1);
|
||||||
PORTF &= ~(1<<1);
|
PORTF &= ~(1<<1);
|
||||||
|
|
Loading…
Reference in New Issue