summaryrefslogtreecommitdiff
path: root/ports/esp32/machine_hw_spi.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-07-25 11:10:58 +1000
committerDamien George <damien@micropython.org>2023-07-25 11:13:25 +1000
commit162dd022b188b3e26738bb692417480a0c5546c4 (patch)
tree6dec53c294e9b17d7f32ee85c02288e136452019 /ports/esp32/machine_hw_spi.c
parent862944a71f6a7bce7e6c9d749d63cf539a3bc3d7 (diff)
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 <damien@micropython.org>
Diffstat (limited to 'ports/esp32/machine_hw_spi.c')
-rw-r--r--ports/esp32/machine_hw_spi.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/ports/esp32/machine_hw_spi.c b/ports/esp32/machine_hw_spi.c
index dedf7fc1e..b00b5881a 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