NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
Loading...
Searching...
No Matches
twi_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 TWI_FLASH_H
15#define TWI_FLASH_H
16
17#include <stdint.h>
18
19int twi_flash_read_word(uint32_t addr, uint32_t* rdata);
20int twi_flash_write_word(uint32_t addr, uint32_t wdata);
21void twi_flash_delay_twi_tick(int tick_count);
22
23#endif // TWI_FLASH_H
int twi_flash_write_word(uint32_t addr, uint32_t wdata)
Definition twi_flash.c:184
int twi_flash_read_word(uint32_t addr, uint32_t *rdata)
Definition twi_flash.c:26
void twi_flash_delay_twi_tick(int tick_count)
Keeps TWI Peripheral in IDLE for 'tick_count' TWI clock ticks.
Definition twi_flash.c:236