ESP-IDF
spi_flash_hal_init()
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (4/5)...
Files
loading (4/5)...
Summary
Syntax
Arguments
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
spi_flash_hal_init()
spi_flash_hal_init() function
Configure SPI flash hal settings.
Syntax
Show:
Summary
Declaration
Definition
from
spi_flash_hal.h:102
esp_err_t
spi_flash_hal_init
(
spi_flash_hal_context_t
*
data_out
,
const
spi_flash_hal_config_t
*
cfg
)
;
Implemented in
spi_flash_hal.c:102
Arguments
Argument
Description
data_out
cfg
Configurations to set
Return value
- ESP_OK: success - ESP_ERR_INVALID_ARG: the data buffer is not in the DRAM.
Related Functions
Found 1 other functions taking a
spi_flash_hal_context_t
argument:
Function
Description
memspi_host_init_pointers()
Initialize the memory SPI host.
Examples
References
from
examples
Code
Location
Referrer
esp_err_t
spi_flash_hal_init
(
spi_flash_hal_context_t
*
data_out
,
const
spi_flash_hal_config_t
*
cfg
)
spi_flash_hal.c:102
esp_err_t
spi_flash_hal_init
(
spi_flash_hal_context_t
*
data_out
,
const
spi_flash_hal_config_t
*
cfg
)
;
spi_flash_hal.h:102
esp_err_t
err
=
spi_flash_hal_init
(
host
,
cfg
)
;
memspi_host_driver.c:83
memspi_host_init_pointers()
Call Tree
from
examples
spi_flash_hal_init()
is called by 1 function and calls 4 functions:
memspi_host_init_pointers()
All items filtered out
spi_flash_hal_init()
abort()
get_flash_clock_divider()
spi_flash_cal_clock()
get_dummy_n()
All items filtered out
Data Use
from
examples
spi_flash_hal_init()
reads 15 variables and writes 4 variables:
spi_host_device_t::SPI1_HOST
spi_host_device_t::SPI2_HOST
spi_host_device_t::SPI3_HOST
spi_flash_hal_context_t::inst
spi_flash_hal_context_t::flags
spi_flash_hal_config_t::
::
::cs_hold
spi_flash_hal_config_t::
::
::cs_setup
spi_flash_hal_config_t::iomux
spi_flash_hal_config_t::input_delay_ns
spi_flash_hal_config_t::host_id
spi_flash_hal_config_t::cs_num
spi_flash_hal_config_t::auto_sus_en
spi_flash_hal_config_t::default_io_mode
spi_flash_hal_config_t::freq_mhz
spi_flash_hal_config_t::tsus_val
All items filtered out
spi_flash_hal_init()
spi_flash_hal_context_t::
::extra_dummy
spi_flash_hal_context_t::clock_conf
spi_flash_hal_context_t::flags
spi_flash_hal_context_t::tsus_val
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out