liberis
|
Backup memory control. More...
#include <eris/types.h>
Go to the source code of this file.
Functions | |
void | eris_bkupmem_set_access (int internal, int external) |
Set access bits. | |
void | eris_bkupmem_read (int ext, u8 *buf, u32 addr, u32 len) |
Read backup memory. | |
void | eris_bkupmem_write (int ext, u8 *buf, u32 addr, u32 len) |
Write backup memory. |
Backup memory control.
Read backup memory.
ext | If 1, read from external memory. 0 is internal memory. |
buf | Buffer to store the data. |
addr | Address to start reading from. |
len | Bytes to read. |
void eris_bkupmem_set_access | ( | int | internal, |
int | external | ||
) |
Set access bits.
These bits control access to external and internal backup memory.
internal | Allow writing of internal backup memory. |
external | Allow writing of external backup memory. |
Write backup memory.
ext | If 1, write to external memory. 0 is internal memory. |
buf | Buffer holding the data to write. |
addr | Address to start writing to. |
len | Bytes to write. |