diff options
| author | Damien George | 2014-02-08 16:00:15 +0000 |
|---|---|---|
| committer | Damien George | 2014-02-08 16:00:15 +0000 |
| commit | 23177088d255bec6c0bf93470aeac77194aa8258 (patch) | |
| tree | 2cee4c75c3fcea34f0cecb593e6cdab5ef027ae1 /stm/storage.h | |
| parent | aea532ece182b0eb234144612f3083e2da0b5943 (diff) | |
stm: Mount SD card on 1:/ if present.
If SD card is present on (soft) reset then it's mounted on 1:/ and files
can be openned using, eg, open('1:/test.txt', 'r'), or 'w' for writing.
Diffstat (limited to 'stm/storage.h')
| -rw-r--r-- | stm/storage.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stm/storage.h b/stm/storage.h index fe37e8b27..4d153d2f6 100644 --- a/stm/storage.h +++ b/stm/storage.h @@ -1,3 +1,5 @@ +#define FLASH_BLOCK_SIZE (512) + void storage_init(void); uint32_t storage_get_block_size(void); uint32_t storage_get_block_count(void); |
