From 162dd022b188b3e26738bb692417480a0c5546c4 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 25 Jul 2023 11:10:58 +1000 Subject: [PATCH] esp32/machine_hw_spi: Remove SPI host renaming for C3 and S3 variants. On ESP32C3 it's not doing anything. On ESP32S3 the original code prevented prevented machine.SPI(1) from working. Signed-off-by: Damien George --- ports/esp32/machine_hw_spi.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ports/esp32/machine_hw_spi.c b/ports/esp32/machine_hw_spi.c index dedf7fc1ee..b00b5881a3 100644 --- a/ports/esp32/machine_hw_spi.c +++ b/ports/esp32/machine_hw_spi.c @@ -73,13 +73,6 @@ #define MP_HW_SPI_MAX_XFER_BYTES (4092) #define MP_HW_SPI_MAX_XFER_BITS (MP_HW_SPI_MAX_XFER_BYTES * 8) // Has to be an even multiple of 8 -#if CONFIG_IDF_TARGET_ESP32C3 -#define SPI2_HOST SPI2_HOST -#elif CONFIG_IDF_TARGET_ESP32S3 -#define SPI2_HOST SPI3_HOST -#define FSPI_HOST SPI2_HOST -#endif - typedef struct _machine_hw_spi_default_pins_t { int8_t sck; int8_t mosi; @@ -218,9 +211,6 @@ STATIC void machine_hw_spi_init_internal( } if (self->host != SPI2_HOST - #ifdef FSPI_HOST - && self->host != FSPI_HOST - #endif #if SOC_SPI_PERIPH_NUM > 2 && self->host != SPI3_HOST #endif