请问“EnableInterrupts;”这条语句作何解?

- UID
- 137802
- 性别
- 男
|
请问“EnableInterrupts;”这条语句作何解?
我在看代码时碰到这样一条语句
EnableInterrupts;
顾名思义,肯定是开中断的意思。但请问EnableInterrupts是c语言中自带的命令,还是一个函数在其他地方有定义?
另外还有这样一条语句
#include <hidef.h> /* for EnableInterrupts macro */
后面的注释是不是说EnableInterrupts这个函数包含在hidef.h里面?hidef.h是c语言自带的一个头文件吗?
请高人指教,非常感谢! |
|
|
|
|
|
 
- UID
- 104380
- 性别
- 男
|
这是一条宏指令。用右键点击然后选择“Go to macro declaration of EnableInterrupts”就可以找到定义它的地方。 |
|
|
|
|
|
 
- UID
- 104631
- 性别
- 男
|
EnableInterrupts;这是个宏定义,在hidef文件中,是创建工程的时候自动生成的。
因为标准C语言没有专门用来开关中断的语句,通过宏定义,指向开关中断的汇编语句
|
|
|
|
|
|

- UID
- 137802
- 性别
- 男
|
|
|
|
|
|

- UID
- 145886
- 性别
- 男
|
它是开什么的中断呢?整个中断的 总开关还是什么呢? |
|
|
|
|
|
 
- UID
- 104380
- 性别
- 男
|
|
|
|
|
|

- UID
- 113635
- 性别
- 男
|
看一下这个宏的内容就知道了……选中这个语句,右键goto macro define…… |
|
|
|
|
|