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: EthernetInterface FATFileSystem GR-PEACH_video GraphicsFramework HttpServer_snapshot R_BSP mbed-rpc mbed-rtos mbed
Revision 8:3711d702305e, committed 2015-12-15
- Comitter:
- 1050186
- Date:
- Tue Dec 15 08:11:36 2015 +0000
- Parent:
- 7:c45ecff1b44d
- Child:
- 9:2e3ccd27b4f9
- Commit message:
- Change the type of the function by updaing FATFileSystem library.
Changed in this revision
--- a/FATFileSystem.lib Thu Dec 03 08:10:53 2015 +0000 +++ b/FATFileSystem.lib Tue Dec 15 08:11:36 2015 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/teams/mbed-official/code/FATFileSystem/#a5fcdbf92056 +http://developer.mbed.org/teams/mbed-official/code/FATFileSystem/#094f84646b9f
--- 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;
}
--- a/main.cpp Thu Dec 03 08:10:53 2015 +0000
+++ b/main.cpp Tue Dec 15 08:11:36 2015 +0000
@@ -338,8 +338,8 @@
RPCFunction rpcSetI2C(SetI2CfromWeb, "SetI2CfromWeb");
printf("EthernetInterface Setting up...\r\n");
- if (eth.init() != 0) { //for DHCP Server
-// if (eth.init("192.168.0.2","255.255.255.0","192.168.0.3") != 0) { //for Static IP Address (IPAddress, NetMasks, Gateway)
+// if (eth.init() != 0) { //for DHCP Server
+ if (eth.init("192.168.0.2","255.255.255.0","192.168.0.3") != 0) { //for Static IP Address (IPAddress, NetMasks, Gateway)
printf("EthernetInterface Initialize Error \r\n");
return -1;
}
--- a/mbed-rtos.lib Thu Dec 03 08:10:53 2015 +0000 +++ b/mbed-rtos.lib Tue Dec 15 08:11:36 2015 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/mbed_official/code/mbed-rtos/#6c35e082773a +http://developer.mbed.org/users/mbed_official/code/mbed-rtos/#c825593ece39