X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Fsoc_mmsp2.c;h=35748d84e54624e6f9b0273234154a8428ceed7b;hb=e99d80480196f551f7e6c06deae3750de19b4c0e;hp=d6c40e5b5744da16b6d6b8b2cfb37c39a6d6f63b;hpb=71769e27e90704f464bc1844daa044a5b1b24fd4;p=libpicofe.git diff --git a/gp2x/soc_mmsp2.c b/gp2x/soc_mmsp2.c index d6c40e5..35748d8 100644 --- a/gp2x/soc_mmsp2.c +++ b/gp2x/soc_mmsp2.c @@ -12,6 +12,7 @@ #include "soc_mmsp2.h" #include "plat_gp2x.h" #include "../common/emu.h" +#include "../common/plat.h" #include "../common/arm_utils.h" #include "940ctl.h" @@ -40,7 +41,6 @@ static unsigned short gp2x_screenaddr_old[4]; static unsigned short memtimex_old[2]; static unsigned short reg0910; - /* video stuff */ static void gp2x_video_flip_(void) { @@ -353,6 +353,10 @@ static void set_lcd_gamma_(int g100, int A_SNs_curve) 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. */ @@ -503,6 +507,10 @@ void mmsp2_init(void) 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_good; + gp2x_get_ticks_us = plat_get_ticks_us_good; } void mmsp2_finish(void)