diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-05-06 17:31:47 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-05-06 17:31:47 -0400 |
commit | 8781fb36e9f9a20d6af11c77cfd669e27067e279 (patch) | |
tree | a3926aa3df1b83d1cfd7f125162710fe99123054 /arm9/lib/include/OS_reset.h | |
parent | a7fb32ea399ba1154733c2af184d296e5a245490 (diff) | |
parent | d821fc7b1346576fd88d8ee0fd38ec36a2cd8305 (diff) |
Merge branch 'master' of https://github.com/martmists/pokediamond into libfs
Diffstat (limited to 'arm9/lib/include/OS_reset.h')
-rw-r--r-- | arm9/lib/include/OS_reset.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arm9/lib/include/OS_reset.h b/arm9/lib/include/OS_reset.h new file mode 100644 index 00000000..c3b60c98 --- /dev/null +++ b/arm9/lib/include/OS_reset.h @@ -0,0 +1,20 @@ +// +// Created by red031000 on 2020-05-06. +// + +#ifndef POKEDIAMOND_OS_RESET_H +#define POKEDIAMOND_OS_RESET_H + +#include "consts.h" +#include "PXI_fifo.h" + +#define OS_PXI_COMMAND_MASK 0x7f00 +#define OS_PXI_COMMAND_SHIFT 8 +#define OS_PXI_COMMAND_RESET 0x10 + +void OS_InitReset(); +void OSi_CommonCallback(PXIFifoTag tag, u32 data, BOOL err); +void OSi_SendToPxi(u16 data); +void OS_ResetSystem(u32 parameter); + +#endif //POKEDIAMOND_OS_RESET_H |