mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-13 02:07:53 +00:00
Calibrate cc2500 PLL if sub-protocol is E010/Phoenix only
This commit is contained in:
parent
6257e25f56
commit
94a1aa8559
@ -113,7 +113,7 @@ static void __attribute__((unused)) XN297L_init()
|
|||||||
// Sync Word Qualifier Mode = No preamble/sync
|
// Sync Word Qualifier Mode = No preamble/sync
|
||||||
// TX Power = 0
|
// TX Power = 0
|
||||||
// Whitening = false
|
// Whitening = false
|
||||||
// Fast Frequency Hopping - no PLL auto calibration
|
// Fast Frequency Hopping - no PLL auto calibration
|
||||||
|
|
||||||
CC2500_WriteReg(CC2500_08_PKTCTRL0, 0x01); // Packet Automation Control
|
CC2500_WriteReg(CC2500_08_PKTCTRL0, 0x01); // Packet Automation Control
|
||||||
CC2500_WriteReg(CC2500_0B_FSCTRL1, 0x0A); // Frequency Synthesizer Control
|
CC2500_WriteReg(CC2500_0B_FSCTRL1, 0x0A); // Frequency Synthesizer Control
|
||||||
@ -380,7 +380,7 @@ static void __attribute__((unused)) MJXQ_init()
|
|||||||
CC2500_WriteReg(CC2500_0C_FSCTRL0, option); // Frequency offset hack
|
CC2500_WriteReg(CC2500_0C_FSCTRL0, option); // Frequency offset hack
|
||||||
XN297L_SetTXAddr(addr, sizeof(addr));
|
XN297L_SetTXAddr(addr, sizeof(addr));
|
||||||
CC2500_SetPower();
|
CC2500_SetPower();
|
||||||
calibrate_pll();
|
calibrate_pll();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
@ -428,6 +428,9 @@ static void __attribute__((unused)) MJXQ_init2()
|
|||||||
hopping_frequency[i]=pgm_read_byte_near( &E010_map_rfchan[rx_tx_addr[3]&0x0F][i] );
|
hopping_frequency[i]=pgm_read_byte_near( &E010_map_rfchan[rx_tx_addr[3]&0x0F][i] );
|
||||||
hopping_frequency[i+2]=hopping_frequency[i]+0x10;
|
hopping_frequency[i+2]=hopping_frequency[i]+0x10;
|
||||||
}
|
}
|
||||||
|
#ifdef CC2500_INSTALLED
|
||||||
|
calibrate_pll();
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case WLH08:
|
case WLH08:
|
||||||
// do nothing
|
// do nothing
|
||||||
@ -475,9 +478,6 @@ uint16_t MJXQ_callback()
|
|||||||
if (bind_counter == 0)
|
if (bind_counter == 0)
|
||||||
{
|
{
|
||||||
MJXQ_init2();
|
MJXQ_init2();
|
||||||
#ifdef CC2500_INSTALLED
|
|
||||||
calibrate_pll();
|
|
||||||
#endif
|
|
||||||
BIND_DONE;
|
BIND_DONE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user