test_rom.h 1.34 KB

/*************************************************************

  test_rom.h : Nintendo 64 Music Tools Library Sample
  (c) Copyright 1998, Software Creations (Holdings) Ltd.

  Version 3.11

  N64DD demo main header file. 

**************************************************************/

#ifndef _TEST_ROM_H_
#define _TEST_ROM_H_

/* Stacksize in bytes */
#define STACKSIZE 0x2000

/* RSP segments */
#define CFB_SEG		1

#ifndef SPECFILE

#ifndef F3DEX_GBI
#define F3DEX_GBI
#endif

#include <ultra64.h>
#include <sched.h>

#ifdef DISK
extern OSPiHandle *cartrom_handle;
extern OSPiHandle *diskrom_handle;
#endif

/* Message queue lengths */
#define MAX_MESGS    		8
#define PI_MSGQUEUE_SIZE   	8
#define DMA_MSGQUEUE_SIZE     	1
#define RDPDONE_MSGQUEUE_SIZE 	1
#define RETRACE_MSGQUEUE_SIZE 	1

/* Thread priorities */
#define MAIN_PRIORITY           10
#define GAME_PRIORITY           10
#define SCHEDULER_PRIORITY      127

/* screen size */
#define SCREEN_XSIZE	320
#define SCREEN_YSIZE	240

/* fifo buffer size */
#define FIFO_DATA_SIZE	(16*1024)


/* externals necessary for 'test_music.c' */
extern OSSched     	sc;
extern OSMesgQueue	dmaMessageQ;

/* function prototypes from 'test_music.c' */
void InitMusicDriver(void);

/* vars from 'test_music.c' */
extern unsigned int	tune_buf[];

#endif  /* SPECFILE */


#endif	/* _TEST_ROM_H_ */

/* end of file */