mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Merge pull request #3828 from mikeller/add_rx_spi_config
Added configuration for RX SPI CS pin.
This commit is contained in:
commit
f6d550f079
1 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,9 @@ void rxSpiDeviceInit(rx_spi_type_e spiType)
|
|||
#else
|
||||
UNUSED(spiType);
|
||||
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
|
||||
|
||||
DISABLE_RX();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue