nuttx/arch/xtensa
Zhaoqi Xu 081e55461e arch/xtensa/esp32s3: Make SPI CS, MOSI and MISO pins signed.
The CS, MOSI and MISO pins can be set to -1 in Kconfig when the board
does not use them, and esp32s3_spi_init() skips a pin when it is
negative. The pins are stored as uint8_t in esp32s3_spi_config_s, so
-1 becomes 255, every "pin >= 0" check is always true, and 255 is
passed to esp_gpiowrite() and esp_configgpio(), which trips their
DEBUGASSERT.

Store these three pins as int8_t so -1 is kept and the existing checks
work.

Fixes apache/nuttx#20186

Assisted-by: Grok Bot
Signed-off-by: Zhaoqi Xu <lzy00419@outlook.com>
2026-10-09 18:29:04 +08:00
..
include xtensa/esp32s3: Implement per-process address environments. 2026-09-26 11:13:57 -03:00
src arch/xtensa/esp32s3: Make SPI CS, MOSI and MISO pins signed. 2026-10-09 18:29:04 +08:00
CMakeLists.txt cmake:implement CMake build of xtensa arch 2024-11-02 18:08:38 +08:00
Kconfig xtensa/esp32s3: Wire the chip into the kernel build. 2026-09-26 11:13:57 -03:00