Skip to content

Commit babbd84

Browse files
authored
Merge pull request #264 from 0ut4t1m3/main
Update to correctly handle SPI for C6
2 parents 36c0759 + f5219a2 commit babbd84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

micropy_updates/esp32/machine_hw_spi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ void mp_machine_hw_spi_bus_initilize(mp_machine_hw_spi_bus_obj_t *bus)
563563

564564
esp_err_t ret;
565565

566-
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C3
566+
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6
567567
ret = spi_bus_initialize((spi_host_device_t)bus->host, &buscfg, SPI_DMA_CH_AUTO);
568568
#else
569569
if (bus->host == SPI2_HOST) {
@@ -730,4 +730,4 @@ MP_DEFINE_CONST_OBJ_TYPE(
730730
MP_QSTR_SPI,
731731
MP_TYPE_FLAG_NONE,
732732
locals_dict, &machine_spi_locals_dict
733-
);
733+
);

0 commit comments

Comments
 (0)