mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 09:16:07 +03:00
Updates to use newly merged SD card code
This commit is contained in:
parent
dce49d4abb
commit
6055ab2432
6 changed files with 135 additions and 114 deletions
|
@ -227,7 +227,7 @@ uint8_t SD_ReadByte(void);
|
|||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct sdcard_metadata_t {
|
||||
typedef struct sdcardMetadata_t {
|
||||
uint8_t manufacturerID;
|
||||
uint16_t oemID;
|
||||
|
||||
|
@ -263,6 +263,10 @@ void sdcard_init(bool useDMA);
|
|||
bool sdcard_readBlock(uint32_t blockIndex, uint8_t *buffer, sdcard_operationCompleteCallback_c callback, uint32_t callbackData);
|
||||
sdcardOperationStatus_e sdcard_writeBlock(uint32_t blockIndex, uint8_t *buffer, sdcard_operationCompleteCallback_c callback, uint32_t callbackData);
|
||||
|
||||
void sdcard_poll();
|
||||
bool sdcard_isReady();
|
||||
void sdcardInsertionDetectDeinit(void);
|
||||
void sdcardInsertionDetectInit(void);
|
||||
bool sdcard_isInserted();
|
||||
|
||||
void sdcard_poll();
|
||||
bool sdcard_isInitialized();
|
||||
const sdcardMetadata_t* sdcard_getMetadata();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue