19 lines
625 B
C
19 lines
625 B
C
//
|
|
// Created by cfif on 28.09.22.
|
|
//
|
|
|
|
#ifndef Flash_MT29F2G01ABAGDWB_H
|
|
#define Flash_MT29F2G01ABAGDWB_H
|
|
|
|
#include "inttypes.h"
|
|
#include "cmsis_os.h"
|
|
#include "SpiPort.h"
|
|
|
|
extern void spi_flash_unblock(tSpiPortIO *flashIO, uint32_t timeout);
|
|
extern uint8_t spi_flash_page_read(tSpiPortIO *flashIO, uint32_t addr, uint8_t* bufRead, uint32_t total_len, uint32_t timeout);
|
|
extern uint8_t spi_flash_page_write(tSpiPortIO *flashIO, uint32_t addr, uint8_t* bufWrite, uint32_t total_len, uint32_t timeout);
|
|
extern uint8_t spi_flash_erase(tSpiPortIO *flashIO, uint16_t address, uint32_t timeout);
|
|
|
|
|
|
#endif //Flash_MT29F2G01ABAGDWB_H
|