2023-10-13 10:50:53 +03:00
|
|
|
#ifndef GLOBAL_H
|
|
|
|
#define GLOBAL_H
|
|
|
|
|
2023-10-30 00:19:30 +03:00
|
|
|
#include "PR/xstdio.h"
|
2023-10-23 23:02:01 +03:00
|
|
|
#include "PR/os_internal.h"
|
2023-10-30 00:19:30 +03:00
|
|
|
#include "PR/controller.h"
|
2023-10-23 23:02:01 +03:00
|
|
|
#include "libultra/ultra64.h"
|
|
|
|
#include "libc/math.h"
|
|
|
|
#include "libc/stdarg.h"
|
|
|
|
#include "libc/stdbool.h"
|
|
|
|
#include "libc/stdint.h"
|
|
|
|
#include "libc/stddef.h"
|
|
|
|
#include "libc/string.h"
|
2023-10-13 10:50:53 +03:00
|
|
|
#include "functions.h"
|
|
|
|
#include "variables.h"
|
2023-10-23 19:01:29 +03:00
|
|
|
#include "structs.h"
|
2023-10-13 10:50:53 +03:00
|
|
|
#include "macros.h"
|
2023-10-19 01:54:19 +03:00
|
|
|
#include "sf64math.h"
|
2023-11-13 19:18:43 +03:00
|
|
|
#include "gfx.h"
|
2023-10-13 10:50:53 +03:00
|
|
|
|
2023-11-13 01:49:03 +03:00
|
|
|
typedef enum {
|
2023-11-24 22:11:20 +03:00
|
|
|
SI_READ_CONTROLLER = 10,
|
|
|
|
SI_READ_SAVE,
|
|
|
|
SI_WRITE_SAVE,
|
|
|
|
SI_RUMBLE,
|
|
|
|
SI_SAVE_FAILED,
|
|
|
|
SI_SAVE_SUCCESS,
|
|
|
|
SI_CONT_READ_DONE,
|
2023-11-13 01:49:03 +03:00
|
|
|
} SerialMesg;
|
|
|
|
|
|
|
|
#define MSG_QUEUE_EMPTY -1
|
|
|
|
|
|
|
|
#define FAULT_MESG_BREAK 1
|
|
|
|
#define FAULT_MESG_FAULT 2
|
|
|
|
|
|
|
|
#define TASK_MESG_1 1
|
|
|
|
#define TASK_MESG_2 2
|
|
|
|
|
|
|
|
#define EVENT_MESG_SP 1
|
|
|
|
#define EVENT_MESG_DP 2
|
|
|
|
#define EVENT_MESG_VI 3
|
|
|
|
#define EVENT_MESG_PRENMI 4
|
|
|
|
|
2023-11-08 01:32:09 +03:00
|
|
|
typedef enum {
|
|
|
|
THREAD_ID_SYSTEM,
|
|
|
|
THREAD_ID_IDLE,
|
|
|
|
THREAD_ID_FAULT,
|
|
|
|
THREAD_ID_MAIN,
|
|
|
|
THREAD_ID_4,
|
|
|
|
THREAD_ID_AUDIO,
|
|
|
|
THREAD_ID_GRAPHICS,
|
|
|
|
THREAD_ID_7,
|
2023-11-13 01:49:03 +03:00
|
|
|
THREAD_ID_SERIAL,
|
2023-11-08 01:32:09 +03:00
|
|
|
} ThreadID;
|
|
|
|
|
2023-10-13 12:19:10 +03:00
|
|
|
#endif // GLOBAL_H
|