11#include "acsram_internal.h"
13int acSramRead(acSramAddr addr,
void *buf,
int size)
15 volatile acUint16 *src;
18 src = (
volatile acUint16 *)(2 * (addr & 0x7FFF) + 0xB2500000);
19 for ( i = size; i > 0; buf = (acUint8 *)buf + 1 )
22 *(acUint8 *)buf = *(
volatile acUint8 *)src++;
27int acSramWrite(acSramAddr addr,
void *buf,
int size)
29 volatile acUint16 *dst;
32 dst = (
volatile acUint16 *)(2 * (addr & 0x7FFF) + 0xB2500000);
33 for ( i = size; i > 0; ++dst )
36 *dst = *(acUint8 *)buf;
37 buf = (acUint8 *)buf + 1;
42int acSramModuleStart(
int argc,
char **argv)
54int acSramModuleRestart(
int argc,
char **argv)
61int acSramModuleStatus()