10 lines
280 B
C
10 lines
280 B
C
|
#ifndef SPI_FLASH_DRI_H
|
||
|
#define SPI_FLASH_DRI_H
|
||
|
#include <stdint.h>
|
||
|
uint16_t spi_flash_probe(void);
|
||
|
|
||
|
void spi_flash_sector_erase(uint32_t address);
|
||
|
int spi_flash_read(uint32_t address, void *data, int len);
|
||
|
int spi_flash_write(uint32_t address, const void *data, int len);
|
||
|
#endif
|