NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
Loading...
Searching...
No Matches
spi_flash.h
Go to the documentation of this file.
1// ================================================================================ //
2// The NEORV32 RISC-V Processor - https://github.com/stnolting/neorv32 //
3// Copyright (c) NEORV32 contributors. //
4// Copyright (c) 2020 - 2025 Stephan Nolting. All rights reserved. //
5// Licensed under the BSD-3-Clause license, see LICENSE for details. //
6// SPDX-License-Identifier: BSD-3-Clause //
7// ================================================================================ //
8
13
14#ifndef SPI_FLASH_H
15#define SPI_FLASH_H
16
17#include <stdint.h>
18
19int spi_flash_check(void) ;
20int spi_flash_read_word(uint32_t addr, uint32_t* rdata) ;
21int spi_flash_write_word(uint32_t addr, uint32_t wdata);
22int spi_flash_erase_sector(uint32_t addr);
23
24#endif // SPI_FLASH_H
int spi_flash_check(void)
Definition spi_flash.c:135
int spi_flash_erase_sector(uint32_t addr)
Definition spi_flash.c:225
int spi_flash_read_word(uint32_t addr, uint32_t *rdata)
Definition spi_flash.c:170
int spi_flash_write_word(uint32_t addr, uint32_t wdata)
Definition spi_flash.c:201