32x: a hack for dealing with pwm inaccuracy
[picodrive.git] / platform / gp2x / plat_gp2x.h
CommitLineData
0d9bf4fc 1#ifndef __GP2X_H__
2#define __GP2X_H__
3
4extern int default_cpu_clock;
5
6/* video */
7void gp2x_video_changemode(int bpp);
8void gp2x_memcpy_all_buffers(void *data, int offset, int len);
9void gp2x_memset_all_buffers(int offset, int byte, int len);
10void gp2x_make_fb_bufferable(int yes);
11
12/* input */
13int gp2x_touchpad_read(int *x, int *y);
14
f4750ee0 15/* misc */
16enum {
17 GP2X_DEV_GP2X = 1,
18 GP2X_DEV_WIZ,
19 GP2X_DEV_CAANOO,
20};
21extern int gp2x_dev_id;
22extern int gp2x_current_bpp;
23
24unsigned int plat_get_ticks_ms_good(void);
25unsigned int plat_get_ticks_us_good(void);
26
27void gp2x_menu_init(void);
28
0d9bf4fc 29#endif