test for export
Dependents: F401RE_USBMSD_RAM_copy
Fork of RAM_DISK by
Diff: USBMSD_Ram.cpp
- Revision:
- 2:ee281ece9011
- Parent:
- 1:3d0c421fe52b
- Child:
- 3:90186ebbe2c5
--- a/USBMSD_Ram.cpp Thu May 16 09:19:46 2013 +0000 +++ b/USBMSD_Ram.cpp Sun Nov 09 03:01:44 2014 +0000 @@ -109,13 +109,13 @@ return 0; } -int USBMSD_Ram::disk_write(const uint8_t * buffer, uint64_t block_number) { - memcpy(disk_image + block_number*512, buffer, 512); +int USBMSD_Ram::disk_write(const uint8_t * buffer, uint64_t block_number, uint8_t count) { + memcpy(disk_image + block_number*512, buffer, 512*count); return 0; } -int USBMSD_Ram::disk_read(uint8_t * buffer, uint64_t block_number) { - memcpy(buffer, disk_image + block_number*512, 512); +int USBMSD_Ram::disk_read(uint8_t * buffer, uint64_t block_number, uint8_t count) { + memcpy(buffer, disk_image + block_number*512, 512*count); return 0; }