mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Added setting of 'spi_rx_protocol' to CLI.
This commit is contained in:
parent
53920103d8
commit
1cdbb38ac8
2 changed files with 7 additions and 2 deletions
|
@ -183,7 +183,8 @@ static const char * const lookupTableRxSpi[] = {
|
||||||
"CX10",
|
"CX10",
|
||||||
"CX10A",
|
"CX10A",
|
||||||
"H8_3D",
|
"H8_3D",
|
||||||
"INAV"
|
"INAV",
|
||||||
|
"FRSKY_D"
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -371,6 +372,9 @@ const clivalue_t valueTable[] = {
|
||||||
#ifdef STM32F4
|
#ifdef STM32F4
|
||||||
{ "serialrx_halfduplex", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_RX_CONFIG, offsetof(rxConfig_t, halfDuplex) },
|
{ "serialrx_halfduplex", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_RX_CONFIG, offsetof(rxConfig_t, halfDuplex) },
|
||||||
#endif
|
#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
|
// PG_PWM_CONFIG
|
||||||
#if defined(USE_PWM)
|
#if defined(USE_PWM)
|
||||||
|
|
|
@ -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 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 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 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;
|
uint32_t rx_spi_id;
|
||||||
uint8_t rx_spi_rf_channel_count;
|
uint8_t rx_spi_rf_channel_count;
|
||||||
ioTag_t spektrum_bind_pin_override_ioTag;
|
ioTag_t spektrum_bind_pin_override_ioTag;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue