From d8ce25a57dd6570924018722f76ec6687720f88a Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 15 Oct 2017 12:22:40 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10827 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- .../RT-STM32-LWIP-FATFS-USB/cfg/lwipopts.h | 12 ++ ...t ELF file)(OpenOCD, Flash and Run).launch | 104 +++++++++--------- os/various/lwip_bindings/static_lwipopts.h | 2 +- 3 files changed, 65 insertions(+), 53 deletions(-) diff --git a/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/lwipopts.h b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/lwipopts.h index e23a1f6f0..901683775 100644 --- a/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/lwipopts.h +++ b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/lwipopts.h @@ -36,7 +36,19 @@ #include "static_lwipopts.h" /* Optional, application-specific settings.*/ +#if !defined(TCPIP_MBOX_SIZE) #define TCPIP_MBOX_SIZE MEMP_NUM_PBUF +#endif +#if !defined(TCPIP_THREAD_STACKSIZE) #define TCPIP_THREAD_STACKSIZE 1024 +#endif + +/* Use ChibiOS specific priorities. */ +#if !defined(TCPIP_THREAD_PRIO) +#define TCPIP_THREAD_PRIO (LOWPRIO + 1) +#endif +#if !defined(LWIP_THREAD_PRIORITY) +#define LWIP_THREAD_PRIORITY (LOWPRIO) +#endif #endif /* LWIP_HDR_LWIPOPTS_H__ */ diff --git a/demos/STM32/RT-STM32-LWIP-FATFS-USB/debug/RT-STM32-LWIP-FATFS-USB (Select ELF file)(OpenOCD, Flash and Run).launch b/demos/STM32/RT-STM32-LWIP-FATFS-USB/debug/RT-STM32-LWIP-FATFS-USB (Select ELF file)(OpenOCD, Flash and Run).launch index 85e1e2c83..631cd8b2b 100644 --- a/demos/STM32/RT-STM32-LWIP-FATFS-USB/debug/RT-STM32-LWIP-FATFS-USB (Select ELF file)(OpenOCD, Flash and Run).launch +++ b/demos/STM32/RT-STM32-LWIP-FATFS-USB/debug/RT-STM32-LWIP-FATFS-USB (Select ELF file)(OpenOCD, Flash and Run).launch @@ -1,52 +1,52 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/os/various/lwip_bindings/static_lwipopts.h b/os/various/lwip_bindings/static_lwipopts.h index 3f3e9b3da..a59d4b41a 100644 --- a/os/various/lwip_bindings/static_lwipopts.h +++ b/os/various/lwip_bindings/static_lwipopts.h @@ -31,7 +31,7 @@ #define LWIP_TCPIP_CORE_LOCKING 1 #define LWIP_TCPIP_CORE_LOCKING_INPUT 0 -#define LWIP_COMPAT_MUTEX_ALLOWED +#define LWIP_COMPAT_MUTEX_ALLOWED 1 #define SYS_LIGHTWEIGHT_PROT 0