|
ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
|
Per-variant default sizing: pick sane PC_* defaults for the target board. More...
Go to the source code of this file.
Per-variant default sizing: pick sane PC_* defaults for the target board.
The library's sizing defaults used to be a single flat set tuned to fit the smallest classic-ESP32 DRAM ceiling, so a board with far more RAM/flash silently inherited the same cramped numbers. This selector instead layers per-variant default files:
Every default is set behind an #ifndef, so precedence is "first definition wins": your -D / build_opt.h override > PSRAM profile > flash profile > chip profile (chip files pull in classic_defaults.h last as the universal floor). Nothing here forces a value you set yourself.
Chip is auto-detected from the SoC target macro. PSRAM/flash size can't be read reliably from the Arduino core, so set them for your board (they default to "none / smallest"):
ESP-IDF builds auto-fill both from the sdkconfig below.
Definition in file board_profile.h.