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
Revision 1:4de86c361e68, committed 2018-03-22
- Comitter:
- aktk
- Date:
- Thu Mar 22 21:06:00 2018 +0000
- Parent:
- 0:a1a5934e82aa
- Commit message:
- mbed os 2 ver.
Changed in this revision
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