From 151e9e60ec4af4a599ac98ea27c8642eed1e75e0 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 4 Jul 2015 09:24:09 +0000 Subject: lwip-related improvements. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8066 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/main.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/main.c') diff --git a/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/main.c b/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/main.c index fd5b942d1..4e114a51a 100644 --- a/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/main.c +++ b/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/main.c @@ -618,9 +618,11 @@ int main(void) { * and performs the board-specific initializations. * - Kernel initialization, the main() function becomes a thread and the * RTOS is active. + * - lwIP subsystem initialization using the default configuration. */ halInit(); chSysInit(); + lwipInit(NULL); /* * Initializes a serial-over-USB CDC driver. @@ -660,12 +662,6 @@ int main(void) { */ chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL); - /* - * Creates the LWIP threads (it changes priority internally). - */ - chThdCreateStatic(wa_lwip_thread, LWIP_THREAD_STACK_SIZE, NORMALPRIO + 2, - lwip_thread, NULL); - /* * Creates the HTTP thread (it changes priority internally). */ -- cgit v1.2.3