Simple HTTP server example with WIZ550io, W5500 (WIZnet chipset) .access the mbed via any browser, mbed echo back http request header.
Dependencies: W5500Interface mbed
Fork of HTTPServer_echoback_WIZ550io by
Revision 18:bed64c7e5a72, committed 2014-07-21
- Comitter:
- Bongjun
- Date:
- Mon Jul 21 07:45:30 2014 +0000
- Parent:
- 17:c42419afb2f8
- Child:
- 19:59a668f08555
- Commit message:
- add platform TARGET_NUCLEO_F030R8
Changed in this revision
EthernetInterfaceW5500.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 |
--- a/EthernetInterfaceW5500.lib Mon Jul 21 05:18:06 2014 +0000 +++ b/EthernetInterfaceW5500.lib Mon Jul 21 07:45:30 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/EthernetInterfaceW5500-makers/code/EthernetInterfaceW5500/#d130abe9d4a8 +http://mbed.org/teams/EthernetInterfaceW5500-makers/code/EthernetInterfaceW5500/#6f469f76a76a
--- a/main.cpp Mon Jul 21 05:18:06 2014 +0000 +++ b/main.cpp Mon Jul 21 07:45:30 2014 +0000 @@ -48,6 +48,12 @@ spi.format(8,0); // 8bit, mode 0 spi.frequency(7000000); // 7MHz wait(1); // 1 second for stable state +#elif defined (TARGET_NUCLEO_F030R8) + SPI spi(SPI_MOSI, SPI_MISO, SPI_SCK); // mosi, miso, sclk + EthernetInterfaceW5500 eth(&spi, PB_6, PA_9);//, nRESET(p9); // reset pin is dummy, don't affect any pin of WIZ550io + spi.format(8,0); // 8bit, mode 0 + spi.frequency(7000000); // 7MHz + wait(1); // 1 second for stable state #endif