blob: eb267c6b13500497be1f4a49b11b1e08f295cd19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//
// Created by red031000 on 2020-05-07.
//
#include "types.h"
#include "OS_terminate_proc.h"
#include "function_target.h"
#include "OS_system.h"
ARM_FUNC void OS_Terminate() {
while (TRUE) {
(void)OS_DisableInterrupts();
OS_Halt();
}
}
ARM_FUNC asm void OS_Halt() {
mov r0, #0x0
mcr p15, 0x0, r0, c7, c0, 0x4
bx lr
}
|