Skip to content

Commit 6304aaf

Browse files
authored
fix(spi): Update sck for C6,H2,C2 (#9335)
1 parent a6d4252 commit 6304aaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/esp32/esp32-hal-spi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ void spiTransaction(spi_t * spi, uint32_t clockDiv, uint8_t dataMode, uint8_t bi
11151115
spi->dev->ctrl.wr_bit_order = 1;
11161116
spi->dev->ctrl.rd_bit_order = 1;
11171117
}
1118-
#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3
1118+
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C2 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32H2
11191119
// Sync new config with hardware, fixes https://github.com/espressif/arduino-esp32/issues/9221
11201120
spi->dev->cmd.update = 1;
11211121
while (spi->dev->cmd.update);

0 commit comments

Comments
 (0)