1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Added setting of 'spi_rx_protocol' to CLI.

This commit is contained in:
Michael Keller 2017-08-15 14:28:37 +12:00 committed by mikeller
parent 53920103d8
commit 1cdbb38ac8
2 changed files with 7 additions and 2 deletions

View file

@ -183,7 +183,8 @@ static const char * const lookupTableRxSpi[] = {
"CX10",
"CX10A",
"H8_3D",
"INAV"
"INAV",
"FRSKY_D"
};
#endif
@ -371,6 +372,9 @@ const clivalue_t valueTable[] = {
#ifdef STM32F4
{ "serialrx_halfduplex", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_RX_CONFIG, offsetof(rxConfig_t, halfDuplex) },
#endif
#ifdef USE_RX_SPI
{ "rx_spi_protocol", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_RX_SPI }, PG_RX_CONFIG, offsetof(rxConfig_t, rx_spi_protocol) },
#endif
// PG_PWM_CONFIG
#if defined(USE_PWM)

View file

@ -119,7 +119,8 @@ typedef struct rxConfig_s {
uint8_t serialrx_provider; // type of UART-based receiver (0 = spek 10, 1 = spek 11, 2 = sbus). Must be enabled by FEATURE_RX_SERIAL first.
uint8_t sbus_inversion; // default sbus (Futaba, FrSKY) is inverted. Support for uninverted OpenLRS (and modified FrSKY) receivers.
uint8_t halfDuplex; // allow rx to operate in half duplex mode on F4, ignored for F1 and F3.
uint8_t rx_spi_protocol; // type of nrf24 protocol (0 = v202 250kbps). Must be enabled by FEATURE_RX_NRF24 first.
uint8_t rx_spi_protocol; // type of SPI RX protocol
// nrf24: 0 = v202 250kbps. (Must be enabled by FEATURE_RX_NRF24 first.)
uint32_t rx_spi_id;
uint8_t rx_spi_rf_channel_count;
ioTag_t spektrum_bind_pin_override_ioTag;