Skip to content

Commit 7cb8951

Browse files
Raffael Rostagnokartben
authored andcommitted
drivers: spi: esp32h2: Add support
Add GSPI support to ESP32-H2. Signed-off-by: Raffael Rostagno <[email protected]>
1 parent 7201c1f commit 7cb8951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi_esp32_spim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ static int IRAM_ATTR spi_esp32_transfer(const struct device *dev)
163163

164164
/* clean up and prepare SPI hal */
165165
for (size_t i = 0; i < ARRAY_SIZE(hal->hw->data_buf); ++i) {
166-
#ifdef CONFIG_SOC_SERIES_ESP32C6
166+
#if defined(CONFIG_SOC_SERIES_ESP32C6) || defined(CONFIG_SOC_SERIES_ESP32H2)
167167
hal->hw->data_buf[i].val = 0;
168168
#else
169169
hal->hw->data_buf[i] = 0;

0 commit comments

Comments
 (0)