Webserver only w/o any other functions, single thread. Running on STM32F013+W5500
Dependencies: NTPClient W5500Interface Watchdog device_configuration eeprom_flash mbed-rpc-nucleo mbed-rtos mbed
Fork of F103-Serial-to-Ethernet by
Revision 47:d92d2c5b8073, committed 2016-08-19
- Comitter:
- olympux
- Date:
- Fri Aug 19 20:17:00 2016 +0000
- Parent:
- 46:971bdaa3507c
- Commit message:
- forked to create a new repo for webserver on F103+W5500. No other functions
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 971bdaa3507c -r d92d2c5b8073 main.cpp --- a/main.cpp Sun Aug 14 11:06:53 2016 +0000 +++ b/main.cpp Fri Aug 19 20:17:00 2016 +0000 @@ -110,6 +110,9 @@ wdt.Service(); } +/* + * HTTP server + */ HTTPServer create_simple_server() { HTTPServer srv; @@ -135,7 +138,7 @@ Thread::wait(500); // turn on delay /* - * Configure + * Configure hardware */ pc.baud(115200); DBG("Starting..."); @@ -169,7 +172,7 @@ /* - * UI threads + * Threads */ Thread t0(wdt_reset_thread); @@ -177,8 +180,8 @@ RPCType::instance().register_types(); /* - * Ethernet - */ + * Ethernet + */ ret = ethernet_init(); if (ret) { ERR("Ethernet initialisation failed. App halted."); @@ -187,6 +190,9 @@ Thread::wait(2000); // TCP/UDP stack delay + /* + * HTTP server + */ // create rpc http server HTTPServer srv = create_interactive_server();