![]() |
NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
|
SPI flash driver. More...
#include <stdint.h>
Go to the source code of this file.
Functions | |
int | spi_flash_setup (void) |
int | spi_flash_erase (void) |
int | spi_flash_stream_get (uint32_t *rdata) |
int | spi_flash_stream_put (uint32_t wdata) |
SPI flash driver.
int spi_flash_erase | ( | void | ) |
Erase flash. Call spi_flash_setup() before.
int spi_flash_setup | ( | void | ) |
Setup SPI flash.
int spi_flash_stream_get | ( | uint32_t * | rdata | ) |
Read stream word from SPI flash.
[in,out] | rdata | Pointer for returned data (uint32_t). |
int spi_flash_stream_put | ( | uint32_t | wdata | ) |
Write stream word to SPI flash.
wdata | SPI flash write data. |