![]() |
NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
|
TWI flash driver. More...
#include <stdint.h>
Go to the source code of this file.
Functions | |
int | twi_flash_read_word (uint32_t addr, uint32_t *rdata) |
int | twi_flash_write_word (uint32_t addr, uint32_t wdata) |
void | twi_flash_delay_twi_tick (int tick_count) |
Keeps TWI Peripheral in IDLE for 'tick_count' TWI clock ticks. | |
TWI flash driver.
void twi_flash_delay_twi_tick | ( | int | tick_count | ) |
Keeps TWI Peripheral in IDLE for 'tick_count' TWI clock ticks.
tick_count | Amount of TWI NOP ticks to wait |
int twi_flash_read_word | ( | uint32_t | addr, |
uint32_t * | rdata ) |
Read 32-bit word from word-aligned TWI flash address.
[in] | addr | Word-aligned address. |
[in,out] | rdata | Pointer for returned data (uint32_t). |
int twi_flash_write_word | ( | uint32_t | addr, |
uint32_t | wdata ) |
Write word to TWI flash.
addr | TWI flash write address. |
wdata | TWI flash write data. |