Skip to content

Commit bffb300

Browse files
authored
add missing c3 define
when disable HAL lock is set
1 parent dbdad26 commit bffb300

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/esp32/esp32-hal-spi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ static spi_t _spi_bus_array[] = {
112112
{(volatile spi_dev_t *)(DR_REG_SPI1_BASE), 0},
113113
{(volatile spi_dev_t *)(DR_REG_SPI2_BASE), 1},
114114
{(volatile spi_dev_t *)(DR_REG_SPI3_BASE), 2}
115+
#elif CONFIG_IDF_TARGET_ESP32C3
116+
{(volatile spi_dev_t *)(&GPSPI2), FSPI}
115117
#else
116118
{(volatile spi_dev_t *)(DR_REG_SPI0_BASE), 0},
117119
{(volatile spi_dev_t *)(DR_REG_SPI1_BASE), 1},

0 commit comments

Comments
 (0)