Commit Graph

11 Commits (fedb7f02c014a5006c2e8cddb8d6444211b1bebd)

Author SHA1 Message Date
Bogdan Marinescu e4109d8efc Added MemFileSystem.h from repo on mbed.org 2014-08-28 09:55:01 +01:00
neilt6 083ac31ad5 Added count argument to disk read/write
The count argument in disk_read() and disk_write() is now passed to the
FATFileSystem instance. This allows more efficient disk drivers to be
written that can read and write multiple sectors at a time.
2014-08-13 09:12:12 -06:00
Alexander Valitov cde156cadc Added implementation for "rename" on FAT file system 2014-08-13 10:20:31 +01:00
neilt6 979bc3e2d5 Added mount/unmount to FATFileSystem
Added virtual mount()/unmount() methods to FATFileSystem to allow users
to swap removable disks.
2014-07-30 10:22:23 -06:00
0xc0170 a5e0dea136 spaces removal - fs 2014-05-29 15:39:05 +02:00
Olivier Martin 2251b0267d libraries/fs: Added logic to transparently sync written file
fflush() does not do anything in mbed library. The only time the file
was flushed was when it was closed.
For some applications (eg: data logger), files are never closed. It
means when the power went off all the written data were lost.
Actually, they were not lost; they were written into the non-volatile
storage. But the file header was not aware of these new data (its
file information such as file size were not updated).

There is no easy way to retarget fflush() for mbed. So, the workaround
is to fflush (eg: 'sync' in the ChaN terminology) periodically
while writting new data.

The frequency can be changed by the user into ffconf.h.
By default, the updated file will be synced for every new sector (generally
for every 512 bytes). Another available option is to sync for every
new cluster (in my use case, the cluster was 8 sectors long).
2014-02-21 09:57:23 +00:00
Emilio Monti 4d6bf98d64 Merge pull request #168 from oliviermartin/om/sd-fix-when-no-card-present
libraries/sd: Fixed SDFileSystem when no card present
2014-02-18 10:47:11 +00:00
Olivier Martin 1e548aba02 libraries/sd: Allow changing the default clock settings for the initialization and transfer states. 2014-02-17 23:49:33 +00:00
Olivier Martin cd2b7de281 libraries/sd: Fixed SDFileSystem when no card present (or failed its initialization). 2014-02-17 23:44:12 +00:00
Adam Green 5e4439bb19 fs: Silence GCC signed/unsigned warnings
The SDFileSystem class contained a few routines which compared a signed
integer loop index to an unsigned integer length/size.  I switched the
loop index to be uint32_t as well.
2013-08-19 22:53:49 -07:00
Emilio Monti 5c20760685 Initial commit of the mbed libraries and tools 2013-02-18 15:32:11 +00:00