Select one of the symbols to view example projects that use it.
 
Outline
#include <stdint.h>
#include "sdkconfig.h"
#include "esp_err.h"
spi_flash_hpm_dummy_conf_t
spi_flash_requirement_t
spi_flash_hpm_enable_fn_t
spi_flash_hpf_check_fn_t
spi_flash_hpm_chip_requirement_check_t
spi_flash_hpm_info_t
spi_flash_wrap_size_t
spi_flash_wrap_clr_fn_t
spi_flash_wrap_info_t
spi_flash_hpm_enable_list;
Files
ESP-IDF
components
app_trace
app_update
bootloader_support
bt
cmock
console
cxx
driver
efuse
esp_adc
esp_app_format
esp_bootloader_format
esp_coex
esp_common
esp_driver_ana_cmpr
esp_driver_cam
esp_driver_dac
esp_driver_gpio
esp_driver_gptimer
esp_driver_i2c
esp_driver_i2s
esp_driver_jpeg
esp_driver_ledc
esp_driver_mcpwm
esp_driver_parlio
esp_driver_pcnt
esp_driver_rmt
esp_driver_sdio
esp_driver_sdm
esp_driver_sdmmc
esp_driver_sdspi
esp_driver_spi
esp_driver_tsens
esp_driver_uart
esp_driver_usb_serial_jtag
esp_eth
esp_event
esp_gdbstub
esp_hid
esp_http_client
esp_http_server
esp_https_ota
esp_https_server
esp_hw_support
esp_lcd
esp_local_ctrl
esp_mm
esp_netif
esp_partition
esp_phy
esp_pm
esp_psram
esp_ringbuf
esp_rom
esp_security
esp_system
esp_timer
esp_vfs_console
esp_wifi
esp-tls
espcoredump
hal
heap
http_parser
ieee802154
log
mqtt
newlib
nvs_flash
nvs_sec_provider
openthread
perfmon
protobuf-c
protocomm
pthread
rt
sdmmc
soc
spi_flash
include
esp_private
spi_flash
spiffs
tcp_transport
ulp
unity
vfs
wear_levelling
wifi_provisioning
wpa_supplicant
xtensa
examples
lwIP
FreeRTOS
cJSON
mbedTLS
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/spi_flash/include/spi_flash_override.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #include <stdint.h> #include "sdkconfig.h" #include "esp_err.h" #pragma once #ifdef __cplusplus extern "C" { #endif /** * @brief Structure for flash dummy bits. * For some flash chips, dummy bits are configurable under different conditions. *//* ... */ typedef struct { uint8_t dio_dummy; uint8_t dout_dummy; uint8_t qio_dummy; uint8_t qout_dummy; uint8_t fastrd_dummy; }{ ... } spi_flash_hpm_dummy_conf_t; typedef enum { SPI_FLASH_HPM_CMD_NEEDED, // Means that in the certain condition, flash needs to enter the high performance mode by command. SPI_FLASH_HPM_DUMMY_NEEDED, // Means that in the certain condition, flash needs to enter the high performance mode by adjusting dummy. SPI_FLASH_HPM_WRITE_SR_NEEDED, // Means that in the certain condition, flash needs to enter the high performance mode by writing status register. SPI_FLASH_HPM_UNNEEDED, // Means that flash doesn't need to enter the high performance mode. SPI_FLASH_HPM_BEYOND_LIMIT, // Means that flash has no capability to meet that condition. }{ ... } spi_flash_requirement_t; typedef void (*spi_flash_hpm_enable_fn_t)(void); typedef esp_err_t (*spi_flash_hpf_check_fn_t)(void); typedef void (*spi_flash_get_chip_dummy_fn_t)(spi_flash_hpm_dummy_conf_t *dummy_conf); typedef esp_err_t (*spi_flash_hpm_probe_fn_t)(uint32_t flash_id); typedef spi_flash_requirement_t (*spi_flash_hpm_chip_requirement_check_t)(uint32_t flash_id, uint32_t freq_mhz, int voltage_mv, int temperature); typedef struct __attribute__((packed)) { const char *method; /* Flash HPM method */ spi_flash_hpm_probe_fn_t probe; spi_flash_hpm_chip_requirement_check_t chip_hpm_requirement_check; spi_flash_hpm_enable_fn_t flash_hpm_enable; spi_flash_hpf_check_fn_t flash_hpf_check; spi_flash_get_chip_dummy_fn_t flash_get_dummy; }{...} spi_flash_hpm_info_t; /** * @brief Enum for user to select valid wrap size. *//* ... */ typedef enum { FLASH_WRAP_SIZE_8B = 8, FLASH_WRAP_SIZE_16B = 16, FLASH_WRAP_SIZE_32B = 32, FLASH_WRAP_SIZE_64B = 64, }{ ... } spi_flash_wrap_size_t; /** * @brief Probe flash wrap method * * @param flash_id Flash chip ID * * @return ESP_OK: If succeed *//* ... */ typedef esp_err_t (*spi_flash_wrap_probe_fn_t)(uint32_t flash_id); /** * @brief Set flash wrap * * @param wrap_size: wrap_size * * @return ESP_OK: If succeed *//* ... */ typedef esp_err_t (*spi_flash_wrap_set_fn_t)(spi_flash_wrap_size_t wrap_size); /** * @brief Clear flash wrap. * * @return ESP_OK: If succeed *//* ... */ typedef esp_err_t (*spi_flash_wrap_clr_fn_t)(void); typedef struct __attribute__((packed)) { const char *method; spi_flash_wrap_probe_fn_t probe; spi_flash_wrap_set_fn_t chip_wrap_set; spi_flash_wrap_clr_fn_t chip_wrap_clr; }{...} spi_flash_wrap_info_t; /** * Array of known flash chips and method to enable flash high performance mode. * * Users can override this array. *//* ... */ extern const spi_flash_hpm_info_t __attribute__((weak)) spi_flash_hpm_enable_list[]; #ifdef __cplusplus }{...} #endif
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.