This library implements a USB Mass Storage device in the ethernet RAM bank
Dependents: Lab8_USB-MSD_RAM_HelloWorld_mbed
Fork of USBMSD_SD by
Diff: USBMSD_SD.cpp
- Revision:
- 4:a4423c624fed
- Parent:
- 3:dbd7383533e6
--- a/USBMSD_SD.cpp Mon Aug 19 04:35:39 2013 +0000 +++ b/USBMSD_SD.cpp Wed Mar 26 07:01:02 2014 +0000 @@ -497,12 +497,12 @@ #define SD_COMMAND_TIMEOUT 5000 #define SD_DBG 0 -#define BLOCKS 16 +#define BLOCKS 32 #define FS BLOCKS*512 LocalFileSystem local("local"); -char s[FS]; +char s[FS] __attribute__((section("AHBSRAM1"))); int status = 1; USBMSD_SD::USBMSD_SD(PinName mosi, PinName miso, PinName sclk, PinName cs) : @@ -558,7 +558,11 @@ int USBMSD_SD::disk_sync() { printf("sync\n"); return 0; } -uint64_t USBMSD_SD::disk_size() { printf("size\n"); return FS;} +uint64_t USBMSD_SD::disk_size() { + printf("size\n"); + printf("Location: %x\n", &s); + return FS; +} uint64_t USBMSD_SD::disk_sectors() { printf("sectors\n"); return BLOCKS; }