Function gx_hal_sf_read_prepare

  • Defined in file__output_copyinclude_src_include_flashspi_gx_hal_sf.h

Function Documentation

int gx_hal_sf_read_prepare(GX_HAL_SF_DEV_T *dev, GX_HAL_SF_RW_T *r)

启动读取flash数据 该函数配置flash SPI接口,通过SPI发出读指令和读取的地址

参数

GX_HAL_SF_RW_T – 读取数据结构体

Returns 0

成功

Returns 1

失败

返回

int 是否成功