uimain.h
900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* uimain.h
*/
#ifndef _UIMAIN_
#define _UIMAIN_
#define STACKSIZEBYTES 0x2000
#define SCREEN_HT 240
#define SCREEN_WD 320
#define STATIC_SEGMENT 1
#define CFB_SEGMENT 2
#ifdef _LANGUAGE_C
#include <ultra64.h>
#define MAX_MESGS 8
#define DMA_QUEUE_SIZE 200
#define NUM_FIELDS 1 /* 1 = 60 Hz video interrupts, 2 = 30 Hz, etc */
#define UTIL_PRIORITY 1
#define INIT_PRIORITY 10
#define GAME_PRIORITY 10
#define AUDIO_PRIORITY 12
#define SCHEDULER_PRIORITY 13
/* define a message after the set used by the scheduler */
#define APP_CONTROLLER_MSG (OS_SC_LAST_MSG+1)
#ifdef _FINALROM
/* cc will give warnings about argument mismatch in rom version */
#define PRINTF(a)
#else
#define PRINTF osSyncPrintf
#endif
/*
* Exported utility
*/
void romCopy(const char *src, const char *dest, const int len);
#endif /* _LANGUAGE_C */
#endif