aboutsummaryrefslogtreecommitdiffstats
path: root/demos/TIVA/RT-TM4C1294-LAUNCHPAD-LWIP/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/TIVA/RT-TM4C1294-LAUNCHPAD-LWIP/main.c')
-rw-r--r--demos/TIVA/RT-TM4C1294-LAUNCHPAD-LWIP/main.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/demos/TIVA/RT-TM4C1294-LAUNCHPAD-LWIP/main.c b/demos/TIVA/RT-TM4C1294-LAUNCHPAD-LWIP/main.c
index 83523b1..0f88419 100644
--- a/demos/TIVA/RT-TM4C1294-LAUNCHPAD-LWIP/main.c
+++ b/demos/TIVA/RT-TM4C1294-LAUNCHPAD-LWIP/main.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2014..2016 Marco Veeneman
+ Copyright (C) 2014..2017 Marco Veeneman
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -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);