LPC1768 DOESN'T freeze while processing this program, even when fopen() is called after EthernetInterface.connect() (with MBED OS 2) see also https://os.mbed.com/users/aktk/code/eth-filesystem-sample/

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of eth-filesystem-sample by Akifumi Takahashi

Files at this revision

API Documentation at this revision

Comitter:
aktk
Date:
Thu Mar 22 21:06:00 2018 +0000
Parent:
0:a1a5934e82aa
Commit message:
mbed os 2 ver.

Changed in this revision

EthernetInterface.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show diff for this revision Revisions of this file
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r a1a5934e82aa -r 4de86c361e68 EthernetInterface.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/EthernetInterface.lib	Thu Mar 22 21:06:00 2018 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/mbed_official/code/EthernetInterface/#183490eb1b4a
diff -r a1a5934e82aa -r 4de86c361e68 main.cpp
--- a/main.cpp	Thu Mar 22 20:18:38 2018 +0000
+++ b/main.cpp	Thu Mar 22 21:06:00 2018 +0000
@@ -10,10 +10,11 @@
     func();
     net = new EthernetInterface();
     func();
+    net->init();
     if(net->connect()) {
         printf("Error!@EthernetInterface::connect()\r\n");
     } else {
-        printf("IP Address is %s\r\n", net->get_ip_address());
+        printf("IP Address is %s\r\n", net->getIPAddress());
     }
     func();
 }
diff -r a1a5934e82aa -r 4de86c361e68 mbed-os.lib
--- a/mbed-os.lib	Thu Mar 22 20:18:38 2018 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://github.com/ARMmbed/mbed-os/#16bac101a6b7b4724023dcf86ece1548e3a23cbf
diff -r a1a5934e82aa -r 4de86c361e68 mbed-rtos.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-rtos.lib	Thu Mar 22 21:06:00 2018 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/mbed_official/code/mbed-rtos/#5713cbbdb706
diff -r a1a5934e82aa -r 4de86c361e68 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Mar 22 21:06:00 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/994bdf8177cb
\ No newline at end of file