#include "soc_mmsp2.h"
#include "plat_gp2x.h"
#include "../common/emu.h"
+#include "../common/plat.h"
#include "../common/arm_utils.h"
#include "940ctl.h"
static unsigned short memtimex_old[2];
static unsigned short reg0910;
+extern unsigned int plat_get_ticks_ms_gtod(void);
+extern unsigned int plat_get_ticks_us_gtod(void);
/* video stuff */
static void gp2x_video_flip_(void)
gamma_was_changed = 1;
}
+static int gp2x_read_battery_(void)
+{
+ return -1; /* TODO? */
+}
/* these are not quite MMSP2 related,
* more to GP2X F100/F200 consoles themselves. */
set_ram_timings = set_ram_timings_;
unset_ram_timings = unset_ram_timings_;
+ gp2x_read_battery = gp2x_read_battery_;
+
+ gp2x_get_ticks_ms = plat_get_ticks_ms_gtod;
+ gp2x_get_ticks_us = plat_get_ticks_us_gtod;
}
void mmsp2_finish(void)