From de0aea025bb2a7a9c8aefb846de87a61a4f34a45 Mon Sep 17 00:00:00 2001 From: zhangcaiqian Date: Tue, 26 Apr 2022 16:01:01 +0800 Subject: [PATCH 1/2] Modify the priority of main function --- APP_Framework/Applications/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/APP_Framework/Applications/Kconfig b/APP_Framework/Applications/Kconfig index 04130d0ed..7d66db54a 100644 --- a/APP_Framework/Applications/Kconfig +++ b/APP_Framework/Applications/Kconfig @@ -7,7 +7,7 @@ menu "Applications" config MAIN_KTASK_PRIORITY int default 4 if KTASK_PRIORITY_8 - default 10 if KTASK_PRIORITY_32 + default 16 if KTASK_PRIORITY_32 default 85 if KTASK_PRIORITY_256 endmenu From c4613c8866d00eae20ede4c108fad5dce2fcaf1c Mon Sep 17 00:00:00 2001 From: zhangcaiqian Date: Tue, 26 Apr 2022 16:14:13 +0800 Subject: [PATCH 2/2] Enable LWIP receive timeout, send timeout, and socket forced shutdown --- .../resources/ethernet/LwIP/arch/lwipopts.h | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Ubiquitous/XiZi/resources/ethernet/LwIP/arch/lwipopts.h b/Ubiquitous/XiZi/resources/ethernet/LwIP/arch/lwipopts.h index cdff39538..98ec316ab 100644 --- a/Ubiquitous/XiZi/resources/ethernet/LwIP/arch/lwipopts.h +++ b/Ubiquitous/XiZi/resources/ethernet/LwIP/arch/lwipopts.h @@ -204,7 +204,28 @@ The STM32F4x7 allows computing and verifying the IP, UDP, TCP and ICMP checksums /** * LWIP_SO_RCVBUF==1: Enable SO_RCVBUF processing. */ -#define LWIP_SO_RCVBUF 1 +#define LWIP_SO_RCVBUF 1 + + /** + * LWIP_SO_SNDTIMEO==1: Enable send timeout for sockets/netconns and + * SO_SNDTIMEO processing. + */ +#ifndef LWIP_SO_SNDTIMEO +#define LWIP_SO_SNDTIMEO 1 +#endif + + /** + * LWIP_SO_RCVTIMEO==1: Enable receive timeout for sockets/netconns and + * SO_RCVTIMEO processing. + */ +#ifndef LWIP_SO_RCVTIMEO +#define LWIP_SO_RCVTIMEO 1 +#endif + + /** + * LWIP_SO_LINGER==1: Enable SO_LINGER processing. + */ +#define LWIP_SO_LINGER 1 /* ---------------------------------