spi_flash: remove back-compatible with caller function of S3Beta ROM

pull/9239/head
jiangguangming 2022-06-14 11:23:21 +08:00
rodzic 2b001daa78
commit 7706cc8daf
1 zmienionych plików z 5 dodań i 10 usunięć

Wyświetl plik

@ -135,16 +135,11 @@ esp_err_t spi_flash_hal_common_command(spi_flash_host_inst_t *host, spi_flash_tr
esp_flash_io_mode_t io_mode = ((spi_flash_hal_context_t*)host)->base_io_mode;
uint16_t command;
uint8_t dummy_bitlen;
if (trans->reserved != 0) {
// Back-compatible with caller functions of ESP32-S3 ROM
command = (uint8_t)trans->reserved;
dummy_bitlen = 0;
} else {
command = trans->command;
dummy_bitlen = trans->dummy_bitlen;
if ((trans->flags & SPI_FLASH_TRANS_FLAG_IGNORE_BASEIO) != 0) {
io_mode = trans->io_mode;
}
command = trans->command;
dummy_bitlen = trans->dummy_bitlen;
if ((trans->flags & SPI_FLASH_TRANS_FLAG_IGNORE_BASEIO) != 0) {
io_mode = trans->io_mode;
}
host->driver->configure_host_io_mode(host, command, trans->address_bitlen, dummy_bitlen, io_mode);