From c7e0f02f3bd375b0923312f7dd9e65f5d2f3a982 Mon Sep 17 00:00:00 2001 From: "Michael.B" Date: Sun, 12 Apr 2026 03:35:32 +0800 Subject: [PATCH] fix(spi): restore soc/spi_periph.h in hal/spi_hal.h for backward compatibility Commit 64704886b71 (refactor(driver_spi): remove some SPI_LL_xxx SOC_xxx macros) removed #include "soc/spi_periph.h" from hal/spi_hal.h. Out-of-tree code that included hal/spi_hal.h and used spi_periph_signal then failed with the symbol undeclared, because that header had been the transitive source of the declaration. Partially reverts it. --- components/esp_hal_gpspi/include/hal/spi_hal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp_hal_gpspi/include/hal/spi_hal.h b/components/esp_hal_gpspi/include/hal/spi_hal.h index 2af6dafa2b..a6f457e7f3 100644 --- a/components/esp_hal_gpspi/include/hal/spi_hal.h +++ b/components/esp_hal_gpspi/include/hal/spi_hal.h @@ -27,6 +27,7 @@ #pragma once #include "esp_err.h" #include "soc/soc_caps.h" +#include "soc/spi_periph.h" #include "hal/spi_types.h" #if SOC_GPSPI_SUPPORTED #include "hal/spi_ll.h"