Home
last modified time | relevance | path

Searched refs:esp_flash_t (Results 1 – 25 of 36) sorted by relevance

12

/hal_espressif-3.4.0/components/spi_flash/include/
Dspi_flash_chip_generic.h42 esp_err_t spi_flash_chip_generic_probe(esp_flash_t *chip, uint32_t flash_id);
51 esp_err_t spi_flash_chip_generic_reset(esp_flash_t *chip);
66 esp_err_t spi_flash_chip_generic_detect_size(esp_flash_t *chip, uint32_t *size);
78 esp_err_t spi_flash_chip_generic_erase_chip(esp_flash_t *chip);
91 esp_err_t spi_flash_chip_generic_erase_sector(esp_flash_t *chip, uint32_t start_address);
104 esp_err_t spi_flash_chip_generic_erase_block(esp_flash_t *chip, uint32_t start_address);
117 esp_err_t spi_flash_chip_generic_read(esp_flash_t *chip, void *buffer, uint32_t address, uint32_t l…
139 spi_flash_chip_generic_page_program(esp_flash_t *chip, const void *buffer, uint32_t address, uint32…
154 esp_err_t spi_flash_chip_generic_write(esp_flash_t *chip, const void *buffer, uint32_t address, uin…
167 spi_flash_chip_generic_write_encrypted(esp_flash_t *chip, const void *buffer, uint32_t address, uin…
[all …]
Dspi_flash_chip_driver.h19 struct esp_flash_t;
20 typedef struct esp_flash_t esp_flash_t; typedef
80 esp_err_t (*probe)(esp_flash_t *chip, uint32_t flash_id);
82 esp_err_t (*reset)(esp_flash_t *chip);
89 esp_err_t (*detect_size)(esp_flash_t *chip, uint32_t *size);
95 esp_err_t (*erase_chip)(esp_flash_t *chip);
103 esp_err_t (*erase_sector)(esp_flash_t *chip, uint32_t sector_address);
110 esp_err_t (*erase_block)(esp_flash_t *chip, uint32_t block_address);
116 esp_err_t (*get_chip_write_protect)(esp_flash_t *chip, bool *out_write_protected);
119 esp_err_t (*set_chip_write_protect)(esp_flash_t *chip, bool chip_write_protect);
[all …]
Desp_flash.h29 typedef struct esp_flash_t esp_flash_t; typedef
95 struct esp_flash_t { struct
125 esp_err_t esp_flash_init(esp_flash_t *chip); argument
134 bool esp_flash_chip_driver_initialized(const esp_flash_t *chip);
145 esp_err_t esp_flash_read_id(esp_flash_t *chip, uint32_t *out_id);
157 esp_err_t esp_flash_get_size(esp_flash_t *chip, uint32_t *out_size);
170 esp_err_t esp_flash_read_unique_chip_id(esp_flash_t *chip, uint64_t *out_id);
182 esp_err_t esp_flash_erase_chip(esp_flash_t *chip);
202 esp_err_t esp_flash_erase_region(esp_flash_t *chip, uint32_t start, uint32_t len);
214 esp_err_t esp_flash_get_chip_write_protect(esp_flash_t *chip, bool *write_protected);
[all …]
Desp_flash_internal.h78 esp_err_t esp_flash_init_os_functions(esp_flash_t *chip, int host_id, int *out_dev_id);
86 esp_err_t esp_flash_deinit_os_functions(esp_flash_t* chip);
105 esp_err_t esp_flash_app_enable_os_functions(esp_flash_t* chip);
114 esp_err_t esp_flash_app_disable_os_functions(esp_flash_t* chip);
Dspi_flash_chip_gd.h32 esp_err_t spi_flash_chip_gd_probe(esp_flash_t *chip, uint32_t flash_id);
33 esp_err_t spi_flash_chip_gd_set_io_mode(esp_flash_t *chip);
34 esp_err_t spi_flash_chip_gd_get_io_mode(esp_flash_t *chip, esp_flash_io_mode_t* out_io_mode);
Dspi_flash_chip_issi.h27 esp_err_t spi_flash_chip_issi_probe(esp_flash_t *chip, uint32_t flash_id);
28 esp_err_t spi_flash_chip_issi_set_io_mode(esp_flash_t *chip);
29 esp_err_t spi_flash_chip_issi_get_io_mode(esp_flash_t *chip, esp_flash_io_mode_t* out_io_mode);
Desp_flash_spi_init.h52 esp_err_t spi_bus_add_flash_device(esp_flash_t **out_chip, const esp_flash_spi_device_config_t *con…
63 esp_err_t spi_bus_remove_flash_device(esp_flash_t *chip);
Desp_partition.h117 esp_flash_t* flash_chip; /*!< SPI flash chip on which the partition resides */
420 esp_err_t esp_partition_register_external(esp_flash_t* flash_chip, size_t offset, size_t size,
/hal_espressif-3.4.0/components/spi_flash/
Dspi_flash_chip_generic.c76 esp_err_t spi_flash_chip_generic_probe(esp_flash_t *chip, uint32_t flash_id) in spi_flash_chip_generic_probe()
83 esp_err_t spi_flash_chip_generic_reset(esp_flash_t *chip) in spi_flash_chip_generic_reset()
107 esp_err_t spi_flash_chip_generic_detect_size(esp_flash_t *chip, uint32_t *size) in spi_flash_chip_generic_detect_size()
123 esp_err_t spi_flash_chip_generic_erase_chip(esp_flash_t *chip) in spi_flash_chip_generic_erase_chip()
149 esp_err_t spi_flash_chip_generic_erase_sector(esp_flash_t *chip, uint32_t start_address) in spi_flash_chip_generic_erase_sector()
173 esp_err_t spi_flash_chip_generic_erase_block(esp_flash_t *chip, uint32_t start_address) in spi_flash_chip_generic_erase_block()
197 esp_err_t spi_flash_chip_generic_read(esp_flash_t *chip, void *buffer, uint32_t address, uint32_t l… in spi_flash_chip_generic_read()
230 esp_err_t spi_flash_chip_generic_page_program(esp_flash_t *chip, const void *buffer, uint32_t addre… in spi_flash_chip_generic_page_program()
250 esp_err_t spi_flash_chip_generic_write(esp_flash_t *chip, const void *buffer, uint32_t address, uin… in spi_flash_chip_generic_write()
278 esp_err_t spi_flash_chip_generic_write_encrypted(esp_flash_t *chip, const void *buffer, uint32_t ad… in spi_flash_chip_generic_write_encrypted()
[all …]
Desp_flash_api.c88 esp_err_t esp_flash_read_chip_id(esp_flash_t* chip, uint32_t* flash_id);
91 static esp_err_t spiflash_start_default(esp_flash_t *chip);
92 static esp_err_t spiflash_end_default(esp_flash_t *chip, esp_err_t err);
93 static esp_err_t check_chip_pointer_default(esp_flash_t **inout_chip);
94 static esp_err_t flash_end_flush_cache(esp_flash_t* chip, esp_err_t err, bool bus_acquired, uint32_…
98 esp_err_t (*start)(esp_flash_t *chip);
99 esp_err_t (*end)(esp_flash_t *chip, esp_err_t err);
100 esp_err_t (*chip_check)(esp_flash_t **inout_chip);
101 …esp_err_t (*flash_end_flush_cache)(esp_flash_t* chip, esp_err_t err, bool bus_acquired, uint32_t a…
125 static esp_err_t IRAM_ATTR spiflash_start_default(esp_flash_t *chip) in spiflash_start_default()
[all …]
Dspi_flash_chip_gd.c27 extern esp_err_t spi_flash_chip_winbond_read(esp_flash_t *chip, void *buffer, uint32_t address, uin…
28 extern esp_err_t spi_flash_chip_winbond_page_program(esp_flash_t *chip, const void *buffer, uint32_…
29 extern esp_err_t spi_flash_chip_winbond_erase_sector(esp_flash_t *chip, uint32_t start_address);
30 extern esp_err_t spi_flash_chip_winbond_erase_block(esp_flash_t *chip, uint32_t start_address);
37 spi_flash_caps_t spi_flash_chip_gd_get_caps(esp_flash_t *chip) in spi_flash_chip_gd_get_caps()
62 esp_err_t spi_flash_chip_gd_probe(esp_flash_t *chip, uint32_t flash_id) in spi_flash_chip_gd_probe()
78 esp_err_t spi_flash_chip_gd_set_io_mode(esp_flash_t *chip) in spi_flash_chip_gd_set_io_mode()
95 esp_err_t spi_flash_chip_gd_get_io_mode(esp_flash_t *chip, esp_flash_io_mode_t* out_io_mode) in spi_flash_chip_gd_get_io_mode()
Dspi_flash_chip_winbond.c30 static esp_err_t spi_flash_command_winbond_program_4B(esp_flash_t *chip, const void *buffer, uint32…
31 static esp_err_t spi_flash_command_winbond_erase_sector_4B(esp_flash_t *chip, uint32_t start_addres…
32 static esp_err_t spi_flash_command_erase_block_4B(esp_flash_t *chip, uint32_t start_address);
34 esp_err_t spi_flash_chip_winbond_probe(esp_flash_t *chip, uint32_t flash_id) in spi_flash_chip_winbond_probe()
45 esp_err_t spi_flash_chip_winbond_read(esp_flash_t *chip, void *buffer, uint32_t address, uint32_t l… in spi_flash_chip_winbond_read()
81 esp_err_t spi_flash_chip_winbond_page_program(esp_flash_t *chip, const void *buffer, uint32_t addre… in spi_flash_chip_winbond_page_program()
99 esp_err_t spi_flash_chip_winbond_erase_sector(esp_flash_t *chip, uint32_t start_address) in spi_flash_chip_winbond_erase_sector()
123 esp_err_t spi_flash_chip_winbond_erase_block(esp_flash_t *chip, uint32_t start_address) in spi_flash_chip_winbond_erase_block()
147 spi_flash_caps_t spi_flash_chip_winbond_get_caps(esp_flash_t *chip) in spi_flash_chip_winbond_get_caps()
203 static esp_err_t spi_flash_command_winbond_program_4B(esp_flash_t *chip, const void *buffer, uint32… in spi_flash_command_winbond_program_4B()
[all …]
Dspi_flash_chip_mxic_opi.c33 esp_err_t spi_flash_chip_mxic_opi_probe(esp_flash_t *chip, uint32_t flash_id) in spi_flash_chip_mxic_opi_probe()
49 spi_flash_caps_t spi_flash_chip_mxic_opi_get_caps(esp_flash_t *chip) in spi_flash_chip_mxic_opi_get_caps()
58 esp_err_t spi_flash_chip_mxic_opi_set_write_protect(esp_flash_t *chip, bool write_protect) in spi_flash_chip_mxic_opi_set_write_protect()
90 esp_err_t spi_flash_chip_mxic_opi_read_id(esp_flash_t *chip, uint32_t* out_chip_id) in spi_flash_chip_mxic_opi_read_id()
125 esp_err_t spi_flash_chip_mxic_opi_read_reg(esp_flash_t *chip, spi_flash_register_t reg_id, uint32_t… in spi_flash_chip_mxic_opi_read_reg()
147 esp_err_t spi_flash_chip_mxic_opi_get_write_protect(esp_flash_t *chip, bool *out_write_protected) in spi_flash_chip_mxic_opi_get_write_protect()
161 esp_err_t spi_flash_chip_mxic_opi_erase_chip(esp_flash_t *chip) in spi_flash_chip_mxic_opi_erase_chip()
192 esp_err_t spi_flash_chip_mxic_opi_erase_sector(esp_flash_t *chip, uint32_t start_address) in spi_flash_chip_mxic_opi_erase_sector()
221 esp_err_t spi_flash_chip_mxic_opi_erase_block(esp_flash_t *chip, uint32_t start_address) in spi_flash_chip_mxic_opi_erase_block()
250 esp_err_t spi_flash_chip_mxic_opi_page_program(esp_flash_t *chip, const void *buffer, uint32_t addr… in spi_flash_chip_mxic_opi_page_program()
[all …]
Desp_flash_spi_init.c39 esp_flash_t *esp_flash_default_chip = NULL;
148 static IRAM_ATTR NOINLINE_ATTR void cs_initialize(esp_flash_t *chip, const esp_flash_spi_device_con… in cs_initialize()
185 esp_err_t spi_bus_add_flash_device(esp_flash_t **out_chip, const esp_flash_spi_device_config_t *con… in spi_bus_add_flash_device()
193 esp_flash_t *chip = NULL; in spi_bus_add_flash_device()
200 chip = (esp_flash_t*)heap_caps_malloc(sizeof(esp_flash_t), caps); in spi_bus_add_flash_device()
207 *chip = (esp_flash_t) { in spi_bus_add_flash_device()
259 esp_err_t spi_bus_remove_flash_device(esp_flash_t *chip) in spi_bus_remove_flash_device()
275 static DRAM_ATTR esp_flash_t default_chip = {
281 extern esp_err_t esp_flash_suspend_cmd_init(esp_flash_t* chip);
Dspi_flash_chip_mxic.c23 esp_err_t spi_flash_chip_mxic_probe(esp_flash_t *chip, uint32_t flash_id) in spi_flash_chip_mxic_probe()
38 esp_err_t spi_flash_chip_issi_set_io_mode(esp_flash_t *chip);
39 esp_err_t spi_flash_chip_issi_get_io_mode(esp_flash_t *chip, esp_flash_io_mode_t* out_io_mode);
48 spi_flash_caps_t spi_flash_chip_mxic_get_caps(esp_flash_t *chip) in spi_flash_chip_mxic_get_caps()
Dspi_flash_chip_issi.c22 esp_err_t spi_flash_chip_issi_probe(esp_flash_t *chip, uint32_t flash_id) in spi_flash_chip_issi_probe()
39 esp_err_t spi_flash_chip_issi_set_io_mode(esp_flash_t *chip) in spi_flash_chip_issi_set_io_mode()
49 esp_err_t spi_flash_chip_issi_get_io_mode(esp_flash_t *chip, esp_flash_io_mode_t* out_io_mode) in spi_flash_chip_issi_get_io_mode()
61 spi_flash_caps_t spi_flash_chip_issi_get_caps(esp_flash_t *chip) in spi_flash_chip_issi_get_caps()
Dspi_flash_chip_boya.c20 esp_err_t spi_flash_chip_boya_probe(esp_flash_t *chip, uint32_t flash_id) in spi_flash_chip_boya_probe()
37 spi_flash_caps_t spi_flash_chip_boya_get_caps(esp_flash_t *chip) in spi_flash_chip_boya_get_caps()
Dspi_flash_chip_th.c11 esp_err_t spi_flash_chip_th_probe(esp_flash_t *chip, uint32_t flash_id) in spi_flash_chip_th_probe()
28 spi_flash_caps_t spi_flash_chip_th_get_caps(esp_flash_t *chip) in spi_flash_chip_th_get_caps()
Dspi_flash_os_func_app.c225 esp_err_t esp_flash_init_os_functions(esp_flash_t *chip, int host_id, int* out_dev_id) in esp_flash_init_os_functions()
276 esp_err_t esp_flash_deinit_os_functions(esp_flash_t* chip) in esp_flash_deinit_os_functions()
310 esp_err_t esp_flash_app_enable_os_functions(esp_flash_t* chip) in esp_flash_app_enable_os_functions()
/hal_espressif-3.4.0/components/esp_rom/include/esp32c3/rom/
Desp_flash.h28 typedef struct esp_flash_t esp_flash_t; typedef
35 esp_flash_t *default_chip;
42 esp_err_t (*start)(esp_flash_t *chip);
43 esp_err_t (*end)(esp_flash_t *chip, esp_err_t err);
44 esp_err_t (*chip_check)(esp_flash_t **inout_chip);
/hal_espressif-3.4.0/components/esp_rom/include/esp32h2/rom/
Desp_flash.h28 typedef struct esp_flash_t esp_flash_t; typedef
35 esp_flash_t *default_chip;
42 esp_err_t (*start)(esp_flash_t *chip);
43 esp_err_t (*end)(esp_flash_t *chip, esp_err_t err);
44 esp_err_t (*chip_check)(esp_flash_t **inout_chip);
/hal_espressif-3.4.0/examples/storage/custom_flash_driver/components/custom_chip_driver/
Dspi_flash_chip_eon.c25 esp_err_t spi_flash_chip_eon_probe(esp_flash_t *chip, uint32_t flash_id) in spi_flash_chip_eon_probe()
36 static esp_err_t spi_flash_chip_eon_enter_otp_mode(esp_flash_t* chip) in spi_flash_chip_eon_enter_otp_mode()
44 static esp_err_t spi_flash_chip_eon_exit_otp_mode(esp_flash_t* chip) in spi_flash_chip_eon_exit_otp_mode()
52 esp_err_t spi_flash_chip_eon_get_io_mode(esp_flash_t *chip, esp_flash_io_mode_t* out_io_mode) in spi_flash_chip_eon_get_io_mode()
78 esp_err_t spi_flash_chip_eon_set_io_mode(esp_flash_t *chip) in spi_flash_chip_eon_set_io_mode()
106 esp_err_t spi_flash_chip_eon_suspend_cmd_conf(esp_flash_t *chip) in spi_flash_chip_eon_suspend_cmd_conf()
111 spi_flash_caps_t spi_flash_chip_eon_get_caps(esp_flash_t *chip) in spi_flash_chip_eon_get_caps()
/hal_espressif-3.4.0/components/spi_flash/test/
Dtest_esp_flash.c261 static void get_chip_host(esp_flash_t* chip, spi_host_device_t* out_host_id, int* out_cs_id) in get_chip_host()
377 static void setup_new_chip(const flashtest_config_t* test_cfg, esp_flash_t** out_chip) in setup_new_chip()
394 esp_flash_t* init_chip; in setup_new_chip()
402 static void teardown_test_chip(esp_flash_t* chip) in teardown_test_chip()
413 esp_flash_t* chip; in flash_test_core()
455 esp_flash_t* chip = part->flash_chip; in test_metadata()
467 esp_flash_t* chip = part->flash_chip; in erase_test_region()
496 esp_flash_t* chip = part->flash_chip; in test_simple_read_write()
527 esp_flash_t* chip = part->flash_chip; in test_unaligned_read_write()
548 esp_flash_t* chip = part->flash_chip; in test_single_read_write()
[all …]
/hal_espressif-3.4.0/examples/storage/ext_flash_fatfs/main/
Dext_flash_fatfs_example_main.c31 static esp_flash_t* example_init_ext_flash(void);
32 static const esp_partition_t* example_add_partition(esp_flash_t* ext_flash, const char* partition_l…
40 esp_flash_t* flash = example_init_ext_flash(); in app_main()
91 static esp_flash_t* example_init_ext_flash(void) in example_init_ext_flash()
120 esp_flash_t* ext_flash; in example_init_ext_flash()
138 static const esp_partition_t* example_add_partition(esp_flash_t* ext_flash, const char* partition_l… in example_add_partition()
/hal_espressif-3.4.0/components/driver/test/
Dtest_spi_bus_lock.c40 esp_flash_t* chip;
145 static void write_large_buffer(esp_flash_t *chip, const esp_partition_t *part, const uint8_t *sourc… in write_large_buffer()
158 static void read_and_check(esp_flash_t *chip, const esp_partition_t *part, const uint8_t *source, s… in read_and_check()
184 esp_flash_t *chip = ((task_context_t*)arg)->chip; in spi_task4()
253 esp_flash_t *chip; in test_bus_lock()

12