SDFileSystem/LocalFileSystem等の不具合や機種依存性を少なくしたライブラリ。 MiMic用
Dependents: HttpClientSamlpe AsyncHttpdSample MbedFileServer TcpSocketClientSamlpe ... more
Fork of NySDFileSystem by
Diff: FATFileSystem/ChaN/diskio.cpp
- Revision:
- 8:22ce3449b224
- Parent:
- 7:5429e81addde
--- a/FATFileSystem/ChaN/diskio.cpp Sun Apr 28 08:54:19 2013 +0000 +++ b/FATFileSystem/ChaN/diskio.cpp Sun Apr 28 12:23:28 2013 +0000 @@ -9,9 +9,6 @@ #include "FATFileSystem.h" -//#include "mbed_debug.h" -#define debug -#define debug_if using namespace mbed; @@ -19,7 +16,6 @@ BYTE drv /* Physical drive nmuber (0..) */ ) { - debug_if(FFS_DBG, "disk_initialize on drv [%d]\n", drv); return (DSTATUS)FATFileSystem::_ffs[drv]->disk_initialize(); } @@ -27,7 +23,6 @@ BYTE drv /* Physical drive nmuber (0..) */ ) { - debug_if(FFS_DBG, "disk_status on drv [%d]\n", drv); return (DSTATUS)FATFileSystem::_ffs[drv]->disk_status(); } @@ -38,9 +33,7 @@ BYTE count /* Number of sectors to read (1..255) */ ) { - debug_if(FFS_DBG, "disk_read(sector %d, count %d) on drv [%d]\n", sector, count, drv); for(DWORD s=sector; s<sector+count; s++) { - debug_if(FFS_DBG, " disk_read(sector %d)\n", s); int res = FATFileSystem::_ffs[drv]->disk_read((uint8_t*)buff, s); if(res) { return RES_PARERR; @@ -58,9 +51,7 @@ BYTE count /* Number of sectors to write (1..255) */ ) { - debug_if(FFS_DBG, "disk_write(sector %d, count %d) on drv [%d]\n", sector, count, drv); for(DWORD s = sector; s < sector + count; s++) { - debug_if(FFS_DBG, " disk_write(sector %d)\n", s); int res = FATFileSystem::_ffs[drv]->disk_write((uint8_t*)buff, s); if(res) { return RES_PARERR; @@ -77,7 +68,6 @@ void *buff /* Buffer to send/receive control data */ ) { - debug_if(FFS_DBG, "disk_ioctl(%d)\n", ctrl); switch(ctrl) { case CTRL_SYNC: if(FATFileSystem::_ffs[drv] == NULL) {