ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
4mbpsram.h
Go to the documentation of this file.
1// Copyright (C) 2026 Douglas Quigg (dstroy0) <dquigg123@gmail.com>
2// SPDX-License-Identifier: AGPL-3.0-or-later
3
4/**
5 * @file 4mbpsram.h
6 * @brief 4 MB PSRAM profile - between the 2 MB and 8 MB steps.
7 *
8 * Included before the chip profile (wins for memory-bound sizes). Same PSRAM-resident caveat as
9 * 8mbpsram.h. `#ifndef`-guarded, so your -D overrides still win.
10 */
11
12#ifndef PROTOCORE_4MBPSRAM_H
13#define PROTOCORE_4MBPSRAM_H
14
15// PSRAM fitted: move the big TLS/HTTP-2/zlib pools off internal DRAM and raise concurrency.
16#ifndef PC_TLS_ARENA_IN_PSRAM
17#define PC_TLS_ARENA_IN_PSRAM 1
18#endif
19#ifndef PC_H2_POOL_IN_PSRAM
20#define PC_H2_POOL_IN_PSRAM 1
21#endif
22#ifndef PC_SSH_ZLIB_IN_PSRAM
23#define PC_SSH_ZLIB_IN_PSRAM 1
24#endif
25#ifndef MAX_TLS_CONNS
26#define MAX_TLS_CONNS 4
27#endif
28#ifndef PC_H2_MAX_STREAMS
29#define PC_H2_MAX_STREAMS 16
30#endif
31#ifndef PC_H3_MAX_STREAMS
32#define PC_H3_MAX_STREAMS 16
33#endif
34
35#endif // PROTOCORE_4MBPSRAM_H