mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Added configuration for RX SPI CS pin.
This commit is contained in:
parent
92fe0392a4
commit
7ddf0dbb65
1 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,9 @@ void rxSpiDeviceInit(rx_spi_type_e spiType)
|
||||||
#else
|
#else
|
||||||
UNUSED(spiType);
|
UNUSED(spiType);
|
||||||
const SPIDevice rxSPIDevice = spiDeviceByInstance(RX_SPI_INSTANCE);
|
const SPIDevice rxSPIDevice = spiDeviceByInstance(RX_SPI_INSTANCE);
|
||||||
IOInit(DEFIO_IO(RX_NSS_PIN), OWNER_SPI_CS, rxSPIDevice + 1);
|
const IO_t rxCsPin = DEFIO_IO(RX_NSS_PIN);
|
||||||
|
IOInit(rxCsPin, OWNER_SPI_CS, rxSPIDevice + 1);
|
||||||
|
IOConfigGPIO(rxCsPin, SPI_IO_CS_CFG);
|
||||||
#endif // USE_RX_SOFTSPI
|
#endif // USE_RX_SOFTSPI
|
||||||
|
|
||||||
DISABLE_RX();
|
DISABLE_RX();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue