Updated to use latest headers of USBDevice

Dependents:   USBMSB_Ramdisk_kl25z 14_USBMSB_Ramdisk

Fork of RAM_DISK by Samuel Mokrani

Revision:
1:0b8a0be40802
Parent:
0:ba333853266b
--- a/USBMSD_Ram.cpp	Sat Mar 03 07:55:24 2012 +0000
+++ b/USBMSD_Ram.cpp	Wed May 15 22:38:36 2013 +0000
@@ -214,18 +214,18 @@
     return 0;
 }
 
-int USBMSD_Ram::disk_write(const char *buffer, int block_number) { 
+int USBMSD_Ram::disk_write(const uint8_t * buffer, uint64_t block_number) { 
     memcpy((void *)&disk_image[block_number*512], buffer, 512);
     return 0;    
 }
 
-int USBMSD_Ram::disk_read(char *buffer, int block_number) {
+int USBMSD_Ram::disk_read(uint8_t * buffer, uint64_t block_number) {
     memcpy(buffer, &disk_image[block_number*512], 512);
     return 0;
 }
 
 int USBMSD_Ram::disk_status() { return _status; }
 int USBMSD_Ram::disk_sync() { return 0; }
-int USBMSD_Ram::disk_sectors() { return 32; }
-int USBMSD_Ram::disk_size() { return 32*512;}
+uint64_t USBMSD_Ram::disk_sectors() { return 32; }
+uint64_t USBMSD_Ram::disk_size() { return 32*512;}