mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 09:16:07 +03:00
Allow mixed speed and mode on a SPI bus by CR1 caching
This commit is contained in:
parent
4778ad6c0f
commit
343e9b3a67
22 changed files with 390 additions and 58 deletions
|
@ -69,7 +69,11 @@ static void w25m_dieSelect(busDevice_t *busdev, int die)
|
|||
|
||||
uint8_t command[2] = { W25M_INSTRUCTION_SOFTWARE_DIE_SELECT, die };
|
||||
|
||||
#ifdef SPI_BUS_TRANSACTION
|
||||
spiBusTransactionTransfer(busdev, command, NULL, 2);
|
||||
#else
|
||||
spiBusTransfer(busdev, command, NULL, 2);
|
||||
#endif
|
||||
|
||||
activeDie = die;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue