mirror of
https://github.com/zeldaret/ph
synced 2026-08-14 04:23:12 -04:00
@@ -0,0 +1,19 @@
|
||||
#ifndef _NDS_GFX_H
|
||||
#define _NDS_GFX_H
|
||||
|
||||
#include "global.h"
|
||||
#include "types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define GFX_FIFO_SWAP_BUFFERS (*(volatile u32 *) 0x04000540)
|
||||
#define GFX_FIFO_VIEWPORT (*(volatile u32 *) 0x04000580)
|
||||
#define REG_VCOUNT (*(volatile u16 *) 0x04000006)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef _NDS_IRQ_H
|
||||
#define _NDS_IRQ_H
|
||||
|
||||
#include "global.h"
|
||||
#include "types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
u32 OS_DisableInterrupts_Irq();
|
||||
void OS_RestoreInterrupts(u32);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user