X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Fsoc_mmsp2.c;h=5217dda1f7cf716dce92500479e4ff6001c79fd3;hb=b5bfb86438216d502f1f9ed14b923d3b0107c07d;hp=00eb0a230bc0a9907a5845eaeff8eb2219acb840;hpb=6dba776e17ea2cd7b3d8aa27f020dab66cb83ac8;p=libpicofe.git diff --git a/gp2x/soc_mmsp2.c b/gp2x/soc_mmsp2.c index 00eb0a2..5217dda 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,6 +41,8 @@ static unsigned short gp2x_screenaddr_old[4]; 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) @@ -508,6 +511,9 @@ 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_gtod; + gp2x_get_ticks_us = plat_get_ticks_us_gtod; } void mmsp2_finish(void)