X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico.h;h=b61d7b14b24f84fcddb8376033965dcc4c88d146;hb=e59af1c9b829484ffa4c84b680c6ce9abcdfa53f;hp=870444aef78e53bbab3125cc6b160412e6fc7fc1;hpb=b4db550e41b2aa277f570d7bff890c8e8ee1831f;p=picodrive.git diff --git a/pico/pico.h b/pico/pico.h index 870444a..b61d7b1 100644 --- a/pico/pico.h +++ b/pico/pico.h @@ -101,7 +101,7 @@ extern void (*PicoMCDopenTray)(void); extern void (*PicoMCDcloseTray)(void); extern int PicoCDBuffers; -// Pico/Pico.c +// pico.c #define XPCM_BUFFER_SIZE (320+160) typedef struct { @@ -209,6 +209,14 @@ extern unsigned char *PicoDraw2FB; // buffer for fast renderer in format (8+32 extern unsigned short *PicoCramHigh; // pointer to CRAM buff (0x40 shorts), converted to native device color (works only with 16bit for now) extern void (*PicoPrepareCram)(); // prepares PicoCramHigh for renderer to use +// pico.c (32x) +// multipliers against 68k clock +extern int p32x_msh2_multiplier; +extern int p32x_ssh2_multiplier; +#define SH2_MULTI_SHIFT 10 +#define MSH2_MULTI_DEFAULT ((1 << SH2_MULTI_SHIFT) * 3 / 2) +#define SSH2_MULTI_DEFAULT ((1 << SH2_MULTI_SHIFT) * 3 / 2) + // 32x/draw.c void PicoDraw32xSetFrameMode(int is_on, int only_32x); extern int (*PicoScan32xBegin)(unsigned int num);