diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2015-07-04 09:24:09 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2015-07-04 09:24:09 +0000 |
commit | 151e9e60ec4af4a599ac98ea27c8642eed1e75e0 (patch) | |
tree | 9465d2a87eff419bcd1651c63acc8d89a5c29d14 /demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB | |
parent | ff637e456f79ba3cb90265790ac9537c297b331d (diff) | |
download | ChibiOS-151e9e60ec4af4a599ac98ea27c8642eed1e75e0.tar.gz ChibiOS-151e9e60ec4af4a599ac98ea27c8642eed1e75e0.tar.bz2 ChibiOS-151e9e60ec4af4a599ac98ea27c8642eed1e75e0.zip |
lwip-related improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8066 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB')
-rw-r--r-- | demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/main.c | 8 |
1 files changed, 2 insertions, 6 deletions
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. @@ -661,12 +663,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). */ chThdCreateStatic(wa_http_server, sizeof(wa_http_server), NORMALPRIO + 1, |