![]() |
CI130X SDK API手册
2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
|
SPIFLASH驱动文件 更多...
#include "ci130x_system.h"
宏定义 | |
#define | SPI0FIFO_BASE 0x60000000 |
#define | FLASH_MSF (0) |
函数 | |
int32_t | flash_init (spic_base_t spic) |
FLASH普通模式初始化 更多... | |
int32_t | spic_read_unique_id (spic_base_t spic, uint8_t *unique) |
读取Unique ID 更多... | |
int32_t | spic_read_jedec_id (spic_base_t spic, uint8_t *jedec) |
读取Jedec ID 更多... | |
int32_t | spic_erase_security_reg (spic_base_t spic, spic_security_reg_t reg) |
擦除FLASH安全寄存器 更多... | |
int32_t | spic_write_security_reg (spic_base_t spic, spic_security_reg_t reg, uint32_t buf, uint32_t addr, uint32_t size) |
写FLASH的安全寄存器 更多... | |
int32_t | spic_read_security_reg (spic_base_t spic, spic_security_reg_t reg, uint32_t buf, uint32_t addr, uint32_t size) |
读FLASH的安全寄存器 更多... | |
int32_t | spic_security_reg_lock (spic_base_t spic, spic_security_reg_t reg) |
FLASH的安全寄存器上锁,慎用:上锁之后将导致该安全寄存器不可再次编程 更多... | |
int32_t | flash_erase (spic_base_t spic, uint32_t addr, uint32_t size) |
FLASH擦除,兼容32M以上Flash 更多... | |
int32_t | flash_write (spic_base_t spic, uint32_t addr, uint32_t buf, uint32_t size) |
写FLASH,兼容32M以上Flash 更多... | |
int32_t | flash_read (spic_base_t spic, uint32_t buf, uint32_t addr, uint32_t size) |
读FLASH,兼容32M以上Flash 更多... | |
int32_t | spic_protect (spic_base_t spic, FunctionalState cmd) |
FLASH保护设置 更多... | |
int32_t | spic_xipconfig (spic_base_t spic) |
FLASH的XIP模式初始化 更多... | |
int32_t | flash_clk_div_init (spic_base_t spic) |
FLASH时钟初始化 更多... | |
SPIFLASH驱动文件