X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fpsp%2Fpsp.h;fp=platform%2Fpsp%2Fpsp.h;h=cece8cf9ef8a28ad49229a84121207bd5612c3f9;hb=1820b5a7a18fc8c37dddb2ab88159e513ceb3b16;hp=0000000000000000000000000000000000000000;hpb=3c392aec73426a15ef3b07d6cea8411d5ee936f8;p=picodrive.git diff --git a/platform/psp/psp.h b/platform/psp/psp.h new file mode 100644 index 0000000..cece8cf --- /dev/null +++ b/platform/psp/psp.h @@ -0,0 +1,32 @@ +#include + +void psp_init(void); +void psp_finish(void); + +void psp_msleep(int ms); + +#define PSP_VRAM_BASE0 ((void *) 0x44000000) +#define PSP_VRAM_BASE1 ((void *) 0x44044000) + +void psp_video_switch_to_single(void); +void psp_video_flip(void); +extern void *psp_screen; + +unsigned int psp_pad_read(void); + + +/* shorter btn names */ +#define BTN_UP PSP_CTRL_UP +#define BTN_LEFT PSP_CTRL_LEFT +#define BTN_RIGHT PSP_CTRL_RIGHT +#define BTN_DOWN PSP_CTRL_DOWN +#define BTN_L PSP_CTRL_LTRIGGER +#define BTN_R PSP_CTRL_RTRIGGER +#define BTN_TRIANGLE PSP_CTRL_TRIANGLE +#define BTN_CIRCLE PSP_CTRL_CIRCLE +#define BTN_X PSP_CTRL_CROSS +#define BTN_SQUARE PSP_CTRL_SQUARE +#define BTN_SELECT PSP_CTRL_SELECT +#define BTN_START PSP_CTRL_START +#define BTN_NOTE PSP_CTRL_NOTE +