Home
last modified time | relevance | path

Searched refs:chip_drv (Results 1 – 6 of 6) sorted by relevance

/hal_espressif-3.4.0/components/spi_flash/
Dspi_flash_chip_mxic_opi.c62 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->idle_timeout); in spi_flash_chip_mxic_opi_set_write_protect()
74 err = chip->chip_drv->get_chip_write_protect(chip, &wp_read); in spi_flash_chip_mxic_opi_set_write_protect()
152 err = chip->chip_drv->read_reg(chip, SPI_FLASH_REG_STATUS, &status); in spi_flash_chip_mxic_opi_get_write_protect()
165 err = chip->chip_drv->set_chip_write_protect(chip, false); in spi_flash_chip_mxic_opi_erase_chip()
167 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->idle_timeout); in spi_flash_chip_mxic_opi_erase_chip()
178 err = chip->chip_drv->wait_idle(chip, ESP_FLASH_CHIP_GENERIC_NO_TIMEOUT); in spi_flash_chip_mxic_opi_erase_chip()
180 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->chip_erase_timeout); in spi_flash_chip_mxic_opi_erase_chip()
185 chip->chip_drv->set_chip_write_protect(chip, true); in spi_flash_chip_mxic_opi_erase_chip()
194 esp_err_t err = chip->chip_drv->set_chip_write_protect(chip, false); in spi_flash_chip_mxic_opi_erase_sector()
196 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->idle_timeout); in spi_flash_chip_mxic_opi_erase_sector()
[all …]
Dspi_flash_chip_generic.c103 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->idle_timeout); in spi_flash_chip_generic_reset()
127 err = chip->chip_drv->set_chip_write_protect(chip, false); in spi_flash_chip_generic_erase_chip()
129 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->idle_timeout); in spi_flash_chip_generic_erase_chip()
136 err = chip->chip_drv->wait_idle(chip, ESP_FLASH_CHIP_GENERIC_NO_TIMEOUT); in spi_flash_chip_generic_erase_chip()
138 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->chip_erase_timeout); in spi_flash_chip_generic_erase_chip()
143 err = chip->chip_drv->set_chip_write_protect(chip, true); in spi_flash_chip_generic_erase_chip()
151 esp_err_t err = chip->chip_drv->set_chip_write_protect(chip, false); in spi_flash_chip_generic_erase_sector()
153 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->idle_timeout); in spi_flash_chip_generic_erase_sector()
160 err = chip->chip_drv->wait_idle(chip, ESP_FLASH_CHIP_GENERIC_NO_TIMEOUT); in spi_flash_chip_generic_erase_sector()
162 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->sector_erase_timeout); in spi_flash_chip_generic_erase_sector()
[all …]
Desp_flash_api.c191 if (!chip->chip_drv) return false; in esp_flash_chip_driver_initialized()
236 if (chip->chip_drv->get_chip_caps == NULL) { in esp_flash_init()
240 …if (((chip->chip_drv->get_chip_caps(chip) & SPI_FLASH_CHIP_CAP_32MB_SUPPORT) == 0) && (size > (16 … in esp_flash_init()
254 err = chip->chip_drv->set_io_mode(chip); in esp_flash_init()
314 if (chip->chip_drv->get_chip_caps == NULL) { in esp_flash_init_main()
318 …if (((chip->chip_drv->get_chip_caps(chip) & SPI_FLASH_CHIP_CAP_32MB_SUPPORT) == 0) && (size > (16 … in esp_flash_init_main()
332 err = chip->chip_drv->set_io_mode(chip); in esp_flash_init_main()
352 if (installed && chip->chip_drv->read_id) { in read_id_core()
353 read_id_func = (void*)chip->chip_drv->read_id; in read_id_core()
402 err = chip->chip_drv->read_unique_id(chip, out_uid); in read_unique_id()
[all …]
Dspi_flash_chip_winbond.c48 const uint32_t page_size = chip->chip_drv->page_size; in spi_flash_chip_winbond_read()
57 err = chip->chip_drv->config_host_io_mode(chip, config_io_flags); in spi_flash_chip_winbond_read()
85 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->idle_timeout); in spi_flash_chip_winbond_page_program()
94 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->page_program_timeout); in spi_flash_chip_winbond_page_program()
101 esp_err_t err = chip->chip_drv->set_chip_write_protect(chip, false); in spi_flash_chip_winbond_erase_sector()
103 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->idle_timeout); in spi_flash_chip_winbond_erase_sector()
113 … err = chip->host->driver->flush_cache(chip->host, start_address, chip->chip_drv->sector_size); in spi_flash_chip_winbond_erase_sector()
118 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->sector_erase_timeout); in spi_flash_chip_winbond_erase_sector()
125 esp_err_t err = chip->chip_drv->set_chip_write_protect(chip, false); in spi_flash_chip_winbond_erase_block()
127 err = chip->chip_drv->wait_idle(chip, chip->chip_drv->timeout->idle_timeout); in spi_flash_chip_winbond_erase_block()
[all …]
DKconfig210 given by ``chip_drv`` member of the chip struct. This adds support for variant
218 given by ``chip_drv`` member of the chip struct. This adds support for variant
226 directly given by ``chip_drv`` member of the chip struct. If you are using Wrover
239 given by ``chip_drv`` member of the chip struct. This adds support for variant
249 given by ``chip_drv`` member of the chip struct. This adds support for variant
259 given by ``chip_drv`` member of the chip struct. This adds support for variant
268 given by ``chip_drv`` member of the chip struct. This adds support for variant
/hal_espressif-3.4.0/components/spi_flash/include/
Desp_flash.h97 …const spi_flash_chip_t *chip_drv; ///< Pointer to chip-model-specific "adapter" structure. If NU… member