void flash_release_deep_powerdown(void)
The Release from Power-Down or High Performance Mode/Device ID command is a Multi-purpose command...
void flash_lock(Flash_TypeDef type, unsigned short data)
This function serves to protect data for flash.
unsigned char flash_write_status(unsigned char data)
This function write the status of flash.
void flash_erase_64kblock(unsigned int addr)
This function serves to erase a block(64k).
void flash_unlock(Flash_TypeDef type)
This function serves to protect data for flash.
void flash_read_mid(unsigned char *buf)
_attribute_ram_code_ void flash_erase_sector(unsigned long addr)
This function serves to erase a sector.
unsigned char flash_read_status(void)
This function reads the status of flash.
#define _attribute_ram_code_
Definition: compiler.h:33
_attribute_ram_code_ void flash_read_page(unsigned long addr, unsigned long len, unsigned char *buf)
This function reads the content from a page to the buf.
void flash_erase_chip(void)
This function serves to erase a page(256 bytes).
void flash_erase_32kblock(unsigned int addr)
This function serves to erase a block(32k).
_attribute_ram_code_ void flash_write_page(unsigned long addr, unsigned long len, unsigned char *buf)
This function writes the buffer's content to a page.
void flash_deep_powerdown(void)
Deep Power Down mode to put the device in the lowest consumption mode it can be used as an extra soft...
Flash_TypeDef
flash type definition
Definition: flash.h:58
void flash_read_uid(unsigned char idcmd, unsigned char *buf)
This function serves to read UID of flash.
_attribute_ram_code_ void flash_erase_page(unsigned int addr)
This function serves to erase a page(256 bytes).
int flash_read_mid_uid_with_check(unsigned int *flash_mid, unsigned char *flash_uid)
This function serves to read flash mid and uid,and check the correctness of mid and uid...