mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 09:16:07 +03:00
SDCard: multi-block write, card profiling. AFATFS: Bugfixes
This commit is contained in:
parent
518c765620
commit
360ea84a14
9 changed files with 533 additions and 105 deletions
|
@ -258,9 +258,13 @@ typedef enum {
|
|||
|
||||
typedef void(*sdcard_operationCompleteCallback_c)(sdcardBlockOperation_e operation, uint32_t blockIndex, uint8_t *buffer, uint32_t callbackData);
|
||||
|
||||
typedef void(*sdcard_profilerCallback_c)(sdcardBlockOperation_e operation, uint32_t blockIndex, uint32_t duration);
|
||||
|
||||
void sdcard_init(bool useDMA);
|
||||
|
||||
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);
|
||||
sdcardOperationStatus_e sdcard_writeBlock(uint32_t blockIndex, uint8_t *buffer, sdcard_operationCompleteCallback_c callback, uint32_t callbackData);
|
||||
|
||||
void sdcardInsertionDetectDeinit(void);
|
||||
|
@ -272,3 +276,5 @@ bool sdcard_isFunctional();
|
|||
|
||||
bool sdcard_poll();
|
||||
const sdcardMetadata_t* sdcard_getMetadata();
|
||||
|
||||
void sdcard_setProfilerCallback(sdcard_profilerCallback_c callback);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue