20 lines
657 B
C
20 lines
657 B
C
//
|
|
// Created by ilya on 01.02.23.
|
|
//
|
|
|
|
#ifndef UVEOS_ON_NATION_FLASH_MX25L12833FM2I_H
|
|
#define UVEOS_ON_NATION_FLASH_MX25L12833FM2I_H
|
|
#include "inttypes.h"
|
|
|
|
|
|
#include "SpiPort.h"
|
|
|
|
|
|
extern uint8_t flashMX25_read(tSpiPortIO *flashIO, uint32_t addr, uint8_t* bufRead, uint32_t total_len, uint32_t timeout);
|
|
extern uint8_t flashMX25_write(tSpiPortIO *flashIO, uint32_t addr, uint8_t* bufWrite, uint32_t total_len, uint32_t timeout);
|
|
extern uint8_t flashMX25_SectorErase(tSpiPortIO *flashIO, uint32_t addr, uint32_t timeout);
|
|
extern uint16_t flashMX25_read_id(tSpiPortIO *flashIO, uint32_t timeout,uint8_t *buf);
|
|
|
|
|
|
#endif //UVEOS_ON_NATION_FLASH_MX25L12833FM2I_H
|