diff options
author | marcoveeneman <marco-veeneman@hotmail.com> | 2018-03-15 08:02:32 +0100 |
---|---|---|
committer | marcoveeneman <marco-veeneman@hotmail.com> | 2018-03-15 08:02:32 +0100 |
commit | 7a9ddb8ada6195cf7f869502b9cc197766027ad2 (patch) | |
tree | 99db2ccdba598f11d15ff56e461510e96b8cd112 /demos/TIVA/RT-TM4C1294-LAUNCHPAD-LWIP/main.c | |
parent | 2f799372b1b74a0b29039ee3dc853881ad05414e (diff) | |
download | ChibiOS-Contrib-7a9ddb8ada6195cf7f869502b9cc197766027ad2.tar.gz ChibiOS-Contrib-7a9ddb8ada6195cf7f869502b9cc197766027ad2.tar.bz2 ChibiOS-Contrib-7a9ddb8ada6195cf7f869502b9cc197766027ad2.zip |
Removed custom web server and use LwIP httpd in demo
Diffstat (limited to 'demos/TIVA/RT-TM4C1294-LAUNCHPAD-LWIP/main.c')
-rw-r--r-- | demos/TIVA/RT-TM4C1294-LAUNCHPAD-LWIP/main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/demos/TIVA/RT-TM4C1294-LAUNCHPAD-LWIP/main.c b/demos/TIVA/RT-TM4C1294-LAUNCHPAD-LWIP/main.c index ac9c3f4..0f88419 100644 --- a/demos/TIVA/RT-TM4C1294-LAUNCHPAD-LWIP/main.c +++ b/demos/TIVA/RT-TM4C1294-LAUNCHPAD-LWIP/main.c @@ -17,7 +17,7 @@ #include "ch.h" #include "hal.h" #include "lwipthread.h" -#include "web/web.h" +#include "lwip/apps/httpd.h" /* * Application entry point. @@ -43,10 +43,9 @@ int main(void) sdStart(&SD1, NULL); /* - * Creates the HTTP thread (it changes priority internally). + * Creates the LwIP HTTP server. */ - chThdCreateStatic(wa_http_server, sizeof(wa_http_server), NORMALPRIO + 1, - http_server, NULL); + httpd_init(); while (1) { osalThreadSleepMilliseconds(500); |