1
0
Fork 0
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:
Jay Blackman 2025-01-24 08:17:28 +11:00 committed by GitHub
parent 01af6d13bf
commit 908a347d2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 107 additions and 126 deletions

View file

@ -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);