for OV5642

Dependencies:   EthernetInterface FATFileSystem GR-PEACH_video GraphicsFramework HttpServer_snapshot R_BSP mbed-rpc mbed-rtos mbed

Revision:
8:3711d702305e
Parent:
0:c5448e500c90
--- a/RomRamFileSystem.h	Thu Dec 03 08:10:53 2015 +0000
+++ b/RomRamFileSystem.h	Tue Dec 15 08:11:36 2015 +0000
@@ -56,7 +56,7 @@
     }
 
     // read a sector in to the buffer, return 0 if ok
-    virtual int disk_read(uint8_t *buffer, uint64_t sector, uint8_t count) {
+    virtual int disk_read(uint8_t *buffer, uint32_t sector, uint32_t count) {
         for (uint64_t sec_no = sector; sec_no < (sector + count); sec_no++) {
             if (sectors[sec_no] == NULL) {
                 // nothing allocated means sector is empty
@@ -70,7 +70,7 @@
     }
 
     // write a sector from the buffer, return 0 if ok
-    virtual int disk_write(const uint8_t *buffer, uint64_t sector, uint8_t count) {
+    virtual int disk_write(const uint8_t *buffer, uint32_t sector, uint32_t count) {
         for (uint64_t sec_no = sector; sec_no < (sector + count); sec_no++) {
             bool all_zero = true;
             for (int i = 0; i < SECTOR_SIZE; i++) {
@@ -110,7 +110,7 @@
     }
 
     // return the number of sectors
-    virtual uint64_t disk_sectors() {
+    virtual uint32_t disk_sectors() {
         return NUM_OF_SECTORS;
     }