Test program for SDHCFileSystem performance test.
Dependencies: FatFileSystem mbed
Fork of SDHCFileSystem by
SDHCFileSystem performance test.
Using SDHCFileSystem/FatFileSystem via fopen()/fwrite()/fclose() . With simple code of reading/writing (fgets()/fputs()) text file.
in performance test of fwrite()
- File size is changeable
- Block size is changeable
- SPI Frequency of SDHCFileSytesm is changeable
You can change SPI Frequency by changing the SDHC_SPI_FREQUENCY in SDHCFileSystem.h
// spi frequency (Hz) 100000->100kHz #define SDHC_SPI_FREQUENCY 2000000
performance test funcion
in main.cpp
void speedtest(char *path, int totallen, int blocklen, bool unlinkfile);
- path
- full path of the file
- totallen
- total length (byte) of test data
- blocklen
- length (byte) of the data writing once by fwrite()
- unlinkfile
- true->remove the file as ending this function
FatFileSystem.lib@1:f69b56cac865, 2013-02-14 (annotated)
- Committer:
- hayashiisme
- Date:
- Thu Feb 14 02:07:38 2013 +0000
- Revision:
- 1:f69b56cac865
Commit for publishing
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hayashiisme | 1:f69b56cac865 | 1 | http://mbed.org/users/shintamainjp/code/FatFileSystem/#8c55801ce311 |