33 #if defined(USE_RX_FRSKY_SPI) || defined(USE_RX_SFHSS_SPI)
55 #if defined(USE_RX_CC2500_SPI_PA_LNA)
57 static IO_t rxLnaEnPin;
58 #if defined(USE_RX_CC2500_SPI_DIVERSITY)
59 static IO_t antSelPin;
85 #if defined(USE_RX_CC2500_SPI_PA_LNA) && defined(USE_RX_CC2500_SPI_DIVERSITY)
86 void cc2500switchAntennae(
void)
88 static bool alternativeAntennaSelected =
true;
91 if (alternativeAntennaSelected) {
96 alternativeAntennaSelected = !alternativeAntennaSelected;
100 #if defined(USE_RX_CC2500_SPI_PA_LNA)
101 void cc2500TxEnable(
void)
108 void cc2500TxDisable(
void)
120 if (chipPartNum == 0x80 && chipVersion == 0x03) {
142 #if defined(USE_RX_CC2500_SPI_PA_LNA)
145 IOInit(rxLnaEnPin, OWNER_RX_SPI_CC2500_LNA_EN, 0);
152 IOInit(txEnPin, OWNER_RX_SPI_CC2500_TX_EN, 0);
157 #if defined(USE_RX_CC2500_SPI_DIVERSITY)
160 IOInit(antSelPin, OWNER_RX_SPI_CC2500_ANT_SEL, 0);
168 #endif // USE_RX_CC2500_SPI_PA_LNA
170 #if defined(USE_RX_CC2500_SPI_PA_LNA)
172 #endif // USE_RX_CC2500_SPI_PA_LNA