2024-12-06 13:23:28 +00:00
|
|
|
|
|
|
|
#ifndef FM_FLASH_H_
|
|
|
|
#define FM_FLASH_H_
|
|
|
|
|
|
|
|
#include "main.h"
|
2025-01-17 12:32:22 +00:00
|
|
|
#include "w25qxx.h"
|
|
|
|
// #include "w25q256.h"
|
2024-12-06 13:23:28 +00:00
|
|
|
|
|
|
|
void Flash_Init(void);
|
|
|
|
void read_Flash(uint8_t* pBuffer,uint32_t ReadAddr,uint16_t NumByteToRead);
|
|
|
|
void write_Flash(uint8_t* pBuffer,uint32_t WriteAddr,uint16_t NumByteToWrite);
|
2025-01-22 10:09:12 +00:00
|
|
|
void erase_Sector_Flash(uint32_t secpos);
|
|
|
|
|
2024-12-06 13:23:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|