mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-07 07:38:04 -04:00
GP2X updates
video stuff moved out as it's project specific..
This commit is contained in:
parent
c54d04fd84
commit
7ceadd9993
12 changed files with 313 additions and 806 deletions
27
gp2x/soc.h
27
gp2x/soc.h
|
@ -1,3 +1,8 @@
|
|||
|
||||
extern volatile unsigned short *memregs;
|
||||
extern volatile unsigned int *memregl;
|
||||
extern int memdev;
|
||||
|
||||
typedef enum {
|
||||
SOCID_MMSP2 = 1,
|
||||
SOCID_POLLUX,
|
||||
|
@ -11,28 +16,6 @@ void mmsp2_finish(void);
|
|||
void pollux_init(void);
|
||||
void pollux_finish(void);
|
||||
|
||||
void dummy_init(void);
|
||||
void dummy_finish(void);
|
||||
|
||||
/* SoC specific functions */
|
||||
extern void (*gp2x_video_flip)(void);
|
||||
extern void (*gp2x_video_flip2)(void);
|
||||
/* negative bpp means rotated mode (for Wiz) */
|
||||
extern void (*gp2x_video_changemode_ll)(int bpp);
|
||||
extern void (*gp2x_video_setpalette)(int *pal, int len);
|
||||
extern void (*gp2x_video_RGB_setscaling)(int ln_offs, int W, int H);
|
||||
extern void (*gp2x_video_wait_vsync)(void);
|
||||
|
||||
extern void (*gp2x_set_cpuclk)(unsigned int mhz);
|
||||
|
||||
extern void (*set_lcd_custom_rate)(int is_pal);
|
||||
extern void (*unset_lcd_custom_rate)(void);
|
||||
extern void (*set_lcd_gamma)(int g100, int A_SNs_curve);
|
||||
|
||||
extern void (*set_ram_timings)(void);
|
||||
extern void (*unset_ram_timings)(void);
|
||||
extern int (*gp2x_read_battery)(void);
|
||||
|
||||
/* gettimeofday is not suitable for Wiz, at least fw 1.1 or lower */
|
||||
extern unsigned int (*gp2x_get_ticks_ms)(void);
|
||||
extern unsigned int (*gp2x_get_ticks_us)(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue