mcu_ab568x/app/platform/libs/api_flash.h
2025-05-30 18:03:10 +08:00

16 lines
381 B
C

#ifndef _API_FLASH_H
#define _API_FLASH_H
uint os_spiflash_read(void *buf, u32 addr, uint len);
void os_spiflash_program(void *buf, u32 addr, uint len);
void os_spiflash_erase(u32 addr);
/**
* @brief ?¨¢¨¨?4Bytes¦Ì?flash?¡§¨°?ID, ?¨¦¡Á¡Â?acpu id
* @param[in] buf:?¨¢¨¨?¡ä?¨¨?ID buf
* @return ?T
**/
void spiflash_readuid(uint8_t *buf);
#endif // _API_FLASH_H