This commit is contained in:
parent
f27971ecb6
commit
629ffc55ed
1 changed files with 5 additions and 0 deletions
|
|
@ -1115,6 +1115,11 @@ void spiTransaction(spi_t * spi, uint32_t clockDiv, uint8_t dataMode, uint8_t bi
|
||||||
spi->dev->ctrl.wr_bit_order = 1;
|
spi->dev->ctrl.wr_bit_order = 1;
|
||||||
spi->dev->ctrl.rd_bit_order = 1;
|
spi->dev->ctrl.rd_bit_order = 1;
|
||||||
}
|
}
|
||||||
|
#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3
|
||||||
|
// Sync new config with hardware, fixes https://github.com/espressif/arduino-esp32/issues/9221
|
||||||
|
spi->dev->cmd.update = 1;
|
||||||
|
while (spi->dev->cmd.update);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void spiSimpleTransaction(spi_t * spi)
|
void spiSimpleTransaction(spi_t * spi)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue