You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
391 B
20 lines
391 B
10 years ago
|
#pragma once
|
||
|
|
||
|
//
|
||
|
// FAT-on-SD helpers
|
||
|
//
|
||
|
|
||
|
#include "fat16.h"
|
||
|
|
||
|
/** Initialize FAT16 filesystem on a SPI-connected SD card */
|
||
|
bool sdfat_init();
|
||
|
|
||
|
/** Get first file of the root folder. */
|
||
|
void sdfat_root(FAT16_FILE* file);
|
||
|
|
||
|
/** Get a disk label. Str should have 12 chars. */
|
||
|
void sdfat_disk_label(char* str);
|
||
|
|
||
|
/** Flush the SD buffer (alis of sdb_flush()) */
|
||
|
#define sdfat_flush() sdb_flush()
|