diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-06-13 15:49:46 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-06-13 15:49:46 -0400 |
commit | b4a380c571a3eaf79392dd1b632087fb5107f04f (patch) | |
tree | 3662afd6c1c3cfadb0759b5042c55f849b81c28f /arm7/lib/src/OS_terminate_proc.c | |
parent | 01eea396ed25500e15752d7edfe76cb1031bee60 (diff) | |
parent | 1406a7a34713f0305160583b056721a5dd525df7 (diff) |
Merge branch 'master' of github.com:martmists/pokediamond into pikalax_work
Diffstat (limited to 'arm7/lib/src/OS_terminate_proc.c')
-rw-r--r-- | arm7/lib/src/OS_terminate_proc.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arm7/lib/src/OS_terminate_proc.c b/arm7/lib/src/OS_terminate_proc.c new file mode 100644 index 00000000..23793fd4 --- /dev/null +++ b/arm7/lib/src/OS_terminate_proc.c @@ -0,0 +1,17 @@ +#include "function_target.h" +#include "nitro/types.h" +#include "OS_terminate_proc.h" +#include "OS_system.h" + +extern void CTRDG_VibPulseEdgeUpdate(u32 param); +extern void FUN_037F8530(void); //SVC_Halt + +ARM_FUNC void OS_Terminate(void) +{ + CTRDG_VibPulseEdgeUpdate(0); + while (TRUE) + { + (void)OS_DisableInterrupts(); + FUN_037F8530(); //SVC_Halt + } +} |