FAME + some random stuff added
[libpicofe.git] / psp / psp.h
CommitLineData
2951214e 1#include <pspctrl.h>
2
3void psp_init(void);
4void psp_finish(void);
5
6void psp_msleep(int ms);
7
8#define PSP_VRAM_BASE0 ((void *) 0x44000000)
9#define PSP_VRAM_BASE1 ((void *) 0x44044000)
10
703e4c7b 11void *psp_video_get_active_fb(void);
12void psp_video_switch_to_single(void);
13void psp_video_flip(int wait_vsync);
2951214e 14extern void *psp_screen;
15
703e4c7b 16unsigned int psp_pad_read(int blocking);
2951214e 17
2b90fc61 18int psp_get_cpu_clock(void);
19int psp_set_cpu_clock(int clock);
2951214e 20
21/* shorter btn names */
22#define BTN_UP PSP_CTRL_UP
23#define BTN_LEFT PSP_CTRL_LEFT
24#define BTN_RIGHT PSP_CTRL_RIGHT
25#define BTN_DOWN PSP_CTRL_DOWN
26#define BTN_L PSP_CTRL_LTRIGGER
27#define BTN_R PSP_CTRL_RTRIGGER
28#define BTN_TRIANGLE PSP_CTRL_TRIANGLE
29#define BTN_CIRCLE PSP_CTRL_CIRCLE
30#define BTN_X PSP_CTRL_CROSS
31#define BTN_SQUARE PSP_CTRL_SQUARE
32#define BTN_SELECT PSP_CTRL_SELECT
33#define BTN_START PSP_CTRL_START
34#define BTN_NOTE PSP_CTRL_NOTE
35