-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterrupt_nest.h
72 lines (59 loc) · 1.44 KB
/
interrupt_nest.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#include "c6678.h"
/*
* test.h
*
* Created on: 2013-8-13
* Author: Administrator
*/
#ifndef TEST_H_
#define TEST_H_
/* By wangjie,2012-8-13
* 函数功能:save The contents of IRP
* A4 = OutPut:输出的数值(IRP的值)*/
extern unsigned int save_irp(void);
/* By wangjie,2012-8-13
* 函数功能:save The contents of NRP
* A4 = OutPut:输出的数值(NRP的值)
*/
extern unsigned int save_nrp(void);
/* By wangjie,2012-8-13
* 函数功能:save The contents of PGIE
* A4 = OutPut:输出的数值(PGIE的值)
*/
extern unsigned int save_pgie(void);
/* By wangjie,2012-8-13
* 函数功能:save The contents of ITSR
* A4 = OutPut:输出的数值(ITSR的值)
*/
extern unsigned int save_itsr(void);
/* By wangjie,2012-8-13
* 函数功能:set GIE bit
*
*/
extern void set_gie(void);
/* By wangjie,2012-8-13
* 函数功能:clear GIE bit
*
*/
extern void clear_gie(void);
/* By wangjie,2012-8-13
* 函数功能:restore The contents of PGIE bit
* A4 = InPut:输出的数值(PGIE的值)
*/
extern void restore_pgie(unsigned int pgie_value);
/* By wangjie,2012-8-13
* 函数功能:restore The contents of ITSR
* A4 = InPut:输入的数值(ITSR的值)
*/
extern void restore_itsr(unsigned int itsr_value);
/* By wangjie,2012-8-13
* 函数功能:restore The contents of IRP
* A4 = InPut:输入的数值(IRP的值)
*/
extern void restore_irp(unsigned int irp_value);
/* By wangjie,2012-8-13
* 函数功能:restore The contents of NRP
* A4 = InPut:输入的数值(NRP的值)
*/
extern void restore_nrp(unsigned int nrp_value);
#endif /* TEST_H_ */