mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 09:45:37 +03:00
Refactor SPI pre init to make it generic and usable from io.h (#14174)
This commit is contained in:
parent
01af6d13bf
commit
908a347d2f
35 changed files with 107 additions and 126 deletions
|
@ -109,7 +109,7 @@ STATIC_ASSERT(sizeof(sdcardCSD_t) == 16, sdcard_csd_bitfields_didnt_pack_properl
|
|||
bool sdcard_isInserted(void);
|
||||
|
||||
typedef struct sdcardVTable_s {
|
||||
void (*sdcard_preInit)(const sdcardConfig_t *config);
|
||||
void (*sdcard_preinit)(const sdcardConfig_t *config);
|
||||
void (*sdcard_init)(const sdcardConfig_t *config, const spiPinConfig_t *spiConfig);
|
||||
bool (*sdcard_readBlock)(uint32_t blockIndex, uint8_t *buffer, sdcard_operationCompleteCallback_c callback, uint32_t callbackData);
|
||||
sdcardOperationStatus_e (*sdcard_beginWriteBlocks)(uint32_t blockIndex, uint32_t blockCount);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue