Skip to content

Commit 959e910

Browse files
committed
stm32/lwip_inc: Increase lwIP memory on N6.
Signed-off-by: Damien George <damien@micropython.org>
1 parent eaed251 commit 959e910

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ports/stm32/lwip_inc/lwipopts.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010

1111
#define LWIP_RAND() rng_get()
1212

13+
// Increase memory for lwIP to get better performance.
14+
#if defined(STM32N6)
15+
#define MEM_SIZE (16 * 1024)
16+
#define TCP_MSS (1460)
17+
#define TCP_WND (8 * TCP_MSS)
18+
#define TCP_SND_BUF (8 * TCP_MSS)
19+
#define MEMP_NUM_TCP_SEG (32)
20+
#endif
21+
1322
// Include common lwIP configuration.
1423
#include "extmod/lwip-include/lwipopts_common.h"
1524

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy