XN297EMU: option=0->nrf24L01, option!=0 -> CC2500

XN297L@250kbps is emulated by default with the NRF24L01. If option (freq tune) is diffrent from 0, the CC2500 module (if installed) will be used instead with option being the freq usual tuning.
This commit is contained in:
pascallanger
2020-01-12 14:06:27 +01:00
parent 953a97dae4
commit 6a9b6ed4be
12 changed files with 408 additions and 426 deletions

View File

@@ -331,7 +331,7 @@ void setup()
pinMode(S2_pin,INPUT_PULLUP);
pinMode(S3_pin,INPUT_PULLUP);
pinMode(S4_pin,INPUT_PULLUP);
#if defined ENABLE_DIRECT_INPUTS
#if defined (DI1_PIN)
pinMode(DI1_PIN,INPUT_PULLUP);
@@ -346,6 +346,7 @@ void setup()
pinMode(DI4_PIN,INPUT_PULLUP);
#endif
#endif
//Random pins
pinMode(PB0, INPUT_ANALOG); // set up pin for analog input
@@ -724,7 +725,6 @@ bool Update_All()
else
Channel_data[i]=val;
}
PPM_FLAG_off; // wait for next frame before update
#ifdef FAILSAFE_ENABLE
PPM_failsafe();