From f5219a2d9a608ece45d999de0e4f229f3d4d467c Mon Sep 17 00:00:00 2001 From: 0ut4t1m3 Date: Mon, 20 Jan 2025 18:24:40 +0930 Subject: [PATCH] Update to correctly handle SPI for C6 --- micropy_updates/esp32/machine_hw_spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/micropy_updates/esp32/machine_hw_spi.c b/micropy_updates/esp32/machine_hw_spi.c index 5726e1c6..3839ac09 100644 --- a/micropy_updates/esp32/machine_hw_spi.c +++ b/micropy_updates/esp32/machine_hw_spi.c @@ -563,7 +563,7 @@ void mp_machine_hw_spi_bus_initilize(mp_machine_hw_spi_bus_obj_t *bus) esp_err_t ret; -#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C3 +#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6 ret = spi_bus_initialize((spi_host_device_t)bus->host, &buscfg, SPI_DMA_CH_AUTO); #else if (bus->host == SPI2_HOST) { @@ -730,4 +730,4 @@ MP_DEFINE_CONST_OBJ_TYPE( MP_QSTR_SPI, MP_TYPE_FLAG_NONE, locals_dict, &machine_spi_locals_dict -); \ No newline at end of file +);