kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'feature/remove_back_compatible_with_s3beta_rom' into 'master'
spi_flash: remove back-compatible with caller function of S3Beta ROM See merge request espressif/esp-idf!18492pull/9179/head
commit
4e33239474
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue