X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico.h;h=0422dfd9a5da034100cd3c1c765b02eacb6fd1b4;hb=6ce90725a13ba6e39f3fef69783d09610200b225;hp=e5e832bd5203fd795eb19ff0ca1b9ef1e7cbc490;hpb=c25d78eec11d2a22adbd0bc7d42a24e2d79e40e7;p=picodrive.git diff --git a/pico/pico.h b/pico/pico.h index e5e832b..0422dfd 100644 --- a/pico/pico.h +++ b/pico/pico.h @@ -12,9 +12,6 @@ #include // size_t -// port-specific compile-time settings -#include - #ifdef __cplusplus extern "C" { #endif @@ -171,7 +168,7 @@ typedef enum PDF_RGB555, // RGB/BGR output, depends on compile options PDF_8BIT, // 8-bit out (handles shadow/hilight mode, sonic water) } pdso_t; -void PicoDrawSetOutFormat(pdso_t which, int allow_32x); +void PicoDrawSetOutFormat(pdso_t which, int use_32x_line_mode); void PicoDrawSetOutBuf(void *dest, int increment); void PicoDrawSetCallbacks(int (*begin)(unsigned int num), int (*end)(unsigned int num)); extern void *DrawLineDest; @@ -212,15 +209,20 @@ extern unsigned short *PicoCramHigh; // pointer to CRAM buff (0x40 shorts), conv 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) * 21 / 10) -#define SSH2_MULTI_DEFAULT ((1 << SH2_MULTI_SHIFT) * 3 / 2) - -// 32x/draw.c -void PicoDraw32xSetFrameMode(int is_on, int only_32x); +#ifndef NO_32X + +void Pico32xSetClocks(int msh2_hz, int ssh2_hz); + +#else + +#define Pico32xSetClocks(msh2_khz, ssh2_khz) + +#endif + +// normally 68k clock (7670442) * 3, in reality but much lower +// because of high memory latencies +#define PICO_MSH2_HZ ((int)(7670442.0 * 2.4)) +#define PICO_SSH2_HZ ((int)(7670442.0 * 2.4)) // sound.c extern int PsndRate,PsndLen;