Add missing headers

This commit is contained in:
Cuyler36
2023-04-29 08:21:36 -04:00
parent aad0bc2f09
commit d099c2d387
4 changed files with 33 additions and 7 deletions
+4 -4
View File
@@ -52,10 +52,10 @@ graph.c:
.text: [0x80405518, 0x80405EC8]
.data: [0x8065ECA8, 0x8065ECB0]
.bss: [0x812F31E8, 0x812F3560]
#irqmgr.c:
# .text: [0x80405EC8, 0x80406480]
# .data: [0x8065ECB0, 0x8065ECD0]
# .bss: [0x812F3560, 0x812F4CB0]
irqmgr.c:
.text: [0x80405EC8, 0x80406480]
.data: [0x8065ECB0, 0x8065ECD0]
.bss: [0x812F3560, 0x812F4CB0]
lb_rtc.c:
.text: [0x80406480, 0x8040752C]
.rodata: [0x806436F8, 0x806437A0]
+8 -3
View File
@@ -3,16 +3,21 @@
#include "types.h"
#include "dolphin/os/OSThread.h"
#include "dolphin/os/OSMessage.h"
typedef void* OSMesg;
typedef struct OSMesgQueue {
/* 0x00 */ OSThread* mtqueue;
/* 0x04 */ OSThread* fullqueue;
/* 0x08 */ s32 validCount;
/* 0x0C */ s32 first;
/* 0x10 */ s32 msgCount;
/* 0x08 */ int validCount;
/* 0x0C */ int first;
/* 0x10 */ int msgCount;
/* 0x14 */ OSMesg* msg;
} OSMesgQueue; // size = 0x18
extern void osCreateMesgQueue(OSMessageQueue* mq ,OSMessage msg, int flags);
extern int osSendMesg(OSMessageQueue* mq, OSMessage msg, int flags);
extern int osRecvMesg(OSMessageQueue* mq, OSMessage msg, int flags);
#endif
+18
View File
@@ -0,0 +1,18 @@
#ifndef LIBULTRA_OS_TIMER_H
#define LIBULTRA_OS_TIMER_H
#include "types.h"
#include "dolphin/os/OSTimer.h"
#include "dolphin/os/OSMessage.h"
#ifdef __cplusplus
extern "C" {
#endif
extern int osSetTimer(OSTimer* t, OSTime countdown, OSTime interval, OSMessageQueue* mq, OSMessage msg);
#ifdef __cplusplus
}
#endif
#endif
+3
View File
@@ -1,5 +1,8 @@
#include "irqmgr.h"
#include "libultra/os_thread.h"
#include "libultra/libultra.h"
#include "libultra/os_timer.h"
#include "libultra/osMesg.h"
#include "dolphin/os.h"
#include "dolphin/os/OSMessage.h"
#include "dolphin/os/OSTime.h"