blob: 2e5f3fb23def8fcdd3e852a7b826ccb6176de4a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "OS_terminate_proc.h"
#include "function_target.h"
#include "OS_system.h"
ARM_FUNC void OS_Terminate(void) {
while (TRUE) {
(void)OS_DisableInterrupts();
OS_Halt();
}
}
ARM_FUNC asm void OS_Halt(void) {
mov r0, #0x0
mcr p15, 0x0, r0, c7, c0, 0x4 //Wait For Interrupt (Halt)
bx lr
}
|