gp2x: pollux: bring back ram timings

This commit is contained in:
notaz 2013-10-04 03:14:02 +03:00
parent 11166a22ce
commit 9a5a0dc9ff
3 changed files with 46 additions and 0 deletions

View file

@ -337,6 +337,21 @@ again:
return 0;
}
int pollux_set_fromenv(volatile unsigned short *memregs,
const char *env_var)
{
const char *set_string;
int ret = -1;
set_string = getenv(env_var);
if (set_string)
ret = pollux_set(memregs, set_string);
else
printf("env var %s not defined.\n", env_var);
return ret;
}
#ifdef BINARY
#include <sys/types.h>
#include <sys/stat.h>