The GPIO manager must not expose every pin supported by an ESP SoC. A pin is available to a user only when the selected complete board profile lists it and declares the capabilities that the requested mode needs.
The current build selects BOARD_ESP32CAM_AITHINKER and defines SD_USE_ONE_LINE_MODE.
The user GPIO whitelist is deliberately empty. Although GPIO13 (SD DAT3) is not an active data signal in 1-bit SD mode, main.cpp explicitly configures a pull-up on GPIO_SDCARD_D3. It therefore remains part of the SD-card electrical configuration and is not exposed as a safe general-purpose pin until that interaction is validated on hardware.
GPIO0, GPIO1, GPIO3, GPIO4, GPIO12 and all camera/SD/flash/memory pins are not general-purpose user pins. In particular:
A new board must have its own profile. Before adding any user pin, audit the complete module and carrier-board schematics, including camera wiring, SD-card wiring, flash/PSRAM package and module variant, USB/JTAG, UART, strapping pins, status LEDs, and any external peripherals.
ESP32-S3 SoC GPIO availability alone is not sufficient. For example, GPIO0, GPIO3, GPIO45 and GPIO46 are strapping pins; GPIO19/GPIO20 may be used by USB Serial/JTAG; GPIO26-GPIO32 are commonly used by flash/PSRAM, and GPIO33- GPIO37 may be used by octal flash/PSRAM depending on the module. The exact reserved set depends on the selected ESP32-S3 module and board.
Until a specific ESP32-S3 board has been audited, its profile must expose no user GPIOs. Do not copy the AI-Thinker pin list or create a generic ESP32-S3 allow-list.
The authenticated existing GET /GPIO endpoint also supports
GET /GPIO?capabilities=1. This read-only request returns JSON with the
active profile name, the maximum channel count, and each whitelisted pin with
its capability bitmask:
{
"profile": "board profile name",
"maxChannels": 4,
"pins": [
{ "gpio": 25, "capabilities": 19 }
]
}
Capability bits are defined in board_gpio_profile.h: input=1, output=2,
pull-up=4, pull-down=8, interrupt=16, PWM=32. The firmware remains the
authoritative validator; hiding or disabling a browser control is not a
security boundary.
The current configuration page still contains legacy rows only for GPIO 0, 1, 3, 4, 12 and 13. It loads the capability endpoint and hides every row not whitelisted, but it cannot yet display arbitrary pin numbers. A board profile must not whitelist a pin that the current UI cannot represent. A follow-up UI/config-schema change is required before arbitrary ESP32-S3 pin numbers can be configured from the browser.