mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 03:50:02 +03:00
New SPI API supporting DMA
Call targetConfiguration() once before config is loaded and again afterwards in case the config needs to be changed to load from SD card etc Drop SPI clock during binding Remove debug Add per device SPI DMA enable Fix sdioPinConfigure() declaration warning Reduce clock speed during SPI RX initialisation
This commit is contained in:
parent
6d286e25f1
commit
87c8847c13
136 changed files with 3585 additions and 2721 deletions
|
@ -36,7 +36,7 @@ typedef enum {
|
|||
|
||||
typedef struct flashDeviceIO_s {
|
||||
union {
|
||||
busDevice_t *busdev; // Device interface dependent handle (spi/i2c)
|
||||
extDevice_t *dev; // Device interface dependent handle (spi/i2c)
|
||||
#ifdef USE_QUADSPI
|
||||
QUADSPI_TypeDef *quadSpi;
|
||||
#endif
|
||||
|
@ -55,6 +55,8 @@ typedef struct flashDevice_s {
|
|||
bool couldBeBusy;
|
||||
uint32_t timeoutAt;
|
||||
flashDeviceIO_t io;
|
||||
void (*callback)(uint32_t arg);
|
||||
uint32_t callbackArg;
|
||||
} flashDevice_t;
|
||||
|
||||
typedef struct flashVTable_s {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue