X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=drivers%2Fgp2x%2Fcpuctrl.h;h=eb2dc0a222d42056772fde8dee4fd67455cad622;hp=5b482a55d832176a216916812545f8a175bf2649;hb=890deff8bad82ef88678ac9c9cb7373677faf77a;hpb=b2b95d2e0d1fd5e52d03c2152605b09b024c1d0e diff --git a/drivers/gp2x/cpuctrl.h b/drivers/gp2x/cpuctrl.h index 5b482a5..eb2dc0a 100644 --- a/drivers/gp2x/cpuctrl.h +++ b/drivers/gp2x/cpuctrl.h @@ -9,8 +9,21 @@ extern void set_FCLK(unsigned MHZ); /* adjust the clock frequency (in Mhz units) extern void set_920_Div(unsigned short div); /* 0 to 7 divider (freq=FCLK/(1+div)) */ extern void set_DCLK_Div(unsigned short div); /* 0 to 7 divider (freq=FCLK/(1+div)) */ //extern void Disable_940(void); /* 940t down */ -//extern void gp2x_video_wait_vsync(void); + extern void set_RAM_Timings(int tRC, int tRAS, int tWR, int tMRD, int tRFC, int tRP, int tRCD); extern void set_gamma(int g100); +typedef enum +{ + LCDR_60 = 0, /* ~59.998Hz, has interlacing problems, kills USB host */ + LCDR_50, /* 50Hz, has interlacing problems, kills USB host */ + LCDR_120_20, /* ~60.10*2Hz, used by FCE Ultra */ + LCDR_100_02, /* ~50.01*2Hz, used by FCE Ultra */ + LCDR_120, /* 120Hz */ + LCDR_100, /* 100Hz */ +} lcd_rate_t; + +extern void set_LCD_custom_rate(lcd_rate_t rate); +extern void unset_LCD_custom_rate(void); + #endif