Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HttpServer_snapshot_mbed-os LWIPBP3595Interface_STA_for_mbed-os RomRamBlockDevice mbed-rpc
Fork of GR-Boards_WebCamera by
Diff: RomRamFileSystem.h
- 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;
}
