mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 07:15:18 +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
|
@ -70,6 +70,9 @@ typedef struct SPIDevice_s {
|
|||
DMA_HandleTypeDef hdma;
|
||||
uint8_t dmaIrqHandler;
|
||||
#endif
|
||||
#ifdef USE_SPI_TRANSACTION
|
||||
uint16_t cr1SoftCopy; // Copy of active CR1 value for this SPI instance
|
||||
#endif
|
||||
} spiDevice_t;
|
||||
|
||||
extern spiDevice_t spiDevice[SPIDEV_COUNT];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue